These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes
Classnotes | UNIX03 | RecentChanges | Preferences
Showing revision 2 Go back and add the following to your amavisd.conf file:
# Viral settings
$virus_admin = "virusalert\@$mydomain";
$viruses_that_fake_sender_re = new_RE(
qr'nimda|hybris|klez|bugbear|yaha|braid|sobig|fizzer|palyh|peido|holar'i,
qr'tanatos|lentin|bridex|mimail|trojan\.dropper'i,
);
# If you want quarantined viruses to go here
#$QUARANTINEDIR = '/var/virusmails';
#$virus_quarantine_to = 'virus-quarantine';
$X_HEADER_TAG = 'X-Virus-Scanned';
$X_HEADER_LINE = "by amavisd-new at $mydomain";
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
@av_scanners = (
# ### http://www.vanja.com/tools/sophie/
['Sophie',
\&ask_daemon, ["{}/\n", '/var/run/sophie'],
qr/(?x)^ 0+ ( : | [\000\r\n]* $)/, qr/(?x)^ 1 ( : | [\000\r\n]* $)/,
qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/ ],
['Sophos Anti Virus (sweep)', 'sweep',
'-nb -f -all -rec -ss -sc -archive {}',
[0,2], qr/Virus .*? found/,
qr/^>>> Virus(?:(?: fragment)? '?(.+?)'? found)/,
# sub {$ENV{SAV_IDE}='/usr/local/sav'},
],
);
Add this to the end of the file, and be sure to mirror Amavisd.conf both inside and outside the chroot jail.
Classnotes | UNIX03 | RecentChanges | Preferences
This page is read-only | View other revisions | View current revision Edited October 4, 2003 2:29 am (diff) Search: