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.

up vote 5 down vote accepted

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 ~]$ 
  • 1
    In my CentOs mail log is in /usr/local/psa/var/log/maillog – Florencio Cano Jan 27 '15 at 9:25
  • ^ Florencio is right. It was there for me, too. – Allen Gingrich Jun 1 '15 at 19:42

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

source: http://forum.centos-webpanel.com/postfix/varlogmaillog-no-data-update-when-mail-incoming-and-outgoing/

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.