Email Sending Failed RRS feed

  • Question

  • HI,

    We are am working with MS CRM 4.0.

    While Sending e-mail using MS CRM e-mail client,we  are always getting alert/warning which says that "the Message is not yet submitted for delivery.n attempts have been made s o far".  and then after few attempts,message sending fails.

    In event Log on our server,we found following excepotion

     Recipient address rejected: Relay access denied

       at System.Net.Mail.RecipientCommand.CheckResponse(SmtpStatusCode statusCode, String response)

       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       at Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider.ProcessMessageInternal(email emailMessage)

       at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.ProcessMessage(email emailMessage)

       at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()

    Let me make few points very clear:
    1) We are not using exchange Server but in place we are using POP3
    2) We have configured e-mail router and have tested Access for all CRM users and Output is Green marks indicating success in sending and receiving e-mail.
    3 )We have restarted CRM e-mail router services quite a few time
    4) We have setup Update rollup 9 for Email Router and have restarted our Server.
    5) We have created our custom Application/workflow which is using MS CRM external Connector(using CRM SDK) .Whwn we are sending e-mail using CRM SDK,e-mail is delivered successfully. 

    Issue only happens when we are sending e-mail using CRM e-mail client or Using built in Workflow.

    Can any one please help us on this matter?

    Any help will be greatly apreciated.




    Wednesday, December 1, 2010 2:04 PM

All replies

  • The code from the CRM email router connector indicates a failed SMTP error.   It is most likly a symtom on of failed SMTP authentication codes.

    You have the Email router installed on a machine with a SMTP service running on installed on it.

    That SMTP Service creates logs and can be configured to record both basic and verbose SMTP successes and failures.  SMTP works real fast.  Microsoft based SMTP services use an extended verb from the standard SMTP called ESMTP.    A little diversion here. Cisco in their security devices had to modify the IOS to allow for the creation of that SMTP verb variation.

    Most of the failed SMTP codes are in the 500 range.    I think we will find our answer in those logs.   From your post it seems that normal Outlook mail through the external pop server works fine because they are authenticating to it.  The router uses an account as well.  How is that account doing outside of the router itself?


    Curtis J Spanburgh
    Wednesday, December 1, 2010 3:36 PM
  • Hi Rushi,

    the error means that your mail server denies relaying to your email router. Basically, email router connects to smtp server and then tries to send email as someone else. It's called relaying and it must be allowed for the router to work. The solution is:

    • if you use anonymous connection to smtp server, add the server where your email router resides into the exception list on your mail server to allow relay - it's usually done by IP address or by server name.
    • use authenticated connection to smtp server and ensure that the account you specified in the router is able to relay (on Exchange servers, for example, relay is usually allowed for any authenticated user)

    Green marks on sending don't mean much in this situation. When testing, router does not actually sends the email, it only validates the connection to smtp server.

    Hope it helps


    George Doubinski, MVP http://crm.georged.id.au
    Friday, December 3, 2010 12:36 AM
  • My friend , thanks for helping out here.  At knew I was pushing him in the right direction.

    Once again , don't rely on wizards to tell you what is going on.

    Did you find the error Rushi?


    Curtis J Spanburgh
    Friday, December 3, 2010 2:59 AM