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.
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

Postby tcha » Wed Apr 22, 2020 12:00 pm

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

Postby Lewis-H » Wed Apr 22, 2020 1:30 pm

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

Postby tcha » Fri Apr 24, 2020 7:03 am

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
Elite member
Elite member
Posts: 2198
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 8.8.15 Network Edition
Contact:

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

Postby L. Mark Stone » Fri Apr 24, 2020 3:36 pm

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/
Zeta Alliance http://www.zetalliance.org/

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 18 guests