Categories
VPS

Mail Server Management

Improve the successfull mail delivery rate from the server:

  • set up for the domain names: SPF, DKIM, DMARC
  • Make sure the server hostname appear at the A record, rDNS, server control panel, MTA (includes mailname), and content filter configuration values

Config relay host in Postfix, use the commands:

apt-get install libsasl2-modules
postconf -e 'relayhost = $relay_host_ip'
postconf -e 'smtp_sasl_auth_enable = yes'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd'
postconf -e 'smtp_sasl_security_options ='
echo "$relay_host_ip   yourEmail:yourPassword" > /etc/postfix/sasl_passwd
chown root:root /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
/etc/init.d/postfix restart

Leave a Reply

Your email address will not be published. Required fields are marked *