1

Topic: amavis service continually stopping

======== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu Trusty 14.04, Webmin installed
- Related log if you're reporting an issue: Running Processes
====
Hello, I have an issue where amavis service stops for no reason.  I restart the service and all is fine, and then it stops.  Is it a memory issue?

Real memory: 588.61 MB total / 121.99 MB free / 88.10 MB cached   Swap space: 0 bytes total / 0 bytes free

Thanks, Greg

----

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

2

Re: amavis service continually stopping

Yes, memory issue.

With iRedMail-0.8.7, Amavisd is configured to prefork 10 processes, it will take some memory. If you have very few memory, try to set it to 1 or 2. For example, in /etc/amavis/conf.d/50-user, find parameter '$max_servers' and set it to 1 (or 2), then restart Amavisd service.

$max_servers = 1;

NOTE: Make sure you don't have duplicate parameters in this file, the last one will be used.

3 (edited by Vortex 2014-06-08 20:18:42)

Re: amavis service continually stopping

Many thanks.
[SOLVED] wink

4

Re: amavis service continually stopping

Oops, forgot to mention that you must update Postfix config file /etc/postfix/master.cf to match '$max_servers' setting in Amavisd.

# File: /etc/postfix/master.cf
smtp-amavis unix -  -   -   -   10  smtp
    ...

Here 10 should match the value of '$max_servers'in Amavisd config file. That means if you set '$max_servers = 2', you have to change '10' to 2 in master.cf.