Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-22-2009, 06:48 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Sendmail won't log to /var/log/maillog

I have a Redhat Enterprise Linux 4 system (update 8, fully patched) with the stock sendmail RPM installed. I cannot convince sendmail to log to /var/log/maillog. Instead, it insists on logging to /var/log/messages. The /etc/syslog.conf file is completely stock and includes these default directives:

*.info;mail.none;authpriv.none;cron.none /var/log/messages
mail.* /var/log/maillog

No amount of restarting/reinstalling sendmail and ksyslogd have made a difference. I opened a case with Redhat support but after a week of sending them configs and sysreports, they've been silent. I suspect there's a bug in the syslog daemon somewhere. If you've got any ideas, I'd be glad to hear them. Thanks!

- ZJ
Old 07-23-2009, 07:45 PM   #2
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Although neither are truly the latest, I have 2 systems on Slackware that work. I hadn't noticed until today the "-" sign before the /path/file name on the newer config. I see yours doesn't have that. Just throwing this out there. And loglevel is set to 9. (Yes, it gets huge.)

Recent Kernel, default:
authpriv.none;cron.none;mail.none;news.none -/var/log/messages
mail.* -/var/log/maillog

Older Kernel, custom:
*.=info;*.=notice;daemon.none;mail.none /usr/adm/messages
mail.* /usr/adm/mail.log
Old 07-27-2009, 03:38 PM   #3
LQ Newbie
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Yeah, I knew about the missing dash. According to the docs, the dash just tells syslog not to "sync" after logging. Not sure what that means, but I added the dash and restarted syslog to no effect. Thanks all the same.


maillog, redhat, sendmail, syslog

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] EHLO error in /var/log/maillog Mogget Linux - Server 1 07-26-2009 02:21 AM
FC9 : Sendmail : /var/log/maillog not updating vaibhavs Linux - Server 5 07-31-2008 06:02 AM
write mail log to /var/log/maillog jimmyjiang Red Hat 4 01-15-2008 07:18 PM
why is maillog on my server getting created in /var/log/maillog.3 ? weblink_dipti Linux - Software 2 06-16-2007 05:47 AM
STARTTLS errors in /var/log/maillog Linux - Software 1 10-26-2005 05:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration