Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
tcha
Posts: 2
Joined: Wed Apr 22, 2020 11:43 am

Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied

Post by tcha »

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
Lewis-H
Posts: 49
Joined: Wed Jan 01, 2020 11:28 am
Contact:

Re: Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied

Post by Lewis-H »

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);
tcha
Posts: 2
Joined: Wed Apr 22, 2020 11:43 am

Re: Transaction failed. The server response was: 5.7.1 <thomas.charles.tza@gmail.com>: Relay access denied

Post by tcha »

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
User avatar
L. Mark Stone
Ambassador
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

Post by L. Mark Stone »

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
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
Post Reply