Bug 37653

Summary: number of amavis processes should be configured via ucr
Product: UCS Reporter: Tobias Birkefeld <birkefeld>
Component: MailAssignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Sönke Schwardt-Krummrich <schwardt>
Severity: enhancement    
Priority: P5 CC: gohmann, grandjean, schwardt, steuwer, walkenhorst
Version: UNSTABLE   
Target Milestone: UCS 4.0-2-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 38937, 38949    

Description Tobias Birkefeld univentionstaff 2015-01-29 14:15:30 CET
In larger mail environments check for spam could delay the mail processes. It would be nice to configure the maximum amaivs processes. You have to edit two template files:

/etc/univention/templates/files/etc/amavis/conf.d/60-univention

the important variable is:
$max_servers  =  2

In order to:
# You may want $max_servers to match the width of your MTA pipe
# feeding amavisd, e.g. with Postfix the 'Max procs' field in the
# master.cf file, like the '2' in the:  smtp-amavis unix - - n - 2 smtp

you also have to set the number in the postfix master.cf template:

/etc/univention/templates/files/etc/postfix/master.cf.d/30_antivir

smtp-amavis unix -      -       n     -       2  smtp
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2015-07-16 18:08:03 CEST
Please commit all changes also to UCS 4.1.
Comment 2 Daniel Tröder univentionstaff 2015-07-17 12:06:31 CEST
Commits 62191 - 62193 add a new UCRV mail/antivir/max_servers to configure the max. number of concurrent Amavis processes. When unset "2" is used, not changing the current default.

YAML commit 62195:
* 2015-07-17-univention-mail-postfix.yaml
* 2015-07-17-univention-antivir-mail.yaml
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2015-07-23 15:01:01 CEST
OK: code change
OK: YAML
OK: functional test (tested with 5 child processes)