On Wed, 08 Jan 2025 08:05:23 +0100,
Philipp <phil...@bureaucracy.de> wrote:
> 
> Hi
> 
> The match rules for the sender and recipient are currently only match
> the full mail addresses. So you can not match local part or domains in
> them. There are some workarounds for this, but they depend on the
> concrete table implementation.
> 
> It would be nice to have a general syntax for this. I would prefere
> to have an optional parameter ``address-part'' for these conditions.
> So the syntax would look something like this:
> 
>       [from] mail-from [full|localpart|domain] sender|<sender>
>       [for] rcpt-to [full|localpart|domain] recipient|<recipient>
> 
> The biggest problem with this is that the "domain" keyword now is used
> twice. But I don't know a better keyword. The "rcpt-to domain" part is
> redundant, but I have added it for symetry.
> 
> To implement this I would extend the ruleset_match_smtp_mail_from()
> and ruleset_match_smtp_rcpt_to().
> 
> What do you think about this idea?
> 

Looks interesting but in case of sender it raises a question about trust to
such field.

Bring here DMARC/DKIM/ARC isn't an option clearly.

Perhabs some kind of "trusted" relay should be introduced? I mean that
mail-from can be trusted only if email is originated from a trusted relay,
or locally.

What do you think?

-- 
wbr, Kirill

Reply via email to