* [pmg-devel] [PATCH pmg-docs] pmg-mail-filter: clarify matching of Who objects
@ 2025-02-06 15:16 Friedrich Weber
2025-02-06 15:30 ` Stoiko Ivanov
0 siblings, 1 reply; 4+ messages in thread
From: Friedrich Weber @ 2025-02-06 15:16 UTC (permalink / raw)
To: pmg-devel
In particular, explain that Who objects match against Envelope From
and Envelope To, not the From: and To: mail headers. This is
occasionally a source of confusion in enterprise support.
Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
---
pmg-mail-filter.adoc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/pmg-mail-filter.adoc b/pmg-mail-filter.adoc
index 235f156..65d28b6 100644
--- a/pmg-mail-filter.adoc
+++ b/pmg-mail-filter.adoc
@@ -265,6 +265,16 @@ We have two important 'Who' objects called 'Blacklist' and
'Whitelist'. These are used in the default ruleset to globally block
or allow specific senders.
+Note that 'Who' objects match against the mail addresses given during the SMTP
+dialog:
+
+* 'Who' objects in the 'FROM' category match against the mail address given in
+ the `MAIL FROM` command (the Envelope From).
+* 'Who' objects in the 'TO' category match against the mail address given in
+ the `MAIL TO` command (the Envelope To).
+
+If you want to match against the `From:` or `To:` header fields of the mail,
+use a 'What' object with type 'Match Field' instead.
[[pmg_mailfilter_what]]
'What' objects
--
2.39.5
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [pmg-devel] [PATCH pmg-docs] pmg-mail-filter: clarify matching of Who objects
2025-02-06 15:16 [pmg-devel] [PATCH pmg-docs] pmg-mail-filter: clarify matching of Who objects Friedrich Weber
@ 2025-02-06 15:30 ` Stoiko Ivanov
2025-02-06 15:54 ` Friedrich Weber
0 siblings, 1 reply; 4+ messages in thread
From: Stoiko Ivanov @ 2025-02-06 15:30 UTC (permalink / raw)
To: Friedrich Weber; +Cc: pmg-devel
Thanks for addressing this!
On Thu, 6 Feb 2025 16:16:20 +0100
Friedrich Weber <f.weber@proxmox.com> wrote:
> In particular, explain that Who objects match against Envelope From
> and Envelope To, not the From: and To: mail headers. This is
> occasionally a source of confusion in enterprise support.
>
> Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
> ---
> pmg-mail-filter.adoc | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/pmg-mail-filter.adoc b/pmg-mail-filter.adoc
> index 235f156..65d28b6 100644
> --- a/pmg-mail-filter.adoc
> +++ b/pmg-mail-filter.adoc
> @@ -265,6 +265,16 @@ We have two important 'Who' objects called 'Blacklist' and
> 'Whitelist'. These are used in the default ruleset to globally block
> or allow specific senders.
>
> +Note that 'Who' objects match against the mail addresses given during the SMTP
> +dialog:
maybe also mention that this is the information you see in the
journal/logs by default?
> +
> +* 'Who' objects in the 'FROM' category match against the mail address given in
> + the `MAIL FROM` command (the Envelope From).
> +* 'Who' objects in the 'TO' category match against the mail address given in
> + the `MAIL TO` command (the Envelope To).
the smtp-verb is RCPT (`RCPT TO`)
> +
> +If you want to match against the `From:` or `To:` header fields of the mail,
> +use a 'What' object with type 'Match Field' instead.
>
> [[pmg_mailfilter_what]]
> 'What' objects
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [pmg-devel] [PATCH pmg-docs] pmg-mail-filter: clarify matching of Who objects
2025-02-06 15:30 ` Stoiko Ivanov
@ 2025-02-06 15:54 ` Friedrich Weber
2025-02-17 11:56 ` Friedrich Weber
0 siblings, 1 reply; 4+ messages in thread
From: Friedrich Weber @ 2025-02-06 15:54 UTC (permalink / raw)
To: Stoiko Ivanov; +Cc: pmg-devel
Thanks for the quick review!
On 06/02/2025 16:30, Stoiko Ivanov wrote:
> [...]
> On Thu, 6 Feb 2025 16:16:20 +0100
> Friedrich Weber <f.weber@proxmox.com> wrote:
>
>> In particular, explain that Who objects match against Envelope From
>> and Envelope To, not the From: and To: mail headers. This is
>> occasionally a source of confusion in enterprise support.
>>
>> Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
>> ---
>> pmg-mail-filter.adoc | 10 ++++++++++
>> 1 file changed, 10 insertions(+)
>>
>> diff --git a/pmg-mail-filter.adoc b/pmg-mail-filter.adoc
>> index 235f156..65d28b6 100644
>> --- a/pmg-mail-filter.adoc
>> +++ b/pmg-mail-filter.adoc
>> @@ -265,6 +265,16 @@ We have two important 'Who' objects called 'Blacklist' and
>> 'Whitelist'. These are used in the default ruleset to globally block
>> or allow specific senders.
>>
>> +Note that 'Who' objects match against the mail addresses given during the SMTP
>> +dialog:
> maybe also mention that this is the information you see in the
> journal/logs by default?
Makes sense, will add!
>> +
>> +* 'Who' objects in the 'FROM' category match against the mail address given in
>> + the `MAIL FROM` command (the Envelope From).
>> +* 'Who' objects in the 'TO' category match against the mail address given in
>> + the `MAIL TO` command (the Envelope To).
> the smtp-verb is RCPT (`RCPT TO`)
Urgh, sorry about that, thanks for spotting it.
Will send a v2.
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [pmg-devel] [PATCH pmg-docs] pmg-mail-filter: clarify matching of Who objects
2025-02-06 15:54 ` Friedrich Weber
@ 2025-02-17 11:56 ` Friedrich Weber
0 siblings, 0 replies; 4+ messages in thread
From: Friedrich Weber @ 2025-02-17 11:56 UTC (permalink / raw)
To: pmg-devel
On 06/02/2025 16:54, Friedrich Weber wrote:
> Thanks for the quick review!
>
> On 06/02/2025 16:30, Stoiko Ivanov wrote:
>> [...]
>> On Thu, 6 Feb 2025 16:16:20 +0100
>> Friedrich Weber <f.weber@proxmox.com> wrote:
>>
>>> In particular, explain that Who objects match against Envelope From
>>> and Envelope To, not the From: and To: mail headers. This is
>>> occasionally a source of confusion in enterprise support.
>>>
>>> Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
>>> ---
>>> pmg-mail-filter.adoc | 10 ++++++++++
>>> 1 file changed, 10 insertions(+)
>>>
>>> diff --git a/pmg-mail-filter.adoc b/pmg-mail-filter.adoc
>>> index 235f156..65d28b6 100644
>>> --- a/pmg-mail-filter.adoc
>>> +++ b/pmg-mail-filter.adoc
>>> @@ -265,6 +265,16 @@ We have two important 'Who' objects called 'Blacklist' and
>>> 'Whitelist'. These are used in the default ruleset to globally block
>>> or allow specific senders.
>>>
>>> +Note that 'Who' objects match against the mail addresses given during the SMTP
>>> +dialog:
>> maybe also mention that this is the information you see in the
>> journal/logs by default?
>
> Makes sense, will add!
>
>>> +
>>> +* 'Who' objects in the 'FROM' category match against the mail address given in
>>> + the `MAIL FROM` command (the Envelope From).
>>> +* 'Who' objects in the 'TO' category match against the mail address given in
>>> + the `MAIL TO` command (the Envelope To).
>> the smtp-verb is RCPT (`RCPT TO`)
>
> Urgh, sorry about that, thanks for spotting it.
>
> Will send a v2.
sent a v2:
https://lore.proxmox.com/pmg-devel/20250217115517.40171-1-f.weber@proxmox.com/
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-17 11:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-06 15:16 [pmg-devel] [PATCH pmg-docs] pmg-mail-filter: clarify matching of Who objects Friedrich Weber
2025-02-06 15:30 ` Stoiko Ivanov
2025-02-06 15:54 ` Friedrich Weber
2025-02-17 11:56 ` Friedrich Weber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal