Tag Archives: postfix

Postfix problems

Today I noticed I hadn’t received any mail from one of my servers for several weeks. Upon investigation I found that postfix seemed to have some trouble finding the target machine, due to what appeared to be some kind of name lookup problem. I think the problem might have been introduced through a system upgrade some weeks ago…

What’s strange is that this server could lookup the target machine just fine through DNS, in both forward and reverse.

This is what I got in the log /var/log/mail.info:

Jul 15 08:37:44 warhammer postfix/smtp[14984]: 6B6AF483D9: to=<eek@narcissus>, orig_to=<root@warhammer.monkey7.se>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=narcissus type=A: Host not found)

I googled this error message and found a suggestion to add a line in /etc/postfix/main.cf:

Posted in Linux | Tagged , , , , , , , , , | Leave a comment

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