文件名称:垃圾邮件病毒过滤-人工智能机器学习数学知识
文件大小:245KB
文件格式:PDF
更新时间:2024-06-23 11:36:56
postfix dovecot 邮件 mail dovecot
9.11 垃圾邮件、病毒过滤 9.11.1 配置 SpamAssassin $ sudo nano /etc/spamassassin/local.cf bayes_auto_expire 0 use_pyzor 1 pyzor_path /usr/bin/pyzor use_razor2 1 razor_config /etc/razor/razor-agent.conf use_bayes 1 use_bayes_rules 1 bayes_auto_learn 1 $ spamassassin --lint $ sudo sa-update --no-gpg 9.11.2 配置 AMaViSd 1.启用内容过滤 $ sudo nano /etc/amavis/conf.d/15-content_filter_mode use strict; @bypass_virus_checks_maps = ( \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re); @bypass_spam_checks_maps = ( \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re); 1; # ensure a defined return 2.修改 Debian 默认配置 $ sudo nano /etc/amavis/conf.d/20-debian_defaults