AVG Antivirus For Linux/FreeBSD Plus Sendmail Mail Server
|
Submitted by dervis (Contact Author) (Forums) on Fri, 2012-02-17 18:10. :: Anti-Spam/Virus | Linux | Email | Security | FreeBSD
AVG Antivirus For Linux/FreeBSD Plus Sendmail Mail ServerThis document describes how to deploy AVG Antivirus for Linux/FreeBSD to the Sendmail mail server. It is usable for AVG version 8.5, 10 and 2012.
Requirements1) Linux or FreeBSD x86 or x86_64 with x32 compatible libraries. (See /opt/avg/av/doc/README.)
Installation1) Download correct package from AVG site: Trial: http://www.avg.com/cz-cs/download.prd-trialb NOTE: Trial/full package contains Antispam module. Later migration from free to full is possible. 2) Install package according to your distribution. Examples: Installation from RPM (Linux only): # rpm -i avg2012lms-r{release}-a{vdb version}.{architecture}.rpm Installation from .deb (Linux only): # dpkg -i avg2012lms-r{release}-a{vdb version}.{architecture}.deb Installation from sh (Linux only):
# chmod +x avg2012lms-r{release}-a{vdb version}.{architecture}.sh Installation from .tar.gz:
# tar xzvf avg2012{edition}-r{release}-a{vdb version}.{architecture}.tar.gz
RegistrationYou can register AVG for Linux/FreeBSD during installation from sh or tar.gz, or later using command: # avgctl --register 'your license number' NOTE: Free version is registered automatically during instalation, trial license is available at /opt/avg/av/doc/README.
Start Of AVG Anti-VirusIt is possible to use init scripts or avgctl utility: Linux: # /etc/init.d/avgd start FreeBSD: # /usr/local/etc/rc.d/avgd.sh start Both systems. # avgctl --start
Integration AVG To SendmailThere are two options:
First choice is "cleanest", but both options are sufficient for configuration.
A) Create configuration via mc fileLocate sendmail mc file (usually /etc/mail/sendmail.mc). Add this line to the end of mc file: INPUT_MAIL_FILTER(`avgtcpd', `S=inet:10024@localhost, F=T, T=S:1m;R:1m;E:10m') Re-generate cf file. (It depends to your system.) For example: # make -C /etc/mail
# cd /etc/mail
# cd /etc/mail
B) Create configuration via cf fileLocate sendmail cf file (usually /etc/mail/sendmail.cf). Add filter O InputMailFilters=avgtcpd below section Input mail filters: # Input mail filters O InputMailFilters=avgtcpd Add filter definitions Xavgtcpd, S=inet:1024@localhost, F=T, T=S:1m;R:1m;E:10m below section MAIL FILTER DEFINITIONS: ###################################################################### ###################################################################### ##### ##### MAIL FILTER DEFINITIONS ##### ###################################################################### ###################################################################### Xavgtcpd, S=inet:1024@localhost, F=T, T=S:1m;R:1m;E:10m Or just add this lines to the end of your cf file: # AVG Input mail filter O InputMailFilters=avgtcpd # AVG Mail filter definitions Xavgtcpd, S=inet:10024@localhost, F=T, T=S:1m;R:1m;E:10m Note: Socket inet:10024@localhost is defined later in AVG configuration.
AVG Service ConfigurationIf you need to change some specific parameters use utility avgcfgctl. For example if you need write configuration use: avgcfgctl -w 'parameter=value' For more details see man page of avgcfgctl.
Specific configuration for SendmailIt is needed to change some default parameters: Disable smtp functions. Default.tcpd.smtp.enabled=false Enable and define milter interface: Default.tcpd.milter.enabled=true Default.tcpd.milter.socket=inet:10024@localhost This item defines socket for communication witth AVG. (For more details see integration section.) Default.tcpd.milter.verbosity=0 This item is optional, sets milter logging verbosity. (0 - disabled, 6 - highest severity).
Other useful AVG parametersFor settings: Default.setup.features.tcpd=true This item enables/disables whole E-Mail functions. Default.tcpd.spam.enabled=true Enable/disable Anti-spam function. For scanning: Tcpd.scan.Options.ArchiveLevel=256 It defines the level of processing archive files.Values:
Tcpd.scan.Options.DetectCookies=false This enables/disables detection of cookies.
Tcpd.scan.Options.DetectPup2=false This enables/disables detection of potentially unwanted programs. Tcpd.scan.Options.UseHeuristics=true Use heuristic during scan. Tcpd.scan.Options.MaxFileSize=268435456 This item defines maximal size of extracted archive. Tcpd.scan.Options.MaxNumberOfFiles=50000 This item defines maximal count of extracted files. Tcpd.scan.Options.MaxRecursionDepth=40 Maximal level of recursion for archive.
Tcpd.scan.mail.strip.alldoc=false Enable detection of defined attachments. For basic Anti-spam configuration: Default.tcpd.spam.header.enabled=true This item adds "AVG Anti-spam header" to mail. Default.tcpd.spam.phish_subj_prefix=[PHISHING] This item adds prefix to subject - mail with phishing. Default.tcpd.spam.spamscore_level=90 This item sets the score for Spam identification (less means more spam). Default.tcpd.spam.subj_prefix=[SPAM] This item adds prefix to subject - mail with spam. Other actions: Default.tcpd.parsing.mime_certification_enabled=false It enables/disables AVG certification in body of E-mail.
Default.tcpd.rules.virus.action=0 This items defines action for each detected message. Values:
Default.tcpd.rules.virus.bounce_addr= There is defined adress for BOUNCE action. Default.tcpd.scan.header.enabled=true This parameter adds "AVG Anti-virus header" to mail. Default.tcpd.scan.subj_prefix=[VIRUS] This item add prefix to subject - mail with virus. NOTE: For other parameters see avgtcpd and avgspamd man page! After configuration restart all related services (AVG and Sendmail).
|



Recent comments
13 hours 23 min ago
22 hours 51 min ago
23 hours 41 min ago
1 day 3 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 20 hours ago
2 days 1 hour ago
2 days 2 hours ago