Troubleshooting database mail (SMTP relay issue?)
Posted on 2007-11-14
When trying to use database mail, I get an error whenever I send test mail outside the domain of the originating address. The error is: The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2007-11-14T08:57:20). Exception Message: Cannot send mails to mail server. (Transaction failed. The server response was: 5.7.1 <email@example.com>: Relay access denied).
The database server is outside the ISP. The mail is configured with a sender address from a domain hosted by the ISP, and a reply-to outside the domain.
When I send a test e-mail, it succeeds for destinations with the same domain as the sender; it fails for e-mail in all other domains tested.
My ISP has specifically white-listed the database server IP for SMTP relaying.
Any suggestions as to how to resolve this issue?