You need to edit your postfix conf
/etc/postfix/main.cf
Code: Select all
# specify SMTP relay host
relayhost = [mail.isp.example]:587
smtp_sasl_auth_enable = yes
# disallow methods that allow anonymous authentication.
smtp_sasl_security_options = noanonymous
# where to find sasl_passwd
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
# Enable STARTTLS encryption
smtp_use_tls = yes
For smtp relay credentials
/etc/postfix/sasl_passwd
Code: Select all
[mail.isp.example] username:password
Then run the following commands
Code: Select all
sudo postmap /etc/postfix/sasl_passwd
sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
Restart Postfix
You need to manually edit the DNS Records to include your smtp relay on your spf records.
I wish KeyHelp will add a feature where we can customize default DNS records for newly added domains and ability to rate limit emails. BTW, Thank you for the awesome Control Panel
