amavisd的白名單黑名單?

這個版面主要討論 debian 在 server 端的應用問題, server 種類繁多..舉凡 Web Server 、 File Server、 DHCP Server..等等。

版主: 阿信

amavisd的白名單黑名單?

文章sandpaper » 週二 10月 04, 2005 7:35 pm

我照著
http://wiki.debian.org.tw/index.php/SpamAssassin
裡面使用amavisd-new呼叫spamassassin

但在amavisd.conf設定白名單黑名單沒作用

接著試著在spamassassin的local.cf加入黑名單
blacklist_from *@yahoo.com.tw(請問可以寫成*@yahoo*嗎?)
也是沒作用
是使用postfix的MTA
請問要怎麼使用白名單黑名單呢?
另外請問一下用amavisd-new呼叫spamassassin
那這樣local.cf還有用嗎
還是需要移到/var/amavis/.spamassassin下?
先謝謝...麻煩了

下面是我的amavisd.conf內容
代碼: 選擇全部
use strict;
$remove_existing_spam_headers = 0;
$sa_local_tests_only = 0;
$sa_auto_whitelist = 1;
#map { $blacklist_sender{lc($_)}=1 } (qw(
#  *@yahoo.com.tw
#  *@*.edu.tw
#  *@*.edu
#));
read_hash(\%whitelist_sender, '/var/amavis/whitelist');
read_hash(\%blacklist_sender, '/var/amavis/blacklist');
read_hash(\%spam_lovers, '/var/amavis/spam_lovers');
$sa_mail_body_size_limit = 150*1024;
$sa_tag_level_deflt = 4.0;
$sa_tag2_level_deflt = 6.3;
$sa_kill_level_deflt = 10;
$sa_debug = 1;
$max_servers = 2;            # number of pre-forked children (2..15 is common)
$daemon_user  = "amavis";     # (no default;  customary: vscan or amavis)
$daemon_group = "amavis";     # (no default;  customary: vscan or amavis)

$mydomain = 'mydomain.net';   # a convenient default for other settings

$MYHOME = "/var/amavis";
$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to be created manually
$ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR
$QUARANTINEDIR = "/var/virusmails";
$db_home   = "$MYHOME/db";
@local_domains_maps = ( [".$mydomain"] );
$log_level = 0;              # verbosity 0..5
$log_recip_templ = undef;    # disable by-recipient level-0 log entries
$DO_SYSLOG = 1;              # log via syslogd (preferred)
$SYSLOG_LEVEL = 'mail.debug';
$LOGFILE = "/var/log/amavis.log";

$enable_db = 1;              # enable use of BerkeleyDB/libdb (SNMP and nanny)
$enable_global_cache = 1;    # enable use of libdb-based cache if $enable_db=1

$inet_socket_port = 10024;
$sa_tag_level_deflt  = 2.0;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 8; # triggers spam evasive actions
$sa_dsn_cutoff_level = 9;    # spam level beyond which a DSN is not sent
$sa_quarantine_cutoff_level = 20;  # spam level beyond which quarantine is off

$sa_mail_body_size_limit = 200*1024; # don't waste time on SA if mail is larger
$sa_local_tests_only = 0;    # only tests which do not require internet access?
$sa_auto_whitelist = 1; 
$virus_admin               = "postmaster\@$mydomain";  # notifications recip.

$mailfrom_notify_admin     = "postmaster\@$mydomain";  # notifications sender
$mailfrom_notify_recip     = "postmaster\@$mydomain";  # notifications sender
$mailfrom_notify_spamadmin = "postmaster\@$mydomain"; # notifications sender
$mailfrom_to_quarantine = ''; # null return path; uses original sender if undef

@addr_extension_virus_maps      = ('virus');
@addr_extension_spam_maps       = ('spam');
@addr_extension_banned_maps     = ('banned');
@addr_extension_bad_header_maps = ('badh');
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
# $dspam = 'dspam';

$MAXLEVELS = 14;
$MAXFILES = 1500;
$MIN_EXPANSION_QUOTA =      100*1024;  # bytes  (default undef, not enforced)
$MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes  (default undef, not enforced)

$sa_spam_subject_tag = '***SPAM***';
$defang_virus  = 1;  # MIME-wrap passed infected mail
$defang_banned = 1;  # MIME-wrap passed mail containing banned name
# $final_virus_destiny      = D_DISCARD;
# $final_banned_destiny     = D_BOUNCE;
 $final_spam_destiny       = D_DISCARD;
# $final_bad_header_destiny = D_PASS;
.........中間這段關於clamav就省略了......
1;  # insure a defined return  ??這是要加的嗎??還是多寫了
我所有的網頁all in one note^^
blog: http://paperli.blogspot.com/
個人網頁: http://web.ekm.com/paper/
留言簿: http://www.aypwip.org/webnote/paper/
歡迎光臨 :finger1:
sandpaper
可愛的小學生
可愛的小學生
 
文章: 73
註冊時間: 週六 1月 15, 2005 12:47 am

回到 debian server

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron