LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-26-2004, 07:36 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Sendmail: no log!!!


I just wanted to have a look at mail statistics and run mailstat.
I was surprised to see that mailstat moved /var/log/maillog to /var/log/maillog.old, and produced an empty /var/log/maillog file.

The problem is that sendmail stopped using that file, i.e. the new /var/log/maillog stays always empty. Why?

I tried removing the empty logfile and stop and restart sendmail:
rm /var/log/maillog
kill `cat /var/run/sendmail.pid | head -1`
/usr/sbin/sendmail -bd

No use...

I tried to sighup syslogd and sendmail:
killall -HUP syslogd && kill -HUP `cat /var/run/sendmail.pid | head -1`

No use...

I restarted the machine.

No use...

Do you have an idea how to make this beast use the logfile?

Last edited by J_Szucs; 02-26-2004 at 10:52 AM.
 
Old 02-27-2004, 05:27 AM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Thanks for you attention, if any.
The problem has been solved: newsyslog turned the maillog over at midnight, and from that time on sendmail uses it.
 
  


Reply


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
Sendmail Log question JediKnight2 Linux - Security 2 09-27-2005 10:43 PM
sendmail log question gauge73 Linux - Networking 3 07-13-2005 06:06 PM
sendmail log level markus1982 Linux - Networking 0 12-09-2002 04:36 AM
sendmail.log magyartoth Linux - General 6 02-23-2002 09:07 PM
HUGE sendmail log magyartoth Linux - General 2 02-19-2002 09:00 AM

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

All times are GMT -5. The time now is 08:32 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