前几天我正在读一些关于amavis的文档,并决定微调它的configuration。 由于我是新来的阿马维斯,我可能设置了一些错误的方式,所以最后几天我一直在收到从贝宝付款邮件邮件邮箱。 当我build立以下设置,它看起来像阿马维斯正在做的事情。
$ virus_admin =“postmaster \ @ $ mydomain”; #通知收件人。 $ mailfrom_notify_admin =“postmaster \ @ $ mydomain”; #通知发件人 $ mailfrom_notify_recip =“postmaster \ @ $ mydomain”; #通知发件人 $ mailfrom_notify_spamadmin =“postmaster \ @ $ mydomain”; #通知发件人 $ mailfrom_to_quarantine =''; #null返回path; 使用原始发件人,如果undef
现在,我想知道这些邮件是否被amavis错误地归类为垃圾邮件/病毒,或者是因为我告诉amavis而被发送给我的?
此外,我无法find以前的设置deffinition,所以我不知道那些通知设置的意思,既不存在更多的通知设置,我应该asjust?
amavis发邮件给postmaster的时候,这里有一个mail.log的例子。 它好像没有病毒。
https://gist.github.com/sibok/d798d43b78c023cb33de
非常感谢,希望有人能指点我正确的通知设置,所以我没有打破正确的amavisstream程,但我也能够得到一个postmaster分类为垃圾邮件/病毒传入/传出电子邮件的副本。
谢谢
基于你的maillog,看起来像从贝宝的电子邮件是有意的两个收件人,这里的片段,以确认这一事实。
Apr 1 10:11:44 we postfix/qmgr[31630]: 97D784243D: from=<[email protected]>, size=16783, nrcpt=2 (queue active) Apr 1 10:11:48 we amavis[28478]: (28478-04) Passed CLEAN {RelayedInbound}, [173.0.84.228]:34952 [173.0.84.228] <[email protected]> -> <[email protected]>,<[email protected]>, Queue-ID: 97D784243D, Message-ID: <[email protected]>, mail_id: Lm7rRD54sUSa, Hits: -11.569, size: 17069, queued_as: 90A3A4364C, dkim_sd=pp-dkim1:paypal.de, 4154 ms Apr 1 10:11:48 we postfix/smtp[31983]: 97D784243D: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=18, delays=14/0.01/0/4.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 90A3A4364C) Apr 1 10:11:48 we postfix/smtp[31983]: 97D784243D: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=18, delays=14/0.01/0/4.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 90A3A4364C)
nrcpt=2表示电子邮件是针对两个收件人 <[email protected]> -> <[email protected]>,<[email protected]> 所以,你声称发送这个消息的amavis是错误的。
因此,如果您希望获得分类为垃圾邮件/病毒的传入/传出电子邮件的副本,请设置virus_admin和spam_admin 。 这里是从这个页面上分类的片段。
# Here is an overall picture (sequence of events) of how pieces fit together # (only virus controls are shown, spam controls work the same way): # # bypass_virus_checks? ==> PASS # no viruses? ==> PASS # log virus if $log_templ is nonempty # quarantine if $virus_quarantine_to is nonempty # notify admin if $virus_admin (lookup) nonempty # notify recips if $warnvirusrecip and (recipient is local or $warn_offsite) # add address extensions if adding extensions is enabled and virus will pass # send (non-)delivery notifications # to sender if DSN needed (BOUNCE or ($warn_virus_sender and D_PASS)) # virus_lovers or final_destiny==D_PASS ==> PASS # DISCARD (2xx) or REJECT (5xx) (depending on final_*_destiny) # # Equivalent flow diagram applies for spam checks. # If a virus is detected, spam checking is skipped entirely.