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/main.cf

Coment this two lines:

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

Looks like this:

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

Edit: /etc/postfix/master.cf

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

#127.0.0.1:10025 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=127.0.0.0/8
# -o strict_rfc821_envelopes=yes
# -o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
# -o smtpd_bind_address=127.0.0.1

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:http://www.ispconfig.org/ispconfig-3/ispconfig-3-manual/http://www.howtoforge.com/download-the-ispconfig-3-manual=====================================================Download—————————————————–The software can be downloaded here:http://downloads.sourceforge.net/ispconfig/ISPConfig-3.0.3.tar.gz?use_mirror=Changelog————————————http://bugtracker.ispconfig.org/index.php?do=index&tasks=&project=3&due=28&status[]=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:http://www.ispconfig.org/ispconfig-3/documentation/or 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:http://www.faqforge.com/linux/controlpanels/ispconfig3/how-to-update-ispconfig-3/If the ISPConfig version on your server does not have this script yet, follow the manual update instructions below.Manual update instructions————————–cd /tmpwget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gztar xvfz ISPConfig-3-stable.tar.gzcd ispconfig3_install/installphp -q update.php

via Blog | ISPConfig – Hosting Control Panel.