# rpm -ihv fp-linux-ws.rpm |
03 04 * * * root /usr/local/f-prot/check-updates.sh |
03 04 * * * root /usr/local/f-prot/tools/check-updates.pl -cron (-quiet) |
[dag] |
# yum install amavisd-new |
$mydomain = 'aconus.com'; # 'example.com'から変更 |
Dec 2 20:21:47 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10201: Connection refused, retrying (2) Dec 2 20:21:47 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10202: Connection refused, retrying (3) Dec 2 20:21:47 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10203: Connection refused, retrying (4) Dec 2 20:21:47 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10204: Connection refused, retrying (5) Dec 2 20:21:48 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10200: Connection refused, retrying (6) Dec 2 20:21:48 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10201: Connection refused, retrying (7) Dec 2 20:21:48 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10202: Connection refused, retrying (8) Dec 2 20:21:48 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10203: Connection refused, retrying (9) Dec 2 20:21:48 server amavis[5869]: (05869-01) FRISK F-Prot Daemon: Can't connect to INET socket 127.0.0.1:10204: Connection refused, retrying (10) Dec 2 20:21:54 server amavis[5869]: (05869-01) FRISK F-Prot Daemon av-scanner FAILED: Too many retries to talk to 127.0.0.1:10200 (Can't connect to INET socket 127.0.0.1:10200: Connection refused) at (eval 58) line 257. Dec 2 20:21:54 server amavis[5869]: (05869-01) WARN: all primary virus scanners failed, considering backups |
@av_scanners = ( (snip) # このブロックをコメントアウト ### http://www.f-prot.com/ #['FRISK F-Prot Daemon', # \&ask_daemon, # ["GET {}/*?-dumb%20-archive%20-packed HTTP/1.0\r\n\r\n", # ['127.0.0.1:10200','127.0.0.1:10201','127.0.0.1:10202', # '127.0.0.1:10203','127.0.0.1:10204'] ], # qr/(?i)<summary[^>]*>clean<\/summary>/, # qr/(?i)<summary[^>]*>infected<\/summary>/, # qr/(?i)<name>(.+)<\/name>/ ], # このブロックは下記からコピー ### http://www.f-prot.com/ ['FRISK F-Prot Antivirus', ['f-prot','f-prot.sh'], '-dumb -archive -packed {}', [0,8], [3,6], qr/Infection: (.+)|\s+contains\s+(.+)$/ ], (snip) ); @av_scanners_backup = ( (snip) # このブロックをコメントアウト ### http://www.f-prot.com/ - backs up F-Prot Daemon #['FRISK F-Prot Antivirus', ['f-prot','f-prot.sh'], # '-dumb -archive -packed {}', [0,8], [3,6], # qr/Infection: (.+)|\s+contains\s+(.+)$/ ], (snip) ); |
# postconf -e
'content_filter=smtp-amavis:[127.0.0.1]:10024' |
smtp-amavis unix - - y - 2 smtp |
# vi /etc/postfix/aliases virusalert: root [Esc],[:],[w],[q]で保存。 # newaliases |
# /etc/init.d/amavisd start
# /etc/init.d/postfix restart
# netstat -an --tcp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
(snip)
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN
(snip)
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
# cd /usr/local/src |
# groupadd amavis |
# mkdir /var/amavis |
# cp amavisd /usr/sbin/ # cp amavisd.conf /etc/ # mkdir
/var/virusmails |
# cp amavisd_init.sh /etc/init.d/amavisd |
$mydomain = 'aconus.com'; # 'example.com'から変更 $daemon_user = 'amavis' # 'vscan'から変更 $daemon_group = 'amavis' # 'sweep'から変更 |