Mailbox unavailable. The server response was: Authentication is required for relay - PLEASE HELP

Discussion in 'ASP.NET Starter Kits' started by JohnV, Sep 6, 2008.

  1. I have installed the club web site with no problems.
    I have configued the email smtp through the ASP WEB SITE ADMINISTRATION TOOL and uploaded the web.config file.
    When I test the password recoverey I get an error.
    When I login in to my email account directly on the site - I can send and receive emails with no problem.

    Need a little help trying to troubleshoot.

    web.config code (no port setting however 25 is selected in the web site admin tool)



    <mailSettings>


    <smtp from="[email protected]">


    <network host="smtp.mydomainname.com" password="mypostmasterpw"


    userName="postmaster" />


    </smtp>


    </mailSettings>
    detailed error message

    Server Error in '/' Application.


    Mailbox unavailable. The server response was: Authentication is required for relay Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: Authentication is required for relay

    Source Error:





    Code:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:





    Code:
    [SmtpFailedRecipientException: Mailbox unavailable. The server response was: Authentication is required for relay]
       System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException&amp; exception) +858231
       System.Net.Mail.SmtpClient.Send(MailMessage message) +2004
       System.Web.UI.WebControls.LoginUtil.SendPasswordMail(String email, String userName, String password, MailDefinition mailDefinition, String defaultSubject, String defaultBody, OnSendingMailDelegate onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate, Control owner) +341
       System.Web.UI.WebControls.PasswordRecovery.AttemptSendPasswordQuestionView() +653
       System.Web.UI.WebControls.PasswordRecovery.AttemptSendPassword() +66
       System.Web.UI.WebControls.PasswordRecovery.OnBubbleEvent(Object source, EventArgs e) +101
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
    
     
  2. Hi,
    Instead of your domain try localhost.

    i.e. host="localhost"
     
  3. Thank you! - Problem fixed

    Thanks for taking the time to provide a simple answer to one who is new to this process.
     
  4. Good job [​IMG]
     

Share This Page