rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
[epel] enabled=0
yum --enablerepo=epel install clamd
# ポートを開かない #TCPSocket 3310 # clamdの起動ユーザをrootに #User clam
/etc/init.d/clamd start chkconfig clamd on
#Example
freshclam
clamscan --infected --recursive
yum --enablerepo=epel install amavisd-new
# スパムチェックを行わない(コメントアウトを外す)
@bypass_spam_checks_maps = (1); # controls running of anti-spam code
# メールサーバのデフォルトドメイン
$mydomain = 'example.com'; # a convenient default for other settings
# 自ホスト名
$myhostname = 'mail.example.com';
# 不正ヘッダ処理となったメールでもそのまま通過させる。
# $final_bad_header_destiny = D_BOUNCE;
$final_bad_header_destiny = D_PASS;
# SOME OTHER VARIABLES WORTH CONSIDERING (see amavisd.conf-default for all)
# $defang_bad_header, $defang_undecipherable, $defang_spam
# パスワード付zip受信時にメール件名に「***UNCHECKED***」と付加しない(追加)
$undecipherable_subject_tag = '';
# exe-ms|dllをコメントアウトしてexeファイル受信を認める
### BLOCKED ANYWHERE
# qr'^UNDECIPHERABLE$', # is or contains any undecipherable components
# qr'^\.(exe-ms|dll)$', # banned file(1) types, rudimentary
# qr'^\.(exe|lha|cab|dll)$', # banned file(1) types
# ソケットの変更(ClamAVで指定したソケット)
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],
qr/\bOK$/m, qr/\bFOUND$/m,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],/etc/init.d/amavisd start chkconfig amavisd on
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=1000content_filter=smtp-amavis:[127.0.0.1]:10024