LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail: no log!!! (https://www.linuxquestions.org/questions/linux-software-2/sendmail-no-log-150679/)

J_Szucs 02-26-2004 06:36 AM

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?

J_Szucs 02-27-2004 04:27 AM

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.


All times are GMT -5. The time now is 01:11 AM.