-   Linux - Newbie (
-   -   Mail.log is Empty (

ManuMayer 04-15-2010 09:01 AM

Mail.log is Empty
OS: Debian
Mail Server : PostFix
AV: ClamAV

I have a newly created SMTP mail server and so far, everything is going great. Over 300 mails are being sent a day and no major issue has come up since then.
However, the thing is that every morning I'm rotating my logs so that mail.log becomes mail.log.0 and so on.
Its working fine but this morning, mail.log after having been empty and rotated, is empty and nothing is being logged anymore in it.
The strange thing is that is but not mail.log.
Mail server is still working well, syslog shows nothing strange, mail.err either, everything is working smoothly as its always been since I started everything, but my mail.log is being kept empty.
The reason why I need that log file is that itís being used by pflogsumm which sends me the server stats every morning.

Anyone has a clue about this issue?

ManuMayer 04-15-2010 12:15 PM

Is there any info I can post in that thread that would help you guys help me with this issue ?

ManuMayer 04-16-2010 10:56 AM

I did not found the cause, but at least I found a way to fix it, and even make sure it does not append again.
I've added in the server CronTab these 2 lines of code :

kill -HUP `head -1 /var/run/`
/etc/init.d/postfix restart

Killing the rsyslog process fixes my probleme, rebooting the mail server make sure everything re-initialize correctly and doing it every day after the server maintenance keeps everything clean.

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