How To – Disable Amavisd – Causing Major Memory Problem – ISPConfig / Postfix

There seems to be a major memory problem with the amavisd setup with ISPConfig when configured as per the “perfect server” instructions.    After doing the below I was able to scale my cloud server back to 512 memory (from 1gb).  It was causing my server to have swap file in use of over 512 mb.

Here is how to disable it:

Edit: /etc/postfix/

Coment this two lines:

content_filter = amavis:[]:10024
receive_override_options = no_address_mappings

Looks like this:

#content_filter = amavis:[]:10024
#receive_override_options = no_address_mappings

Edit: /etc/postfix/

Comment all lines bellow:

amavis unix – – – – 2 smtp

Here is what it should look like:

#amavis unix – – – – 2 smtp
# -o smtp_data_done_timeout=1200
# -o smtp_send_xforward_command=yes

# inet n – – – – smtpd
# -o content_filter=
# -o local_recipient_maps=
# -o relay_recipient_maps=
# -o smtpd_restriction_classes=
# -o smtpd_client_restrictions=
# -o smtpd_helo_restrictions=
# -o smtpd_sender_restrictions=
# -o smtpd_recipient_restrictions=permit_mynetworks,rej ect
# -o mynetworks=
# -o strict_rfc821_envelopes=yes
# -o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
# -o smtpd_bind_address=

Now stop amavis-new and clamd:

/etc/init.d/amavisd stop
/etc/init.d/clamd.amavisd stop

Now disable amavis and clamd form starting on system boot:
chkconfig amavisd off
chkconfig clamd.amavisd off

Now restart postfix:

/etc/init.d/postfix restart

Now you have IspConfig/Postfix working postfix without Amavis and Clamd.

Blog | ISPConfig – Hosting Control Panel

ISPConfig 3.0.3 releasedWednesday, October 6, 2010ISPConfig 3.0.3 is available for download. This release is a major update and introduces newfunctions like a dashboard module, AWstats website statistics, WebDAV, website backups andmany more. For a detailed list of changes, please see the changelog section below.===================================================== New! The ISPConfig 3 manual is now available! Version 1.0 for ISPConfig 3.0.3 Date: 09/30/2010Author: Falko Timme <[email protected]>299 pagesThe manual can be downloaded from these two links:—————————————————–The software can be downloaded here:————————————[]=Known Issues:————————————–Please take a look at the bugtracker:http://bugtracker.ispconfig.orgBUG Reporting————————————–Please report bugs to the ISPConfig bugtracking system:http://bugtracker.ispconfig.orgSupported Linux Distributions—————————–- Debian Etch 4.0 – Squeeze 6.0- Ubuntu 7.10 – 10.04- OpenSuSE 11 – 11.3- CentOS 5.2 – 5.5- Fedora 9 – 13Installation——————–The installation instructions for ISPConfig can be found here: in the text files named INSTALL_.txt which are inside the docs folder of the .tar.gz file.Update——————–To update existing ISPConfig 3 installations, run this command on the shell:ispconfig_update.shSelect “stable” as update resource. The script will check if an updated version of ISPConfig 3 is available and then download the tar.gz and start the setup script.Detailed instructions for making a backup before you update can be found here: the ISPConfig version on your server does not have this script yet, follow the manual update instructions below.Manual update instructions————————–cd /tmpwget xvfz ISPConfig-3-stable.tar.gzcd ispconfig3_install/installphp -q update.php

via Blog | ISPConfig – Hosting Control Panel.