On 23.04.23 11:19, Benny Pedersen via Postfix-users wrote:
Subject: [pfx] postfix does not add Return-Path if mail is missing it

imho a bug

Matus UHLAR - fantomas via Postfix-users skrev den 2023-04-23 16:43:
it's added in local if delivering to mbox or maildir:

http://www.postfix.org/local.8.html

On 2023-04-23 at 14:29:31 UTC-0400 (Sun, 23 Apr 2023 20:29:31 +0200)
Benny Pedersen via Postfix-users <m...@junc.eu>
is rumored to have said:
its not in my case a local problem, its seen from remote mta (exim), i reported here in belive that this is a bug, i know envelope-from can be in received header aswell

On 23.04.23 16:22, Bill Cole via Postfix-users wrote:
Return-Path should only be added by the final delivery agent. If the mail is being sent out to another MTA, it should NOT have a Return-Path on it.

what will postfix do if both missing ?,

I'm sure Viktor and/or Wietse with correct me if I'm wrong, but I'm fairly sure Postfix never cares about the presence of a Return-Path header *UNLESS* it is configured to strip an existing one out. It does not interpret existing Received headers.

postfix drops this header (among others) by default, when processing incoming mail:

http://www.postfix.org/postconf.5.html#message_drop_headers

what will spf test do in spamassassin ?

SA has multiple ways of figuring out the RFC5321MailFrom (a.k.a. envelope sender or return-path) value, which the MTA should provide to whatever glue you use to integrate SA. Some glue layers (e.g. MIMEDefang, MailMunge, and I expect any other milter) construct synthetic final delivery headers (Received, Delivered-To, Return-Path, etc.) to pass to SA. See the SA docs (and your glue docs, I guess...) for details.

SpamAssassin has envelope_sender_header for this use.

other than that, SA supports envelope sender in Received: header which postfix supports:

https://cwiki.apache.org/confluence/display/spamassassin/EnvelopeSenderInReceived

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I feel like I'm diagonally parked in a parallel universe.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to