Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-15-2010, 10:01 AM   #1
LQ Newbie
Registered: Apr 2010
Posts: 18

Rep: Reputation: 0
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?
Old 04-15-2010, 01:15 PM   #2
LQ Newbie
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Is there any info I can post in that thread that would help you guys help me with this issue ?
Old 04-16-2010, 11:56 AM   #3
LQ Newbie
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
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.


log, postfix, smtp

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] Empty /var/log/boot.log saifkhan123 Linux - General 3 02-22-2010 03:48 AM
Empty /var/log/messages jstencil Slackware 1 10-13-2006 10:34 AM
/var/log/packages is empty! babyphil Slackware 6 03-01-2006 05:57 AM
/var/log/messages empty Phathead Slackware 5 12-13-2004 12:43 PM
cron log empty plisken Slackware 2 11-17-2004 10:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration