Sql DBMail Rejected by Exchange 2007
Posted on 2009-05-11
I have a server with SQL Server 2005, setup with dbmail. I have a seperate server setup with Exchange 2007.
If within sql server I go to Management and then right click on Database Mail, it sucessfully sends an email to an internal address. If I send an emali from a SP it gets rejected.
DECLARE @mailitem_id int
@profile_name = 'mail_Profile',
@recipients = 'firstname.lastname@example.org',
@body = 'This is a test.',
@subject = 'This is a test',
@body_format = 'TEXT',
@mailitem_id = @mailitem_id OUTPUT;
The rejection message is:
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2009-05-11T13:58:21). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering.). )