On 3/8/2025, "[email protected]" <[email protected]> wrote:

>I haven't used rewrite before, but perhaps using "junk" might achieve
>what you're looking for.
>
>filter "rdns" phase connect match !rdns junk
>filter "fcrdns" phase connect match !fcrdns junk
>action "local_mail" maildir junk alias <aliases>
>
>'X-Spam: yes' header is added and messages with that header will end up
>in the junk folder. Personally, I just disconnect on no rdns, and my
>logs reaffirm my decision. Other SMTP servers aren't accepting those
>messages, so why should I receive them?
>--
>Ethan
>

Hi Ethan,

Thanks for this, with that example I can see how to make these go into a
separate folder, that's really useful.

I'll give the 'junk' action a go - it should do what I want, giving me
a way to see how many emails are affected for a couple of weeks before
directly rejecting these emails.

Many thanks, David

Reply via email to