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.

Leave a Reply