Disabling Clamd and Amavisd
These instructions apply only to an ISPConfig 3.1 installation in CentOS 7.
If you want to run postfix but not run the antivirus (Clam, Amavis), there is a way to disable those services while allowing postfix to run as normal. Follow the instructions below.
Edit the file /etc/postfix/main.cf
And comment the following 2 lines as follows (you can find the lines by searching on vim with the / command):
#content_filter = amavis:[127.0.0.1]:10024 #receive_override_options = no_address_mappings
Now edit the file /etc/postfix/master.cf
And comment out the following blocks as follows:
#amavis unix - - - - 2 smtp # -o smtp_data_done_timeout=1200 # -o smtp_send_xforward_command=yes #127.0.0.1:10025 inet n - 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,reject # -o mynetworks=127.0.0.0/8 # -o strict_rfc821_envelopes=yes # -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks # -o smtp_send_xforward_command=yes # -o disable_dns_lookups=yes #127.0.0.1:10027 inet n - 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,reject # -o mynetworks=127.0.0.0/8 # -o strict_rfc821_envelopes=yes # -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks # -o smtp_send_xforward_command=yes # -o milter_default_action=accept # -o milter_macro_daemon_name=ORIGINATING # -o disable_dns_lookups=yes
Next, stop the services:
systemctl stop amavisd systemctl stop clamd@amavisd
And disable the services from startup:
systemctl disable amavisd systemctl disable clamd@amavisd
You can reboot your server, or restart postfix by entering:
systemctl restart postfix