On Wed, Sep 16, 2026 at 05:08:16AM +0100, Howard Chu via Postfix-users wrote:

> I'd like a check for a specific recipient address, that only accepts mail if 
> the envelope recipient
> matches the To header, and I want it before queueing so that failed matches 
> can return an immediate 550,
> instead of trying to generate a bounce message.
> 
> The use case: I have a mailman list owner on a remote site, 
> [email protected] which is configured
> to send to an alias on my own site [email protected]. 
> [email protected] is now receiving spam
> with To: headers that include random, garbage email addresses.
> 
> Legitimate emails to [email protected] will only contain 
> [email protected] in the To: header.
> 
> It seems like the only way to get what I want is by writing a milter, but I 
> wanted to double-check here if
> anyone else has any ready-made solutions for this?

Your choices are either a milter (the Python milter frameworks are
generally user-friendly) or an SMTP proxy filter.

-- 
    Viktor.  🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to