Question
Can postfix use floating IP for outgoing mail? Can a floating IP be added to /etc/network/interfaces?
I’ve got DNS records pointing to the floating IP address, but my droplet’s postfix still sends email from the public IP address, resulting in some mail being rejected since the rDNS records do not match up. I have tried to set postfix to use the floating IP address but it doesn’t work, probably because that address isn’t attached to a network interface.
Any way to get postfix to use that floating IP address?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Hi,
I have the same problem. I already try to add an ip table POSTROUTING clause, without any luck.
(https://www.digitalocean.com/community/questions/floating-ip-gateway-as-default-router-and-source-address-for-outbound-connections).
When I try this solution, postfix cant connect to Internet with “Network not reachable”.
I already try:
Its very important to have control over the ip used in the email. I am afraid we can lost the ip public droplet if we destroy it.
I hope someone from Digital Ocean can help us.
Best regards,
Roberto