Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix does not log.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Wed Mar 04, 2015 5:35 am    Post subject: Postfix does not log. Reply with quote

Postfix is not working. The daemons are running but all sent mails are moved to deferred.

Unlike what's said in the man page --

Quote:
Problems and transactions are logged to the syslog daemon.


I see no qmgr logs in syslog.
_________________
My blog
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Mar 04, 2015 4:47 pm    Post subject: Re: Postfix does not log. Reply with quote

dE_logics wrote:
I see no qmgr logs in syslog.

dE_logics ... that may be due to how your 'syslog' is configured:

Code:
# awk '!/(^#|^$)/&&/mail/' /etc/syslog-ng/syslog-ng.conf
destination mail { file("/var/log/mail.log"); };
destination mailinfo { file("/var/log/mail.info"); };
destination mailwarn { file("/var/log/mail.warn"); };
destination mailerr { file("/var/log/mail.err"); };
filter f_mail { facility(mail); };
log { source(src); filter(f_mail); destination(mail); };
log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
# egrep -m1 qmgr /var/log/mail.info
Mar  3 07:28:49 aporia postfix/qmgr[25029]: 51FAFB83B: from=<portage@localhost>, size=3419, nrcpt=1 (queue active)

best ... khay
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Thu Mar 05, 2015 4:41 am    Post subject: Re: Postfix does not log. Reply with quote

khayyam wrote:
dE_logics wrote:
I see no qmgr logs in syslog.

dE_logics ... that may be due to how your 'syslog' is configured:

Code:
# awk '!/(^#|^$)/&&/mail/' /etc/syslog-ng/syslog-ng.conf
destination mail { file("/var/log/mail.log"); };
destination mailinfo { file("/var/log/mail.info"); };
destination mailwarn { file("/var/log/mail.warn"); };
destination mailerr { file("/var/log/mail.err"); };
filter f_mail { facility(mail); };
log { source(src); filter(f_mail); destination(mail); };
log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
# egrep -m1 qmgr /var/log/mail.info
Mar  3 07:28:49 aporia postfix/qmgr[25029]: 51FAFB83B: from=<portage@localhost>, size=3419, nrcpt=1 (queue active)

best ... khay


Honestly I DID check that location, but mail.log only appears NOW!
_________________
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum