How to disable amavis and clamav

Edit: /etc/postfix/main.cf

#content_filter = amavis:[127.0.0.1]:10024
#receive_override_options = no_address_mappings

Edit: /etc/postfix/master.cf

#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:

$ sudo /etc/init.d/amavis stop
$ sudo /etc/init.d/clamav-daemon stop
$ sudo /etc/init.d/clamav-freshclam stop

Now disable amavis and clamd form starting on system boot:
chkconfig doesn't work for Ubuntu so use this boot process editor:

$ sudo apt-get update
$ sudo apt-get install sysv-rc-conf (install it)
$ sudo sysv-rc-conf (run it)

Remove the X's from the processes you don't want to start at boot.

Restart postfix:

/etc/init.d/postfix restart

And you have working postfix without Amavis and Clamd.

References:
http://www.howtoforge.com/forums/showthread.php?t=39590
http://ubuntuforums.org/showthread.php?t=89491

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

You save my life!!

As you may know, Clamav disabled 0.94 version. I was affected so upgraded to 0.96 but didn't work neither. I was pulling my hair until I found your solution and worked. So now I have time to fix clamav issue while still receiving my emails.

Thanks dude!!! Very appreciated!!