Enhancement #2784

Differentiate Postfix syslog_name parameters

Added by Davide Principi about 7 years ago. Updated almost 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-mail-common
Target version:v6.5
Resolution: NEEDINFO:No

Description

There are different smtpd instances running: Set syslog_name on each instance, to help maillog analysis:

http://www.postfix.org/postconf.5.html#syslog_name


Related issues

Related to NethServer 6 - Enhancement #2841: Dovecot: separate log files for IMAP CLOSED
Related to NethServer 6 - Feature #2509: Postfix mail log analysis CLOSED

Associated revisions

Revision caefbcd1
Added by Davide Principi almost 7 years ago

postfix/master.cf template: set smtpd syslog_name to "queue". Refs #2784

Revision 55df3179
Added by Davide Principi almost 7 years ago

postfix/master.cf: set syslog_name for different mail system components. Refs #2784

History

#1 Updated by Davide Principi about 7 years ago

  • Project changed from Nethgui to NethServer 6
  • Target version set to v6.5

#3 Updated by Davide Principi almost 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#4 Updated by Davide Principi almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

In branch b2750

#5 Updated by Davide Principi almost 7 years ago

#6 Updated by Davide Principi almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case

After upgrade in /var/log/maillog you must find the following changes to postfix syslog output:

from to
postfix/smtpd {transfer,queue,submission}/smtpd
postfix/lmtp delivery/lmtp
postfix/smtp {default,relay}/smtp

#7 Updated by Davide Principi almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-mail-common-1.3.3-1.19git5aeec2c.ns6.noarch.rpm
nethserver-mail-server-1.7.0-1.9git836d38e.ns6.noarch.rpm
nethserver-mail-filter-1.1.6-5.0git2ea5d3e8.ns6.noarch.rpm

#8 Updated by Giacomo Sanchietti almost 7 years ago

  • Assignee set to Giacomo Sanchietti

#9 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Extract from maillog:

Sep  3 09:03:57 testserver postfix/pickup[5537]: 0E16641CEB: uid=0 from=<root>
Sep  3 09:03:57 testserver postfix/cleanup[11233]: 0E16641CEB: message-id=<20140903090357.0E16641CEB@testserver.mydomain.loc>
Sep  3 09:03:57 testserver postfix/qmgr[5538]: 0E16641CEB: from=<root@testserver.mydomain.loc>, size=9483, nrcpt=1 (queue active)
Sep  3 09:03:57 testserver default/smtp[11247]: connect to nethservice.nethesis.it[89.97.245.226]:25: Connection refused
Sep  3 09:03:57 testserver default/smtp[11247]: 0E16641CEB: to=<giacomo@nethesis.it>, relay=none, delay=0.18, delays=0.02/0.04/0.12/0, dsn=4.4.1, status=deferred (connect to nethservice.nethesis.it[89.97.245.226]:25: Connection refused)

Sep  3 09:03:12 testserver delivery/lmtp[11236]: C3E2441CD0: to=<admin@testserver.mydomain.loc>, orig_to=<test3@mydomain.loc>, relay=testserver.mydomain.loc[/var/run/dovecot/lmtp], delay=0.95, delays=0.44/0.05/0.32/0.14, dsn=2.0.0, status=sent (250 2.0.0 <admin@testserver.mydomain.loc> FZZ/D1DZBlTlKwAAA5dMbg Saved)
Sep  3 09:03:12 testserver dovecot: lmtp(11237): Disconnect from local: Client quit (in reset)
Sep  3 09:03:12 testserver postfix/qmgr[5538]: C3E2441CD0: removed

#10 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-mail-server-1.8.0-1.ns6.noarch.rpm
  • nethserver-mail-common-1.4.0-1.ns6.noarch.rpm
  • nethserver-mail-filter-1.2.0-1.ns6.noarch.rpm
New documentation:

#11 Updated by Davide Principi over 6 years ago

Also available in: Atom PDF