[dag] name=Dag RPM Repository for Fedora Core baseurl=http://wftp.tu-chemnitz.de/pub/linux/dag/fedora/$releasever/en/$basearch/dag enabled=1 gpgcheck=1
# yum install amavisd-new
# スパムメールチェックをしないときには、コメントをとる @bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code # ドメイン名を設定する $mydomain = 'sea-bird.org'; # a convenient default for other settings # スパムメールチェックをしない設定 $final_virus_destiny = D_DISCARD; $final_banned_destiny = D_PASS; $final_spam_destiny = D_PASS; $final_bad_header_destiny = D_PASS; $hdr_encoding = 'iso-2022-jp'; # 追加 $bdy_encoding = 'iso-2022-jp'; # 追加 $warnvirussender = 1; # メールの送信者に警告する(1:する) $warnspamsender = 0; # 追加 $warnbannedsender = 0; # 追加 $warnbadhsender = 0; # 追加 ### http://www.clamav.net/ ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamd/clamd.sock"], qr/\bOK$/, qr/\bFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
# /etc/init.d/amavisd start
# /sbin/chkconfig --add amavisd # /sbin/chkconfig --list amavisd amavisd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
virusalert: root spamalert:i root
# newaliases
# # check virus/spam with amavis + SpamAssassin + ClamAV # smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000
# for amavisd-new content_filter=smtp-amavis:[127.0.0.1]:10024
# /etc/init.d/postfix restart
X-Virus-Scanned: amavisd-new at ドメイン名
# wget http://www.eicar.org/download/eicar.com # /usr/sbin/sendmail -i hoge < eicar.com
Jun 21 22:22:42 ns amavis[28254]: (28254-03) Blocked INFECTED (Eicar-Test-Signature), <> -> <hoge@sea-bird.org>, quarantine: virus-25WuTJizQm0K, Message-ID: <20050627062241.62075134522@ns.sea-bird.org>, mail_id: 25WuTJizQm0K, Hits: -, 542 ms
Passed CLEAN : 問題なし Blocked INFECTED : ブロックした