Maillog not logging email information
I have installed Sendmail on RHEL 6 and removed Postfix in order to avoid conflicts. I'm able to send emails however maillog doesn't show information related to them, only daemon startup and shutdown information
cat maillog
sendmail[96339]: starting daemon (8.14.4): SMTP+queueing@01:00:00
sm-msp-queue[96350]: starting daemon (8.14.4): queueing@01:00:00
sendmail[96399]: starting daemon (8.14.4): SMTP+queueing@01:00:00
sm-msp-queue[96410]: starting daemon (8.14.4): queueing@01:00:00
sendmail[102362]: starting daemon (8.14.4): SMTP+queueing@01:00:00
sm-msp-queue[102373]: starting daemon (8.14.4): queueing@01:00:00
sendmail[106151]: starting daemon (8.14.4): SMTP+queueing@01:00:00
sm-msp-queue[106162]: starting daemon (8.14.4): queueing@01:00:00
sendmail[109104]: starting daemon (8.14.4): SMTP+queueing@01:00:00
sm-msp-queue[109115]: starting daemon (8.14.4): queueing@01:00:00
I looked at rsyslog.conf and it looks right:
mail.* -/var/log/maillog
I tried to restart rsyslog but it did not change anything. Any ideas about what could be causing this?
Responses
Hi Frank,
Due to the - before the logfile you do not force a file sync to disk after the message is received by rsyslog. The messages stay in memory until the message buffer is full.
Removing the - will force a file sync after each message being received, so debugging gets easier.
Regards,
Jan Gerrit
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
