SQL Server Developer Center > SQL Server Forums > SQL Server Notification Services > Failing Database mail in clustered environment.
Ask a questionAsk a question
 

AnswerFailing Database mail in clustered environment.

  • Wednesday, July 29, 2009 3:53 PMNirShrestha Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,
    we had set up database mail which used to work fine. But now its been failing giving this messages:

    Message
    1) Exception Information
    ===================
    Exception Type: System.NullReferenceException
    Message: Object reference not set to an instance of an object.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
    HelpLink: NULL
    Source: DatabaseMailEngine

    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateCommand(DBSession dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)



    I am completely out of clue. Any help would be appreciated.

    Thanks

Answers

  • Wednesday, August 05, 2009 7:42 AMNai-dong Jin - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    From the stacktrace information you provided, here are the potential causes :

    First, please make sure that the Database mail account can visist the SMTP server, e.g if the account has the permission to visit that, if the password has been changed, or if the account is not in the domain that SMTP server in.

    Second, you need to make sure if the firewall has prevent the account linking to the SMTP server. If you have installed the firewall or you have changed the protecting rule recently, I suggest that you can undo those changes and try again.

    Thanks.
    Microsoft Online Community Support Please remember to mark the replies as answers if they help and unmark them if they provide no help.

All Replies

  • Wednesday, August 05, 2009 7:42 AMNai-dong Jin - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    From the stacktrace information you provided, here are the potential causes :

    First, please make sure that the Database mail account can visist the SMTP server, e.g if the account has the permission to visit that, if the password has been changed, or if the account is not in the domain that SMTP server in.

    Second, you need to make sure if the firewall has prevent the account linking to the SMTP server. If you have installed the firewall or you have changed the protecting rule recently, I suggest that you can undo those changes and try again.

    Thanks.
    Microsoft Online Community Support Please remember to mark the replies as answers if they help and unmark them if they provide no help.