Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have log entries like:

Apr  8 10:25:31 monitor postfix/smtpd[3131]: connect from localhost[]
Apr  8 10:25:31 monitor postfix/smtpd[3131]: lost connection after CONNECT from localhost[]
Apr  8 10:25:31 monitor postfix/smtpd[3131]: disconnect from localhost[]

every minute or so on a central rsyslogd log monitoring box from all local/remote nodes (Debian Squeeze, Rsyslog 4.6.4, Postfix 2.7.1 both from repos), I've tried to disable info messages in /etc/rsyslog.conf by commenting out the line:                      -/var/log/

and also adding a line

*.*;auth,authpriv.none,cron.none,mail.none -/var/log/syslog

which I thought would disable all mail logging from Postfix into /var/log/syslog, but it doesn't help. I have searched for other mail.debug entries and there are none, just one entry like:

mail.*                          -/var/log/mail.log

which I've commented out too, but then I think that shouldn't cause logging to /var/log/syslog anyway, no?

share|improve this question

migrated from Apr 30 '11 at 6:05

This question came from our site for professional and enthusiast programmers.

You are using the wrong syntax, you have to use ";" as a delimiter.

This worked for me:

*.*;mail.none;mail.error;auth,authpriv.none             -/var/log/syslog

You need to restart rsyslog after the changes. Reloading isn't enough.

share|improve this answer
Worked like a charm, thanks. – silviot Dec 2 '12 at 14:10
In ubuntu 14 the file to edit is /etc/rsyslog.d/50-default.conf – Richard Jun 3 '14 at 15:06
It seems that /etc/init.d/rsyslog restart doesn't restart the service properly in Ubuntu 14.04. You would need to do: service rsyslog restart instead. – lepe Sep 26 '14 at 2:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.