Mailbox unavailable. The server response was: 5.7.1 Unable to relay for

  • i am using script and using

    Imports System.Net.Mail

    Dim client As New SmtpClient("mail.XXXXX.com")

    client.Credentials = New NetworkCredential("xxxx", "xxxx", "Domain")

    client.Send(message)

    it was working fine till day before but suddenly i am getting

    Mailbox unavailable. The server response was: 5.7.1 Unable to relay for mailaddress

    Can you please suggest what would have went wrong?

  • keywestfl9 (11/27/2009)


    i am using script and using

    Imports System.Net.Mail

    Dim client As New SmtpClient("mail.XXXXX.com")

    client.Credentials = New NetworkCredential("xxxx", "xxxx", "Domain")

    client.Send(message)

    it was working fine till day before but suddenly i am getting

    Mailbox unavailable. The server response was: 5.7.1 Unable to relay for mailaddress

    Can you please suggest what would have went wrong?

    When you are using SMTP directly you need to use a config file with System.NET config sections in IIS with your IIS SMTP running or your Exchange with the relevant Exchange security information. In the meantime I will look up SSIS SMTP information because SSRS comes with a CDO interop dll in the root so you don't need the SMTP information for Exchange.

    In SSIS there is a config file you need to add your SMTP information I have checked the file in my SSIS folder check below for more information about SSIS config files.

    http://www.sqlis.com/post/Where-is-my-appconfig-for-SSIS.aspx

    Kind regards,
    Gift Peddie

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply