We have a vps running Ubuntu 10.04.4 LTS, and while trying to find a solution to a php problem, I've become aware of what looks like a problem with the syslog system - I'm not sure though.
The syslog.conf file looks like this:
And the /var/log/syslog file contains loads of entries like this:
# Logging for the mail system. Split it up so that
# it is easy to write scripts to parse these files.
# Logging for INN news system
# Some `catch-all' logfiles.
# Emergencies are sent to everybody logged in.
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
# *.=notice;*.=warning /dev/tty8
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
# $ xconsole -file /dev/xconsole [...]
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
# busy site..
Jun 10 04:04:00 lvps109-104-93-171 postfix/qmgr: 814E0676E997: removed
Jun 10 04:04:01 lvps109-104-93-171 postfix/smtpd: connect from mail-we0-f196.google.com[184.108.40.206]
/var/log/mail.info, /var/log/mail.warn, & /var/log/mail.err are all empty despite the above configuration directing the relevant messages to them.
I've tried adding 'mail.* -/var/log/mail.log' to the conf file to see whether I can get the smtp & qmgr messages repeated there, but that log file remains empty too.
I tried changing '.;auth,authpriv.none -/var/log/syslog' to .;auth,authpriv.none;mail.none -/var/log/syslog to see whether I could stop any postfix messages going into /var/log/syslog, but they continue to go there.
I've been searching for ages to find the command I need to redirect these postfix messages to the mail.log file, but posts I've found only seem to mention the .info, .err, & .warn messages. As far as I have been able to find out , the syslog daemon should be directing them to the relevant files.
So my questions are: How do I redirect the postfix messages away from /var/log/syslog? Why aren't the .warn, .info, & .err messages going where they should be?
Any help gratefully received - Many thanks.