Tech Journal Back to Tech Journal

How can I get postfix to show me which IPs have been connecting to the SMTP server?

Postfix stores its log in /var/log/maillog (as configured by /etc/syslog.conf) If you want to see who's been connecting to you, try the command:

# grep postfix /var/log/maillog | grep disconnect | egrep -v "127.0.0.1|192.168.1."

(adding to the last grep any other "autherized" networks)

Last updated on 2004-10-15 15:00:00 -0700, by Shalom Craimer

Back to Tech Journal