Using ClamAV With Messaging Server
From MsgServerDocWiki
Is ClamAV integrated with Messaging Server?
Yes, with a spam filter plugin. See Deploying ClamAV in the Sun Java System Messaging Server 6.3 Administration Guide for more information.
Here are sample MTA configuration values for ClamAV (plus SpamAssassin) that can help you get started:
1) Here is the tcp_local channel definition in the imta.cnf file:
tcp_local smtp_lf mx single_sys remotehost inner switchchannel identnonenumeric subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel tcp_auth missingrecipientpolicy 0 loopcheck mailfromdnsverify sourcespamfilter1optin spam sourcespamfilter2optin virus
2) Here are the relevant lines from the option.dat file:
! for ClamAV spamfilter2_config_file=/opt/SUNWmsgsr/config/clamav.opt spamfilter2_library=/opt/SUNWmsgsr/lib/libclamav.so spamfilter2_optional=2
3) Here is the clamav.opt file that option.dat references:
host=myclamAVserver port=13310 mode=0 field= debug=0
Categories: FAQ | MTA

