Postfix fallback relay

Which features are you missing? Tell us about it.
Post Reply
pb81
Posts: 8
Joined: Sat 4. Jan 2020, 14:18

Postfix fallback relay

Post 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
gustavohellwig
Posts: 11
Joined: Sat 19. Sep 2020, 20:14

Re: Postfix fallback relay

Post by gustavohellwig »

Good idea..
nikko
Posts: 914
Joined: Fri 15. Apr 2016, 16:11

Re: Postfix fallback relay

Post by nikko »

You can use the MSN delisting. But... The last time I have fights over 3 month for delist an IP.
The software said: Requires Win Vista®, 7®, 8® or better. And so I installed Linux.
jcolideles
Posts: 3
Joined: Sat 13. Feb 2021, 06:20

Re: Postfix fallback relay

Post 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 ;)
Last edited by jcolideles on Sat 13. Feb 2021, 06:33, edited 1 time in total.
Post Reply