Tuesday 2 December 2008

Mailbox unavailable. The server response was 5.7.1 Unable to relay for (email)

Encountered this today after deploying a project to a server. The email component stopped working and gave me this error:

Mailbox unavailable. The server response was 5.7.1 Unable to relay for (email)

The solution was to add the following:

deliveryMethod="PickupDirectoryFromIis"

into the system.net/mailSettings/smtp node in the web.config as an attribute. Put that in and it works fine!

No comments: