Enhancement #2824

Silence postfix resource problems notifications

Added by Filippo Carletti 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

When postfix encounters a resource problem, the postmaster receives a mail notification of the problem with a transcript of the session but without useful information to debug the problem.
The maillog contains useful information.

I'd like to avoid mail notifications.
I added a custom template:

$ cat /etc/e-smith/templates-custom/etc/postfix/main.cf/85notify_classes
# disable resouce problems notifications to postmaster
notify_classes = software

Associated revisions

Revision 081f3a82
Added by Davide Principi almost 7 years ago

main.cf template: silence postfix resource problems notifications. Refs #2824

  • Increased default smtpd_proxy_timeout to 240 seconds
  • Restricted notify_classes = software

Revision 80aba41a
Added by Davide Principi almost 7 years ago

main.cf: Silence postfix resource/software problems notifications. Refs #2824

Never send notifications to postmaster. Administrator is expected to
read the maillog.

History

#1 Updated by Filippo Carletti about 7 years ago

Resource problems are usually found in amavis mail processing.
To avoid smtp sessions errors, we could use:

smtpd_proxy_timeout = 240s

Edit: by default smtpd_proxy_timeout = 100

#2 Updated by Filippo Carletti about 7 years ago

  • Subject changed from Silence resource problems notifications to Silence postfix resource problems notifications

#3 Updated by Davide Principi almost 7 years ago

  • Target version set to v6.5

#4 Updated by Davide Principi almost 7 years ago

  • Status changed from NEW to TRIAGED
  • Priority changed from Low to Normal
  • % Done changed from 0 to 20

#5 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

#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

Don't know how to reproduce "when postfix encounters a resource problem"...

The modified version differs from nethserver-mail-common v1.3.3 only in the two given parameters, changed from Postfix default values. It could be tested on a production environment.

#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.2gitc7b42ee.ns6.noarch.rpm b2750, still not merged

#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 TRIAGED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 20

Proposed solution doesn't suppress notifications.

New proposed solution is to set the following options:

notify_classes = 
smtpd_proxy_timeout = 240s

The first option will suppress all mail notifications, the second one relaxes the timeout when amavis doesn't quickly respond to requests.

I suggest to test the proposed solution on a running machine.

#10 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

#11 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

#12 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.21git80aba41.ns6.noarch.rpm

#13 Updated by Giacomo Sanchietti almost 7 years ago

  • Assignee set to Giacomo Sanchietti

#14 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

After stopping amavis, mails can't be sent but no mail notification is generated.
Error on /var/log/maillog:

Sep 29 15:12:05 nethservice transfer/smtpd[26218]: warning: connect to proxy filter 127.0.0.1:10024: Connection refused

#15 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:

Also available in: Atom PDF