主题: 教你如何设置隔离邮件的白单名单
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本: iRedAdmin-Pro v1.6.0 (MySQL)
- 使用的 Linux/BSD 发行版名称及版本号: iRedAdmin-Pro v1.6.0 (MySQL)
- 与您的问题相关的日志信息:
====
最近隔离系统因为一次QQ的问题,发现QQ的10000@qq.com发送到我的邮件有问题,联系了张工,才知道是是它的头不规范,仔细查看日志,发现 智联,前程无忧的一些邮件也标注上了垃圾文件的头,虽然邮件本身有问题,但想想还是想办法解决一下,最近人事部,老是说邮件比以前少了,少了,天天少了,少的我头都大了,所以直接把前程无忧,智联招聘的服务器设置到白名单里面,具体配置如下:
sudo vim /etc/amavisd/amavisd.conf
把 280行的#号去除
268 '.' => [ # the _first_ matching sender determines the score boost
269
270 new_RE( # regexp-type lookup table, just happens to be all soft-blacklist
271 [qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i => 5.0],
272 [qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=> 5.0],
273 [qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=> 5.0],
274 [qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i => 5.0],
275 [qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i => 5.0],
276 [qr'^(your_friend|greatoffers)@'i => 5.0],
277 [qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i => 5.0],
278 ),
279
280 read_hash("/var/amavis/sender_scores_sitewide"),
281
282 { # a hash-type lookup table (associative array)
283 'nobody@cert.org' => -3.0,
284 'cert-advisory@us-cert.gov' => -3.0,
285 'owner-alert@iss.net' => -3.0,
286 'slashdot@slashdot.org' => -3.0,
287 'securityfocus.com' => -3.0,
288 'ntbugtraq@listserv.ntbugtraq.com' => -3.0,
289 'security-alerts@linuxsecurity.com' => -3.0,
290 'mailman-announce-admin@python.org' => -3.0,
291 'amavis-user-admin@lists.sourceforge.net'=> -3.0,
292 'amavis-user-bounces@lists.sourceforge.net' => -3.0,
然后新建一个 sender_scores_sitewide 文件,路径保持一致
[lishixin@mail ~]$ cat /var/amavis/sender_scores_sitewide
.quickmail.51job.com -5.0
.zhaopinmail.com -5.0
.qq.com -5.0