How to disable Clamav and Amavis for postfix
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 you can easily to disable Clamav and Amavis for postfix.
1) Edit the file/etc/postfix/main.cf
And use the following commands :
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
2) Edit the file /etc/postfix/master.cf
And use the following commend :
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
3) To stop the services :
/etc/init.d/amavisd stop
/etc/init.d/clamav-daemon stop
/etc/init.d/clamav-freshclam stop
/etc/init.d/clamd.amavisd stop
4) Disable the services from start-up :
chkconfig –levels 235 amavisd off
chkconfig –levels 235 clamav-daemon off
chkconfig –levels 235 clamav-freshclam off
chkconfig –levels 235 clamd.amavisd off
5) Reboot your server, and restart postfix by entering :
/etc/init.d/postfix restart
The wp-content/uploads folder is the core storage location for media files in WordPress. Every image, PDF, video, or document uploaded…
Managing access correctly is one of the most important aspects of running a secure and scalable WordPress website. Managing access…
Customer reviews have become one of the most influential factors in modern buying decisions. Before choosing a product, service, or…
In today’s digital landscape, consumers trust people more than brands. Traditional ads are often ignored, celebrity endorsements feel scripted, and…
Introduction: SEO in 2026 Is No Longer Optional—It’s Strategic Search Engine Optimization in 2026 has evolved far beyond keywords and…