I've enabled the -v option on master.cf; but still my /var/log/maillog is almost empty. I'm having a problem i have my hard times debugging without any log.
is your syslogd setup to log stuff to maillog? like following:
[alexus@wcmisdlin02 ~]$ grep ^mail /etc/rsyslog.conf mail.* -/var/log/maillog [alexus@wcmisdlin02 ~]$
also make sure it's running
[alexus@wcmisdlin02 ~]$ sudo service rsyslog status rsyslogd (pid 1356) is running... [alexus@wcmisdlin02 ~]$
I had the same log problem on CentOS-7 with postfix but also with any logger command like: 'logger System testing my log'
Checking deeper, I found out that Rsyslogd was not listening anymore on /dev/log socket !!!! This can be checked with 'lsof /dev/log'
I fixed the problem, by forcing /dev/log in /etc/rsyslogd.conf. -- after $ModLoad imuxsock -- add input(type="imuxsock" HostName="localhost" Socket="/dev/log")
This will force usage of /dev/log, which after my last update was no more the default. This is probably a bug. I have the problem with rsyslog-7.4.7-7.el7_0.x86_64 or
You can solve this issue with delete maillog file and restart rsyslog service:
cd /var/log/ rm -f maillog service rsyslog restart service postfix restart