3

The environment is a 2 node 2008 SQL Cluster. The first node was running fine but after failover to the second node Database Mail no longer can send emails. I am using Basic authentication.

The full error message is: The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 0 (2012年04月10日T15:26:56). Exception Message: Cannot send mails to mail server. (Transaction failed. The server response was: 5.7.1 : Sender address rejected: Access denied). )

This appears to be a SMTP issue but I have validated it is not by writing a vbscript with CDO using the same credentials as Database Mail configuration and the emails go through fine on the same box.

I have recreated the Database Mail account on the second node just to make sure the credentials are correct but that didn't fix the problem.

Does anyone know how to get this working again?

asked Apr 10, 2012 at 21:32
2
  • Sounds like SMTP credentials have changed. Have you verified this? Commented Apr 10, 2012 at 23:31
  • Yes, I verified the credentials have not changed. Commented Apr 11, 2012 at 13:27

1 Answer 1

1

Perhaps the IP of your second node is not allowed to relay.

answered Apr 10, 2012 at 23:24
7
  • I was thinking the same thing at first but the smtp server I am connecting to is at Rackspace and they don't have any IP limitations that I know of. Also doesn't the fact that I can send email with CDO from the second node prove that the problem is not with the SMTP server? Commented Apr 11, 2012 at 12:11
  • Can you confirm w your Exchange admin that both nodes' public IPs are allowed to relay? Can you fail back to the other node and see if it still works there? Commented Apr 11, 2012 at 17:09
  • Creating maintenance window tonight to patch cluster and do failover. Commented Apr 12, 2012 at 12:58
  • Great, let us know how it goes. Commented Apr 12, 2012 at 16:28
  • After patching and failover testing node 1 works and node 2 does not. Our email is provided by Rackspace (Pop3, no exchange) so I am connecting to their smtp server directly in my config. I used telnet to test smtp auth and sending message and it works from both nodes. It seems like node 2 is not passing the credentials properly. Commented Apr 13, 2012 at 13:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.