Can't send email to outside domain from Workflow RRS feed

  • Question

  • Hi,

    I've been successfully deploy
    ed Workflow to send email around our network, such as job completion notification etc.

    Recently I’ve made change the workflow to send email outside the network (outside the domain), such as abcd@gmail.com. The workflow is not working and gives an error message saying:

    System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxxxx@gmail.com

       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotif

    After seeing the error message, I've tried creating email mailbox for the wss contents service account, but, that didn't solve the problem.

    FYI, the current setting for WSS out-going email server is – our domain MS-Exchange server.

    Any information that would help resolving this problem will be really appreciated.


    Wednesday, May 20, 2009 4:21 AM

All replies

  • The hint is the 'unable to relay' message. Relaying allows people to bounce emails across servers. I remember a time (long ago) when I was an Exchange 5.5 Administrator, I left relaying open and people were able to make emails look like they came from our domain. Made me feel really stupid. Exchange is a lot more secure OOTB these days and relaying seems to be closed by default.

    I don't think the problem is with your code, or the need for a mailbox (although it's nice to catch replies). You need to enable exchange to accept relays from the sharepoint web server. Check out this article:

    Wednesday, May 20, 2009 6:25 AM