- 论坛徽章:
- 0
|
反垃圾封杀所有邮件.
今天终于装上了反病毒反垃圾.按照ExtMail Solution HOWTO做的.
更新了新的规则.怎么什么都发不过去了啊
使用Chinese_rules.cf
编辑脚本/var/cron/sa.sh
#!/bin/sh
cd /tmp/
fetch -q http://www.ccert.edu.cn/spam/sa/Chinese_rules.cf
mv Chinese_rules.cf /usr/local/share/spamassassin/
/usr/local/etc/rc.d/amavisd forcerestart > /dev/null
这是日志
Jul 25 14:07:26 www amavis[1102]: (01102-01) Blocked SPAM, <mars@extmail.org> -> <harnek@extmail.org>, Message-ID: <20070725060722.5574EB826@www.123.com>, mail_id: 8RpzNqRLSQ+K, Hits: 8.067, size: 532, 4269 ms
Jul 25 14:07:26 www postfix/smtp[1126]: 5574EB826: to=<harnek@extmail.org>, relay=localhost[127.0.0.1]:10024, delay=4.3, delays=0.03/0/0.03/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok, id=01102-01, BOUNCE)
Jul 25 14:07:26 www postfix/qmgr[716]: 5574EB826: removed
Jul 25 14:07:28 www postfix/smtp[1134]: 74279B827: to=<spam@123.com>, relay=mail.entelchile.net[164.77.62.8]:25, delay=1.9, delays=0.01/0.01/1.2/0.71, dsn=5.7.1, status=bounced (host mail.entelchile.net[164.77.62.8] said: 550 5.7.1 Relaying not allowed: spam@123.com (in reply to RCPT TO command))
Jul 25 14:07:28 www postfix/qmgr[716]: 74279B827: removed
Jul 25 14:11:01 www postfix/smtpd[1223]: connect from localhost.123.com[127.0.0.1]
Jul 25 14:11:30 www postfix/smtpd[1223]: 4B119B825: client=localhost.123.com[127.0.0.1]
Jul 25 14:11:52 www postfix/cleanup[1225]: 4B119B825: message-id=<20070725061130.4B119B825@www.123.com>
Jul 25 14:11:52 www postfix/qmgr[716]: 4B119B825: from=<mars@extmail.org>, size=351, nrcpt=1 (queue active)
Jul 25 14:11:52 www amavis[1103]: (01103-01) (!!)WARN: all primary virus scanners failed, considering backups
Jul 25 14:11:55 www postfix/smtpd[1229]: connect from localhost.123.com[127.0.0.1]
Jul 25 14:11:55 www postfix/smtpd[1229]: 60E74B826: client=localhost.123.com[127.0.0.1]
Jul 25 14:11:55 www postfix/cleanup[1225]: 60E74B826: message-id=<20070725061130.4B119B825@www.123.com>
Jul 25 14:11:55 www postfix/smtpd[1229]: disconnect from localhost.123.com[127.0.0.1]
Jul 25 14:11:55 www postfix/qmgr[716]: 60E74B826: from=<mars@extmail.org>, size=933, nrcpt=1 (queue active)
Jul 25 14:11:55 www authdaemond: Authenticated: sysusername=<null>, sysuserid=1000, sysgroupid=1000, homedir=/home/data/domains/extmail.org/harnek, address=harnek@extmail.org, fullname=harnek, maildir=/home/data/domains/extmail.org/harnek/Maildir/, quota=5242880S, options=<null>
Jul 25 14:11:55 www authdaemond: Authenticated: clearpasswd=<null>, passwd=$1$fV4m1TbJ$ju/UsgTGXpuwdE7mS/GNk1
Jul 25 14:11:55 www postfix/pipe[1230]: 60E74B826: to=<harnek@extmail.org>, relay=maildrop, delay=0.08, delays=0.04/0.02/0/0.02, dsn=2.0.0, status=sent (delivered via maildrop service)
Jul 25 14:11:55 www postfix/qmgr[716]: 60E74B826: removed
Jul 25 14:11:55 www amavis[1103]: (01103-01) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <mars@extmail.org> -> <harnek@extmail.org>, Message-ID: <20070725061130.4B119B825@www.123.com>, mail_id: Uq6Z3lX5Y6Xi, Hits: 3.791, size: 351, queued_as: 60E74B826, 3260 ms
Jul 25 14:11:55 www postfix/smtp[1226]: 4B119B825: to=<harnek@extmail.org>, relay=localhost[127.0.0.1]:10024, delay=37, delays=34/0.02/0.03/3.3, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 60E74B826)
Jul 25 14:11:55 www postfix/qmgr[716]: 4B119B825: removed
Jul 25 14:12:01 www postfix/smtpd[1223]: disconnect from localhost.123.com[127.0.0.1]
到底怎么了啊.是不是配置的有问题啊
我都按照教程做的.没改,这是/usr/local/etc/amavisd.conf文件中对应的选项
$max_servers = 10;
$sa_spam_subject_tag = '[SPAM] ';
$mydomain = 'mail.extmail.org';
$myhostname = 'mail.extmail.org';
@local_domains_maps = qw(.);
$sa_tag_level_deflt = undef;
$sa_tag2_level_deflt = 5.0;
$sa_kill_level_deflt = 5.0;
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_DISCARD;
$final_spam_destiny = D_DISCARD;
$virus_admin = "postmaster\@$mydomain";
$mailfrom_notify_admin = "postmaster\@$mydomain";
$mailfrom_notify_recip = "postmaster\@$mydomain";
$mailfrom_notify_spamadmin = "postmaster\@$mydomain";
@whitelist_sender_maps = read_hash("$MYHOME/white.lst");
@blacklist_sender_maps = read_hash("$MYHOME/black.lst");
$spam_quarantine_to = "spam\@$mydomain";
$virus_quarantine_to = "virus\@$mydomain";
$banned_quarantine_to = "spam\@$mydomain";
$hdrfrom_notify_admin = "Content Filter "; |
|