Tag Archives:

Bind postfix to specific IP address

A short note on postfix and how to bind postfix to listen to a specific IP address, to localhost in this case:

Edit the file /etc/postfix/main.cf:

inet_interfaces =

Save and exit the file.
Restart postfix

# /etc/init.d/postfix restart


# netstat -ltn |grep 25
Posted in Linux | Tagged , , , , | 1 Comment