May 7, 2010 at 9:32 am
I'm setting up Database mail and I'm getting a "Cannot send mails to mail server(Mailbox unavailable. The server response was 5.7.1 <test@ghsdebtsolutions.com>... Relaying denied.IP name possibly forged)" error.
I'm executing a simple:
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'GHSRelay',
@recipients = 'test@ghsdebtsolutions.com',
@body = 'The stored procedure finished successfully.',
@subject = 'Automated Success Message' ;
The profile is using one account and the account is pointing to a relay service IP because of a number of relays limited on a daily basis reached. From outlook the smtp server works fine but from dbmail I get the mentioned error.
Any help would be appreciated.
May 7, 2010 at 9:38 am
You may get better help from your email administrator. That is where i would go with issues like this one.
May 7, 2010 at 10:14 am
Unfortunately there is no email administrator. I was recently hired as developer/dba and the only IT guy here.
Emails were already setup when I got here (thank god)
Any help, please?
May 7, 2010 at 10:25 am
most mail servers allow relaying only for two conditions: if your IP address is on the same subnet as the mail server, ie the internal IP to your mail server on the LAN, or if you explicitly pass a username and password which is valid on the email server.
check your mail configuration and see what has been set up; if it is using anonymous(i believe it is...otherwise it wouldn't reject the relay) then change it to a username and password of a valid email account.
Lowell
May 7, 2010 at 10:30 am
Lowel thanks for your reply.
But no, I'm using the relay server's userid and password. Same ones I'm using from outlook and it works fine there
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply