setup_clamav_with_postfix_on_debian_lenny_in_a_chroot
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | setup_clamav_with_postfix_on_debian_lenny_in_a_chroot [2018/12/06 21:47] (current) – created abeverley | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Setup clamav with Postfix on Debian Lenny in a chroot ====== | ||
+ | |||
+ | Quick and dirty instructions on setting up Postfix to scan messages using clamav on Debian Lenny. | ||
+ | |||
+ | Install clamav and clamav-milter: | ||
+ | |||
+ | < | ||
+ | apt-get install clamav | ||
+ | apt-get install clamav-daemon | ||
+ | apt-get install clamav-milter | ||
+ | </ | ||
+ | |||
+ | Edit / | ||
+ | |||
+ | < | ||
+ | USE_POSTFIX=' | ||
+ | SOCKET=local:/ | ||
+ | </ | ||
+ | If you don't want the postmaster and sender to be emailed each time a virus is detected then add the letter q to the OPTIONS line at the beginning of the file as such: | ||
+ | |||
+ | < | ||
+ | OPTIONS=" | ||
+ | </ | ||
+ | Create somewhere within the Postfix chroot for the clamav-milter socket to sit. The default location cannot be seen by Postfix when it is in a chroot jail. | ||
+ | |||
+ | < | ||
+ | mkdir -p / | ||
+ | chown clamav: | ||
+ | chmod g+s / | ||
+ | </ | ||
+ | |||
+ | Restart the milter: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Add the following lines to / | ||
+ | |||
+ | < | ||
+ | milter_connect_macros = i b j _ {daemon_name} {if_name} {if_addr} | ||
+ | smtpd_milters = unix:/ | ||
+ | milter_default_action = accept | ||
+ | </ | ||
+ | |||
+ | Restart Postfix: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
setup_clamav_with_postfix_on_debian_lenny_in_a_chroot.txt · Last modified: 2018/12/06 21:47 by abeverley