Page 1 of 1

Postfix fallback relay

Posted: Fri 21. Aug 2020, 09:51
by pb81
Hi!
It would be nice to add a fallback relay if the server has a bad ip reputation (many use DigitalOcean as a provider).
For example i cannot send mail to hotmail at all :(

Does someone know how to add the fallback manually whitout breaking the configuration in KeyHelp?

// Paul

Re: Postfix fallback relay

Posted: Mon 21. Sep 2020, 16:00
by gustavohellwig
Good idea..

Re: Postfix fallback relay

Posted: Mon 21. Sep 2020, 22:42
by nikko
You can use the MSN delisting. But... The last time I have fights over 3 month for delist an IP.

Re: Postfix fallback relay

Posted: Sat 13. Feb 2021, 06:32
by jcolideles
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

Code: Select all

sudo service postfix restart
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 ;)