Change From address (of a campaign)

I have enable smtp debug logging.
I get the following error Sender address rejected: not owned by user
I have read that it should work to simply change the From field in the Campaign settings but this does not work.
When I setup phpList is used the address wrong@domain.com
My smtp credentials use the name valid@domain.com and this is also the address in the From field of the Campaign.

However the debug logging is showing login to SMTP successful but the phpList tries to set the From address to wrong@domain.com

WHy is it still trying to use wrong@domain.com?

@mtissington “Sender address” is not the campaign From address. You probably need to set this in the config.php file. The default value is the email of the phplist admin. Usually this is a dedicated email address to receive bounces

$message_envelope = 'listbounces@yourdomain';

I’m using an external smtp server.
Hmm, but the Sender address is what appears as the From address in the email - yes?
So where does the recipient see the From address?

Needless to say, I’m a little confused.

@mtissington the Sender address is used in the SMTP MAIL FROM command, see the wikipedia page Simple Mail Transfer Protocol - Wikipedia

If you are not concerned about bounces then you can set $message_envelope to any valid email address for your domain.

Thanks - so is it a good idea to use the same email for both smtp login user and $message_envelope ?

@mtissington Yes that’s fine.