Wietse Venema via Postfix-users escribió el 10/12/2023 a las 21:53:
Carlos Velasco via Postfix-users:
Wietse Venema via Postfix-users escribi? el 10/12/2023 a las 19:44:
Carlos Velasco via Postfix-users:
*** And there is the milter, is custom made ***
You need to reduce complexity.
- If you remove the Milter, is the header still duplicated?
No.
Duplication only happens when, in milter, I delete that header and readd it
again.
Obviously, you are not deleting that header!
How do you know that the header is readlly deleted? Can you show a
message that the header is removed when you aren't adding that
header with the Milter?
Obviously, I am deleting that header, like all others!
header received in the header callback:
milter[548374]: header: Received-SPF: Pass (mailfrom) identity=mailfrom;
client-ip=2620:137:e000::1:20; helo=out1.vger.email;
envelope-from=linux-kernel-ow...@vger.kernel.org; receiver=<UNKNOWN>
Header removed in the eom callback, NO error reported:
postfix/cleanup[563179]: reply: SMFIR_CHGHEADER data 18 bytes
postfix/cleanup[563179]: cleanup_del_header: 1 "Received-SPF"
postfix/cleanup[563179]: cleanup_find_header_start: index 1 name "Received-SPF"
postfix/cleanup[563179]: cleanup_find_header_start: index 1 name Received-SPF
type 78 offset -1
2. the "own Received" header not being passed to milter. I understand
it works as expected, but could be great to be able to decide this
with a configuration parameter.
That is because every Milter in the real world gets the client info
from the smfi_connect() callback function and from Milter macros,
instead of parsing Received: headers.
That statement is absolutely false.
Many milters, like amavisd, use other filters for mail content inspection, like
SpamAssassin. Spamassassin uses the "Received" headers for some tasks, like
this:
https://cwiki.apache.org/confluence/display/spamassassin/TrustPath#
Regards,
Carlos Velasco
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org