Enhancement #3379

Postfix/amavisd speed_adjust parameter

Added by Davide Principi over 5 years ago. Updated over 5 years ago.

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

100%

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

Description

We could optimize our mail scanner configuration as explained on

http://www.postfix.org/SMTPD_PROXY_README.html

  • speed_adjust option
  • Amavisd PreFork (instead of PreForkSimple)

See also

https://www.ijs.si/software/amavisd/release-notes.txt

the "smtpd_proxy_options=speed_adjust" Postfix option, available since
Postfix 2.7.0 (20091101), improves decoupling between SMTP clients
and a content filter in a proxy setup, reducing the number of content
filtering processes needed for the same mail load. With this option
turned on, a Postfix SMTP server receives entire message before
connecting to a before-queue content filter;

Associated revisions

Revision 940e4e9d
Added by Davide Principi over 5 years ago

Speed adjust for Postfix and PreFork for Amavis. Refs #3379 (#4)

  • Use postfix smtpd_proxy_options=speed_adjust for pre-queue setup
  • amavisd.conf: use PreFork module
  • $max_requests = 40;

Revision c6c68e72
Added by Davide Principi over 5 years ago

(v7) Speed adjust for Postfix and PreFork for Amavis. Refs #3379 (#4)

  • Use postfix smtpd_proxy_options=speed_adjust for pre-queue setup
  • amavisd.conf: use PreFork module
  • $max_requests = 40;

History

#1 Updated by Davide Principi over 5 years ago

  • Description updated (diff)

#2 Updated by Davide Principi over 5 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

Test case

After upgrading to modified version

  • Verify speed_adjust is in master.cf:
    grep speed_adjust /etc/postfix/master.cf 
      -o smtpd_proxy_options=speed_adjust
      -o smtpd_proxy_options=speed_adjust
      -o smtpd_proxy_options=speed_adjust
    
  • Verify amavisd starts with PreFork:
        # grep PreFork /var/log/maillog
    Apr 15 15:51:33 nethservice amavis[29823]: Net::Server: 2016/04/15-15:51:33 Amavis (type Net::Server::PreFork) starting! pid(29823)
    
  • Verify smtpd timout:
        # postconf smtpd_proxy_timeout
    smtpd_proxy_timeout = 100s
    

#3 Updated by Davide Principi over 5 years ago

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

In nethserver-testing:
nethserver-mail-common-1.5.3-1.1.g940e4e9.ns6.noarch.rpm

#4 Updated by Filippo Carletti over 5 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

Tested ok.

#5 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-mail-common-1.5.4-1.ns6.noarch.rpm

Also available in: Atom PDF