Maillog is not updated

Created:

2016-11-16 12:55:15 UTC

Modified:

2017-08-16 16:59:32 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Maillog is not updated

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

  1. Mail log file /usr/local/psa/log/maillog is empty and/or does not get updated when mail is sent/received on the server.

  2. POP/IMAP statistics are shown empty or incorrect on any domain in Parallels Plesk Panel.

Cause

File descriptors for maillog are not added to syslogd.pid

# ps aux | grep syslog
root 2524 0.0 0.0 105372 1320 ? Sl 00:46 0:00 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
root 2878 1.0 0.0 103248 840 pts/3 S+ 00:47 0:00 grep syslog
# ls -l /proc/2524/fd
total 0
lr-x------ 1 root root 64 Oct 12 00:48 0 -> /proc/kmsg
l-wx------ 1 root root 64 Oct 12 00:48 1 -> /var/log/messages
lrwx------ 1 root root 64 Oct 12 00:48 2 -> socket:[10483787]

Resolution

  1. Check configuration file /etc/rsyslog.conf . Following string should not be commented. If they are commented, correct it:

    #$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
  2. Make sure that maillog is specified as follows:

    mail.*                                          -/usr/local/psa/var/log/maillog
  3. Restart the service .

    # /etc/init.d/rsyslog restart

For RHEL 7 there is a bug 1088021 .

Workaround

Remove /var/lib/rsyslog/imjournal.state and restart rsyslog service:

    # rm /var/lib/rsyslog/imjournal.state
# systemctl restart rsyslog.service

If it doesn't help comment $OmitLocalLogging on in /etc/rsyslog.conf and restart rsyslog service

    ~]# cat /etc/rsyslog.conf | grep OmitLocalLogging
#$OmitLocalLogging on

# systemctl restart rsyslog.service
Have more questions? Submit a request
Please sign in to leave a comment.