Or why not use and SPF like this in the dns.
your.domain.tld TXT “v=spf1 -exists:%{ir}.zen.spamhaus.org +mx -all
exp:explain.your.domain.tld”
explain.your.domain.tld TXT "SPF error %{i} is not one of %{d}’s designated
mail servers.”
Now these never reaches your server, saving cpu cycles etc.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: [email protected]
> [mailto:[email protected]] Namens Bill Cole
> Verzonden: woensdag 14 maart 2018 4:46
> Aan: Postfix users
> Onderwerp: Re: Spammer rejected, but resends every 10
> minutes. Any way to prevent this
>
> On 13 Mar 2018, at 23:35 (-0400), Bill Cole wrote:
>
> > OR: if you don't get any legitimate mail from Hunan, Chongqing, or
> > Hong Kong you can probably safely block 113.240.0.0/12 from
> talking at
> > all to your SMTP port (or just the /13 to limit it to Hunan.)
>
> OR: Use the Spamhaus ZEN DNSBL, which has the whole /12
> listed via its
> PBL component.
>
> --
> Bill Cole
> [email protected] or [email protected]
> (AKA @grumpybozo and many *@billmail.scconsult.com addresses)
> Currently Seeking Steady Work: https://linkedin.com/in/billcole
>
>