How can I set the Sender’s address in Jenkins?

I’m sending mail from Jenkins to an anonymous SMTP relay internally. That relay then securely sends mail to exchange online via TLS on port 587. The transport works perfectly, the issue is that Microsoft requires the Sender address match the authentication credentials login name which is the same as the account email address. For example sake, say this is [email protected]. How can I make jenkins always send mail from [email protected]?

BTW when I say the transport works perfectly what I mean specifically is that I can drop a formatted e-mail file into the “Pickup” directory on the SMTP relay server and it is properly sent to any recipient provided the From address is [email protected].

6 Answers
6

Leave a Comment