Postfix – Send outgoing email through one IP

Postfix – Send outgoing email through one IP

One of the issues I have come across in recent times while working with Postfix is the IP address used while sending emails. On machines having multiple IP addresses, Postfix uses all the IP addresses randomly to send outgoing emails.

This can be an issue, if you have specific rules defined in the network to use a single IP for outgoing email or you have a remote server accepting emails from limited IP addresses. In some cases the emails are marked as SPAM on remote servers. This is because the sending IP’s reverse lookup does not match with the hostname for the server.

Postfix – Send outgoing email through one IP

This can be solved by binding Postfix to the primary IP address of the server to send the emails. This would mean that the outgoing emails will be sent using the primary IP address only.

You can achieve this by setting the value for smtp_bind_address in the configuration for Postfix.

Edit the Postfix configuration file /etc/postfix/

[[email protected] ~]# vim /etc/postfix/

Add the following line at the end of the file.

smtp_bind_address =

Where, is to be replaced with the IP address you want to send the emails from for Postfix.

Save and exit the file.

Restart Postfix to have the change take effect.

[[email protected] ~]# /etc/init.d/postfix restart

You should now have all the emails going out through the IP address defined in smtp_bind_address.

Postfix – Send outgoing email through one IP

No Comments

Post a Comment

Time limit is exhausted. Please reload CAPTCHA.