Archived Forum Post

Index of archived forum posts

Question:

SendMail Error

Nov 29 '12 at 08:40

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 aaa@aaa.com
553 5.7.1 : Sender address rejected: not owned by user aaa@aaa.com
Failed when sending RCPT TO:

Code:

 mailman.SmtpHost = "smtp.aaa.com";
mailman.SmtpPort = 25; mailman.SmtpUsername = "aaa@aaa.com"; mailman.SmtpPassword = "xxx"; email.From = "aaa@aaa.com";
Please help.

Thanks, Karthik


Answer

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.