View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Wed Mar 04, 2015 5:35 am Post subject: Postfix does not log. |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Mar 04, 2015 4:47 pm Post subject: Re: Postfix does not log. |
|
|
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 |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Thu Mar 05, 2015 4:41 am Post subject: Re: Postfix does not log. |
|
|
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 |
|
|
|