Categories: DisableLinux

How to Disable Clamav and Amavis for Postfix

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

 

 

 

 


Vishwajit Kale

Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostdens, a company that aims to provide reliable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.
Vishwajit Kale

Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostdens, a company that aims to provide reliable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Leave a Comment
Share
Published by
Vishwajit Kale

Recent Posts

Green Data Centers To Have Strong Impact On Data Processing And Hosting Service Businesses

About Bizvibe Bizvibe is a B2B online platform that helps in connecting buyers and sellers…

3 years ago

File Server Security Is Important for An Organization: Find out How

File server investment is the smart investment anyone can make for their business. It has…

3 years ago

Cloud Computing Explained

Because of the many advantages of the cloud, people are moving more and more towards…

3 years ago

Cloud to which more and more companies are moving advanced workloads

Cloud Adoption Accelerates IT Modernization. More and more online businesses are increasing more and more…

3 years ago

History of web hosting

Almost more than half of the total world’s population were using the internet by any…

3 years ago

Plesk appoints ZNet Technologies as a global distributor to expand reach in untapped markets

Plesk is an IT service provider company which was founded in 2000 by Dimitri. The…

3 years ago

This website uses cookies.