Oct 10

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.

written by admin \\ tags: , , , , , , , , , ,


Leave a Reply