[Rspamd-Users] greylisting and whitelisting

Alexander Moisseev moiseev at mezonplus.ru
Sun Jan 12 08:11:22 UTC 2020


12.01.2020 3:29, Gerben Wierda пишет:
> Is there a way I can completely prevent certain mail clients (domains with subdomains) to not be greylisted? Whatever the score? I want to keep the rest around, just not greylisting.
> 
> DHL uses mailjet.com to send mail messages about deliveries. This service doesn’t resend from the same server on a 4.7.1 reply but tries again 8 hours later from some other machine which then again is greylisted.
> 
> What mailjet.com does is send once on the first mx and on 4.7.1 sends it to the next mx. In my case, that backup is an external service that doesn’t do a lot of anti-spam etc.
> 
> 
> Jan 09 07:03:57 mail postfix/cleanup[83761]: 084CE1A23E08: milter-reject: END-OF-MESSAGE from o204.p26.mailjet.com[185.189.237.204]: 4.7.1 Try again later; from=<b0e07967.AMsAAF6G13YAAAAAAAAAAJttVggAAAAAAbQAAAAAAA69jQBeFsJG at bnc3.dhlparcel.nl> to=<gerben.wierda at rna.nl> proto=ESMTP helo=<o204.p26.mailjet.com>
> Jan 09 07:04:02 mail postfix/cleanup[83761]: 924C21A23E09: milter-reject: END-OF-MESSAGE from mxc01.zoneedit.com[64.68.198.23]: 4.7.1 Try again later; from=<SRS0=P3sh=26=bnc3.dhlparcel.nl=b0e07967.AMsAAF6G13YAAAAAAAAAAJttVggAAAAAAbQAAAAAAA69jQBeFsJG at srszone.org> to=<gerben.wierda at rna.nl> proto=ESMTP helo=<mxc01.zoneedit.com>
> 
> 
> Jan 09 16:33:57 mail postfix/cleanup[89829]: 062CC1A27201: milter-reject: END-OF-MESSAGE from o176.p26.mailjet.com[185.189.237.176]: 4.7.1 Try again later; from=<6327c1b8.ANAAAF6e-8QAAAAAAAAAAJttVggAAAAAAbQAAAAAAA69jQBeF0fc at bnc3.dhlparcel.nl> to=<gerben.wierda at rna.nl> proto=ESMTP helo=<o176.p26.mailjet.com>
> Jan 09 16:34:02 mail postfix/cleanup[89829]: 842401A27207: milter-reject: END-OF-MESSAGE from mxc01.zoneedit.com[64.68.198.23]: 4.7.1 Try again later; from=<SRS0=VBMA=26=bnc3.dhlparcel.nl=6327c1b8.ANAAAF6e-8QAAAAAAAAAAJttVggAAAAAAbQAAAAAAA69jQBeF0fc at srszone.org> to=<gerben.wierda at rna.nl> proto=ESMTP helo=<mxc01.zoneedit.com>
> 

Default configuration file modules.d/greylist.conf:
greylist {
   # Search "example.com" and "mail.example.com" for "mx.out.mail.example.com":
   whitelist_domains_url = [
     "$LOCAL_CONFDIR/local.d/greylist-whitelist-domains.inc",
     "$LOCAL_CONFDIR/local.d/maps.d/greylist-whitelist-domains.inc",
   ];
...

You need to create a map file local.d/maps.d/greylist-whitelist-domains.inc containing mailjet.com - the eSLD of the hostnames to skip greylisting for.


More information about the Users mailing list