web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

SMTP mail from Nav2013 with Cumulative Update 5 for Exchange Server 2013

(0) ShareShare
ReportReport
Posted on by 150

Hi

I have a customer, that after they have installed “Cumulative Update 5 for Exchange Server 2013” they are not able to send smtp e-mail form Dynamics Nav 2013 anymore. I have made a very simple test code that generates the error: Mailbox unavailable. The server response was: 5.7.1 Unable to relay. My simple code are shown below:
SMTPMail.CreateMessage('Mr. Hardcode','mhc@gmail.com','mhc@gmail.com','Subject Text test','Body Text test',TRUE);
IF NOT SMTPMail.TrySend() THEN
  MESSAGE(SMTPMail.GetLastSendMailErrorText);

Does anyone have any ideas to what has caused the problem.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    jcastro Profile Picture
    2,245 on at

    Have you changed anything in the SMTP setup? I've faced the same "unable to relay" error when I've been trying to send an email using a sender account I didn't have the permissions for. For example, if the domain of your mail server is @example.com and you are trying to send as @differentexample.com. 

    Also, the relay option is a parameter on the mail server. Make sure it is enabled. This post should help some in that regard. http://exchangeserverpro.com/exchange-2013-configure-smtp-relay-connector/

    Good luck :-) 

  • Suggested answer
    Miguel Llorca Gómez Profile Picture
    7,019 User Group Leader on at

    I'm not sure if this solution apply to 2013, but for Exchange 2010 works fine:

    Open the Exchange System Manager;

    Go in Administrative Groups -> Administrative group name -> Server -> Server name -> Protocols -> SMTP;

    Right click on Default SMTP Virtual Server -> properties;

    Access tab -> Relay buttom;

    Select "only the list bellow" and add your domain and\or IPs you do want to allow the relay

    And finally check  the "Allow all computers witch successfully authenticate to relay, regardless of the list above" checkbox.

    Good luck!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans