LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-22-2009, 05:48 PM   #1
zumajim
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, 06:45 PM   #2
Suncoast
Member
 
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 sendmail.cf loglevel is set to 9. (Yes, it gets huge.)

Recent Kernel, default:
.info;*.!warn;\
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, 02:38 PM   #3
zumajim
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.
 
  


Reply

Tags
maillog, redhat, sendmail, syslog



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 01:21 AM
FC9 : Sendmail : /var/log/maillog not updating vaibhavs Linux - Server 5 07-31-2008 05:02 AM
write mail log to /var/log/maillog jimmyjiang Red Hat 4 01-15-2008 06:18 PM
why is maillog on my server getting created in /var/log/maillog.3 ? weblink_dipti Linux - Software 2 06-16-2007 04:47 AM
STARTTLS errors in /var/log/maillog joe.biz Linux - Software 1 10-26-2005 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:10 PM.

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