Nick Smith wrote:
i have setup a mailserver running qmail with clamav and spamassassin, and it uses queue-scanner. im still learning alot about administering mail servers, and i was wondering, how can i track a message going through the system? i know i can stumble through the log files, but how do i know the exact route a message takes through my mailserver? like from coming into the machine, being scanned by spamassassin, being scanned by clamav, then passed to qmail to be delivered. where can i see proof that it is actually doing all those steps?
Most of these components will issue messages to syslog using the 'mail' facility. If you configure your syslog daemon to route messages from this facility to, say, /var/log/mail.log, you'll have all of the info you need.
If you're using syslog-ng, the following addition will do this for you: destination mail { file("/var/log/mail.log" perm(0644) ); }; filter f_mail { facility(mail); }; log { source(src); filter(f_mail); destination(mail); }; -- gentoo-user@gentoo.org mailing list