Database mail is configured on sql sever 2005 (9.0.5000). Profile and accounts are created and configured.
When I try to send test message, message never delivered. Don't know where it stuck up. In database mail log there is error:
Message The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account x (2012-10-31xxx:xx:xx). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Unable to relay).
Well, to ask the obvious questions, is Database Mail configured to use an SMTP server? Is that server running an SMTP service? Can the two servers see each other (ping test)?
As all users suggested that this could be an issue with your SMTP server. My view is also same. First make sure that the server is working properly. See this post for detail information: http://support.microsoft.com/kb/323350?wa=wsignin1.0