1 (edited by pbf343 2015-07-06 23:35:24)

Topic: amavisd processes & new install

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

New install iRedMail 0.9.2
Linux CentOS 6.x
MySQL
Nginx
IRedAdmin-Pro


Reading this document:  http://www.iredmail.org/docs/concurrent.processing.html




Post install using Nginx - SOGo option do NOT see smtp-amavis_destination_concurrency_limit in the /etc/postfic/main.cf file. 


What is the best practice location for such setting (main.cf or master.cf)? 

What is a recommended settings (benchmark, ratio, values) for best practices?


FYI:
Google search seems to return year 2007 references.
Example: reference to using:  amavisfeed_destination_concurrency_limit = 2

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: amavisd processes & new install

pbf343 wrote:

What is the best practice location for such setting (main.cf or master.cf)? 
What is a recommended settings (benchmark, ratio, values) for best practices?

Just choose the one you prefer.

pbf343 wrote:

Google search seems to return year 2007 references.
Example: reference to using:  amavisfeed_destination_concurrency_limit = 2

We use 'smtp-amavis' name in /etc/postfix/master.cf, not 'amavisfeed'.

3

Re: amavisd processes & new install

What is the date of writing for this document and/or version(s) impacted?
    http://www.iredmail.org/docs/concurrent.processing.html


Thank You.

4

Re: amavisd processes & new install

ZhangHuangbin wrote:
pbf343 wrote:

What is the best practice location for such setting (main.cf or master.cf)? 
What is a recommended settings (benchmark, ratio, values) for best practices?

Just choose the one you prefer.

pbf343 wrote:

Google search seems to return year 2007 references.
Example: reference to using:  amavisfeed_destination_concurrency_limit = 2

We use 'smtp-amavis' name in /etc/postfix/master.cf, not 'amavisfeed'.


Did not see this:  smtp-amavis_destination_concurrency_limit
in any of the postfix docs. 

Is it a variable used in your application somewhere?

5

Re: amavisd processes & new install

Hello,

The value of $max_servers appears twice in the /etc/amavisd/amavisd.conf file. 
Line #16 & #579.

16 $max_servers = 2;            # num of pre-forked children (2..30 is common), -m

576 # Num of pre-forked children.
577 # WARNING: it must match (equal to or larger than) the number set in
578 # /etc/postfix/master.cf "maxproc" column for the 'smtp-amavis' service.
579 $max_servers = 4;

Should these values match?

Should both be altered or does the lower OVERRIDE the upper value?

6

Re: amavisd processes & new install

The last one wins. You can remove the first one.