Database Mail - not able to sent to outside domain

Discussion in 'Databases' started by freedom1029, Jan 8, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. From my local MS SQL Server, I am trying to send email via the Database Mail feature. I am using a smtp server from a shared hosting company(discountasp.net). The email account I am trying to send from is presently used in my Outlook and it works perfectly , however with MS SQL Server that is located on my local intranet I can only send email to emails that belong to the same domain name. If I try to send to outside domain like my hotmail address for example then I get the following error in my Database Mail Log:

    Message
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2010-01-08T10:11:18). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: <[email protected]> No such user here).
    )

    Note that In the configuration wizard I have selected to used the Basic authentication

    Your help would be appreciated,
    Thanks,
    Eric
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    In order for any application to relay mail from our mail server, the connection needs to be authenticated using SMTP Authentication. If you try to send mail without authentication, you will get this error.

    I am not sure how to configure SMTP auth with SQL mail though.
     
  3. I not sure if that would help to pin point the problem but I installed an other version of sql server 2005 on a test machine that is on the same network. All the emails sent throught that machine are working without problems. Is there any kind of Spamfilter on DiscountAsp.Net that could block my email sent from a specific machine? If so is there any way for me to view what has been blocked?

    Thanks,
    Eric
     
  4. mjp

    mjp

    I'm still not sure exactly what you are doing. You are sending mail from a local database server through our outgoing mail servers? A spam filter would not come into play. "server failure," "Mailbox unavailable" and "No such user here" don't indicate a filtering issue.

    If you authenticate on/against our SMTP server, the mail will be sent. If you don't, it won't.

    Having said that, once the mail is sent there are about a thousand other things that can cause delivery failure. And again, I'm not completely clear on exactly what you're doing...
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    It is definitely a SMTP authentication issue. Your SQL server is not setup to pass the authentication credential.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page