SMTP Authentication is successful
SmtpCmdResp: 235 2.7.0 Authentication successful --auth_login_1 CONNECTED to ESMTP server smtp.aaa.com:25
mailman.SendEmail(email) returns false with following error
SmtpCmdResp: 553 5.7.1 : Sender address rejected: not owned by user email@example.com
553 5.7.1 : Sender address rejected: not owned by user firstname.lastname@example.org
Failed when sending RCPT TO:
mailman.SmtpHost = "smtp.aaa.com";Please help.
mailman.SmtpPort = 25; mailman.SmtpUsername = "email@example.com"; mailman.SmtpPassword = "xxx"; email.From = "firstname.lastname@example.org";
Your particular mail server requires that the "MAIL FROM" address have the same domain as the mail server's domain. Some mail servers have this requirement.