How to install and config pmta full detailed
Pmta installlation
1. Point your domain and allow root log in
Allow Root Login:
-----------------
1- Set a root password using the follwing Command:
sudo passwd root
2- Open the SSH configuration File using the follwing command:
sudo nano /etc/ssh/sshd_config
3- Search For PermitRootLogin and uncomment it and make sure its set to yes.
4- Then Go down in the file and set "PasswordAuthentication" to yes.
Save and exit.
5- Restart SSH Service using the follwing command:
sudo service sshd reload
Thats it!
2.Installing vesta cp
Install Vest Control Panel
---------------------------
# Download installation script
curl -O http://vestacp.com/pub/vst-install.sh
# Run it
bash vst-install.sh
note : give any email id and then the server.domain.com
3. Installng PMta and debugging the code
upload the file . install it by rpm -ivh file name
now apply llicence and null
to debug the code pmtad --debug
4. Basic config and debugging
config file
if you want the basic config just chage the domain and ip ( for amazon chage the private ip
to debug and see the error run pmtad --debug
Testing with smtpern.net
Setting Dkim record
dkim commands
find / -name dkim.pem
mv dkim.pem dkim_old
openssl genrsa -out dkim.private.key 1024
openssl rsa -in dkim.private.key -out dkim.public.key -pubout -outform PEM
mv dkim.private.key dkim.pem
vim dkim.public.key
service pmta restart
the dkim template
Host: dkim._domainkey
TXT Value : "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Spf and Dmrac
SPF:
v=spf1 a mx ip4:54.218.71.176 -all
DMARC:
v=DMARC1; p=none; fo=1; rua=mailto:dmarc@xmailing.me; ruf=mailto:dmarc@xmailing.me
dns zone . txt record host @ txt valuse spf rexxord
ip rotation
>> server sub doomain 1. dns zone >> add trecord >> A record 2. pint ip to dirrrent servers name : server pints to ip
config ip rotaiton inside thhe server config file
>>> smtp listtener
>>go down virtual mta . copy it and palste it again with changes make it vmta2
>> make a new entry in the virtual pool
>> restart pmta and test in smtper .net with serer and different ips
id service provicder is not configing ip then follows
installing mail server
>> installing mail wizz >> delivery server >>> create new >> smtp done
ip rotaion with spf
v=spf1 a mx ip4:54.218.71.176 p4:54.218.71.176 p4:54.218.71.176 ~all
https://www.appmaildev.com/en/dkim
Comments
Post a Comment