Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied
Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied
i have created aps dot net api app to send email with xy@domain.com,, every thing working fine if i send email with same doman as domain.com but when trying other domain like z@domain1.com it throw error Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied
Re: Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied
SmtpClient sc = new SmtpClient();
sc.Host = "smtp.abc.com";
sc.UseDefaultCredentials = true;
sc.Credentials = new System.Net.NetworkCredential("username", "password");
MailMessage msg = new MailMessage(new MailAddress("s@s.com"), new MailAddress("S@s.com"));
msg.Body = "abc";
msg.Subject = "xyz";
msg.IsBodyHtml = true;
sc.Send(msg);
sc.Host = "smtp.abc.com";
sc.UseDefaultCredentials = true;
sc.Credentials = new System.Net.NetworkCredential("username", "password");
MailMessage msg = new MailMessage(new MailAddress("s@s.com"), new MailAddress("S@s.com"));
msg.Body = "abc";
msg.Subject = "xyz";
msg.IsBodyHtml = true;
sc.Send(msg);
Re: Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied
i have done all thing but when i use to email same as that domain in configuration it works fine but when change the to email to another domain i got the same error
- L. Mark Stone
- Ambassador
- Posts: 2796
- Joined: Wed Oct 09, 2013 11:35 am
- Location: Portland, Maine, US
- ZCS/ZD Version: 10.0.6 Network Edition
- Contact:
Re: Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied
Suggest you consider using Zimbra Personas.
Consider also that, just because I can authenticate as user1@mydomain.com doesn't mean I should be able to send email as tim.cook@apple.com.
Hope that helps,
Mark
Consider also that, just because I can authenticate as user1@mydomain.com doesn't mean I should be able to send email as tim.cook@apple.com.
Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate