March 11, 2014 at 11:24 pm
Hi,
I configured Database mail, but mails are not delivering.
Below error:-
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2014-03-10T17:21:59). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender). )
Server dont have SMTP serivce and IIS.
Is SMTP and IIS is mandatory ?
Thanks
--------------------------------------------------------
I am Learner -- SQL
March 12, 2014 at 3:29 am
You need outgoing mail server (SMTP) for Database mail.
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
March 12, 2014 at 3:42 am
selvakumar.sms (3/11/2014)
Hi,Server dont have SMTP serivce and IIS.
Is SMTP and IIS is mandatory ?
Thanks
You need to ask your system or network administrator about the SMTP server name configured in your organization . Once you get the SMTP server name you need to configure the database mail with that only.
You DO NOT need IIS at all for configuring the database mail.
P.S. if you are doing it for test purpose (like at your home pc), you can use GMail as the smtp server.
March 12, 2014 at 4:31 am
SMTP Server IP is configured in Database mail Account.but mail is not delivery.Any services i need to enable in the server ?
From other server Database mail is working.
--------------------------------------------------------
I am Learner -- SQL
March 12, 2014 at 4:39 am
selvakumar.sms (3/12/2014)
SMTP Server IP is configured in Database mail Account.but mail is not delivery.Any services i need to enable in the server ?From other server Database mail is working.
Ensure you have restarted the SQL Server Agent service after configuring the Database Mail.
March 12, 2014 at 4:53 am
I restarted SQL Server Agent also.But no luck.
--------------------------------------------------------
I am Learner -- SQL
March 12, 2014 at 5:16 am
selvakumar.sms (3/12/2014)
I restarted SQL Server Agent also.But no luck.
As per your error description it seem that the mail account used to send the mails doesn't have the permission on the SMTP server. Have you checked the permissions for that account on SMTP server? For test purpose & to ensure that it is a permission issue, you can use the email account that is working on the other server (as you say).
March 12, 2014 at 5:48 am
Other server we are using window authentication credentials only.
--------------------------------------------------------
I am Learner -- SQL
March 12, 2014 at 5:49 am
I think error " The server response was: 5.7.1 Client does not have permissions to send as this sender" is related to a specific mail setting; that is, using account lowell@somedomain.com to send an email as if i was CompanyPresident@somedomain.com.
I've typically set up my mail with an account selected specifically for the dbmail, like sqlalerts@somedomain.com or something.
in the specific emails you are sending, is your FROM email address different from the one that is set up in your dbmail?
Lowell
March 12, 2014 at 10:41 pm
I am using my own mail Id for DBmail account.Test mail itself not going.
--------------------------------------------------------
I am Learner -- SQL
March 12, 2014 at 11:04 pm
visit following link to troubleshoot step by step:
http://technet.microsoft.com/en-us/library/ms187540(v=sql.105).aspx
HTH
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
March 12, 2014 at 11:21 pm
selvakumar.sms (3/12/2014)
Other server we are using window authentication credentials only.
Depending on how your exchange/default SMTP server is configured, you may want to try changing your SMTP Authentication mode to "Anonymous authentication", stop/restart sysmail, then send yourself a test message.
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 13, 2014 at 1:05 am
I tried various possibilities,no luck...
here my small doubt i need IIS service in Server or i need to enable SMTP service in server ?
IIS and SMTP services are not available in server.
Or i need to enable any other service in server ?
Thanks
--------------------------------------------------------
I am Learner -- SQL
March 13, 2014 at 5:16 am
Hi, first you have to enable
sp_configure 'Database Mail XPs',1
go
reconfigure
go
And next Go to DBA Server (SSMS Window) > Management > Database Mail > create profile(DBA) > Add SMTP account (Email ID)>
Email Address( smpt email id) > Display Name (DBA) > server name(SMTP serve name/ip address) > Basic authentication > Name (email id) > password (email id password) > next
Send text email
For troubleshoot
telnet smtp server ip and port 25
March 13, 2014 at 6:01 am
selvakumar.sms (3/13/2014)
I tried various possibilities,no luck...here my small doubt i need IIS service in Server or i need to enable SMTP service in server ?
IIS and SMTP services are not available in server.
Or i need to enable any other service in server ?
Thanks
IIS - No, SMTP - Yes
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
Viewing 15 posts - 1 through 15 (of 17 total)
You must be logged in to reply to this topic. Login to reply