You are not logged in.

#1 2010-03-03 13:58:45

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Postfix No Longer Writes To Log

I was looking at '/var/log/mail.log' which is the default location Postfix MTA writes everything it does to. I was sadly in that file using Vim and deleted the last line. I didn't restore the removed line and simply saved the file. I noticed now that the Postfix daemon no longer writes anything to the log file since I edited it. No permissions have changed at all. It's still in the same location and owned by the same UID/GID.

[root@mail log][root@mail log]# ls -l mail.log 
-rw-r----- 1 root log 189 Mar  3 08:37 mail.log

I can see that Postfix is however logging everything under '/var/log/everything.log'

Anyone know how to fix this? I am worried I broke Postfix but mail is still fowing and I get no errors at all from Postfix. It's just not writing to 'mail.log' any longer. mad


./

Offline

#2 2010-04-01 02:27:07

btwxt
Member
Registered: 2009-12-14
Posts: 34

Re: Postfix No Longer Writes To Log

Carlwill,

This same problem had me scratching my head.  In the end, it was simply:

touch /var/log/mail.log

It's always the little things... tongue

Offline

#3 2010-04-01 18:43:27

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Postfix No Longer Writes To Log

Thats good to know! I simply restarted the 'syslog' daemon and it worked again.

Thanks for the info!


./

Offline

Board footer

Powered by FluxBB