@Tallboy - Just to be sure we're on the same path, do you see two return path header lines? Or do you see the return path header having two email addresses in it?
Return-Path: <bounce@domain.com>
Return-Path: <bounce@domain.com>
PMTA will add a return-path header using the SMTP MAIL FROM address, if you see two in your inbox, it could be added by other mailers.
According to RFC2821, a message-originating SMTP system SHOULD NOT send a message that already contains a Return-path header. When the delivery SMTP server makes the "final delivery" of a message, it inserts a return-path line at the beginning of the mail data. This use of return-path is required; mail systems MUST support it.
If we don't add it, then there's no way for us to be able to process bounces for smtp servers, which is a big no no.It sounds like MW should just not add it?
// app params
'params' => array(
'email.custom.returnPath.enabled' => false,
),
MAIL FROM
The email address that is used in Mail From command is the email address that you add in the delivery server. This is not a header, this is a smtp command. It is the same address used for authentication, if any. This cannot be changed from within the application. When we connect to the smtp server with any library, we provide the user/pass and the library does the rest, including issuing the mail from command with the right params. If you need to change how this works, you need to change the underlying libraries.how do I change what email goes in MAIL FROM
That's in line with what I explained above.When I change "From" on the delivery server it changes MAIL FROM correctly, but then the letter From gets changed to that as well.
This is a bad assumption. The bounce server only sets the Return-Path header. Has nothing to do with the mail commands.I would have just assumed MAILFROM reads from the bounce address if a bounce server is assigned to a delivery server?
You can create a bounce server with that email address and assign it to the smtp server, this way you will get the return path from the bounce server. That's how this is designed to work.Return-path (set by PMTA based on MAIL FROM): bounce@
Set the info@ in the delivery server and do not allow it to be changed in campaigns, for both, FROM and Reply To.From: info@ Reply-To: info@ List-Unsubscribe: info@
Ah, that makes sense. I have a generic named SMTP server user so it must just be taking it from the FROM instead. Thanks! I knew it was a part of the envelope commands, but I was definitely trying to figure out how it was set.It is the same address used for authentication, if any.