Menu

Unable to send an email

Help
Jey
2008-01-03
2013-05-01
  • Jey

    Jey - 2008-01-03

    I am using the SVNNotifyforWindows  Version 1.43, The html file generated but failed to send an email.
    The SVN Server running on Windows 2003 server SP2, I'm using ISP for SMTP out, and my SVN Server sits locally at home just connected to internet having static IP.

    <Mail Server Name> = "mail.axiomfount.com"
                         UserName= "UserID"
                         password ="******"
                         ADGlobalCatalog = "axiomfount.com"
                         FromAddress="UserID@axiomfount.com"

    I've also user user mapping as well.

    Here is the error msg I got in log file.  Please Help, how this program retrive emailID, from local host or Domain@ISP ?

    -------------------------SubversionNotify.log---------------------------------------------------
    [1/2/2008 7:49:59 PM]        *************************
    [1/2/2008 7:49:59 PM]        Staring process for Revision 26 [D:/SVN_Repositories/Doc]
    [1/2/2008 7:50:00 PM]        Configuration file deserialized
    [1/2/2008 7:50:01 PM]        Getting e-mail address for AXIOMFOUNT\jarumugam from axiomfount.com
    [1/2/2008 7:50:07 PM]        Unable to retrieve e-mail address for AXIOMFOUNT\jarumugam:
    System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational.

       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
       at System.DirectoryServices.DirectorySearcher.FindAll()
       at SubversionNotify.ADHelper.GetEmailAddressFromUserID(String userId, subversionNotifyConfig& cfg, String& lastName, String& firstName, String logFileName)
    [1/2/2008 7:50:08 PM]        HTML Message Generated
    [1/2/2008 7:50:08 PM]        Getting e-mail address for AXIOMFOUNT\jarumugam from axiomfount.com
    [1/2/2008 7:50:14 PM]        Unable to retrieve e-mail address for AXIOMFOUNT\jarumugam:
    System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational.

       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
       at System.DirectoryServices.DirectorySearcher.FindAll()
       at SubversionNotify.ADHelper.GetEmailAddressFromUserID(String userId, subversionNotifyConfig& cfg, String& lastName, String& firstName, String logFileName)
    [1/2/2008 7:50:14 PM]        Generating e-mail message
    [1/2/2008 7:50:14 PM]        Unable to send mail:
    System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for jarumugam@gmail.com
       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at SubversionNotify.Program.PostCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName, String baseFolder)
    [1/2/2008 7:50:14 PM]        Write to log...
    [1/2/2008 7:50:14 PM]        HTML file written to D:\SVN_Notify_1.43\log\Revision 26.html
    [1/2/2008 7:50:14 PM]        Finished processing Revision 26
    [1/2/2008 7:52:02 PM]        *************************
    [1/2/2008 7:52:02 PM]        Staring process for Revision 26-1 [D:/SVN_Repositories/Doc]
    [1/2/2008 7:52:03 PM]        Configuration file deserialized
    [1/2/2008 7:52:03 PM]        Commit Paths: SVN-Guides/
    [1/2/2008 7:52:03 PM]        Passed Folder Name Exclusion test.
    [1/2/2008 7:52:03 PM]        Passed File Type Exclusion test.
    [1/2/2008 7:52:03 PM]        Checking for FileType Requirements complete. Not Required.
    [1/2/2008 7:52:03 PM]        *************************
    [1/2/2008 7:52:03 PM]        Staring process for Revision 27 [D:/SVN_Repositories/Doc]
    [1/2/2008 7:52:04 PM]        Configuration file deserialized
    [1/2/2008 7:52:04 PM]        Getting e-mail address for AXIOMFOUNT\jarumugam from axiomfount.com
    [1/2/2008 7:52:10 PM]        Unable to retrieve e-mail address for AXIOMFOUNT\jarumugam:
    System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational.

       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
       at System.DirectoryServices.DirectorySearcher.FindAll()
       at SubversionNotify.ADHelper.GetEmailAddressFromUserID(String userId, subversionNotifyConfig& cfg, String& lastName, String& firstName, String logFileName)
    [1/2/2008 7:52:10 PM]        HTML Message Generated
    [1/2/2008 7:52:10 PM]        Getting e-mail address for AXIOMFOUNT\jarumugam from axiomfount.com
    [1/2/2008 7:52:17 PM]        Unable to retrieve e-mail address for AXIOMFOUNT\jarumugam:
    System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational.

                        

     
    • mmckechney

      mmckechney - 2008-01-03

      Jey - it looks like there are two issues here. First, the "The server is not operational" COM exception would suggest that the Domain global catalog address you have specified is invalid. Are you using Active Directory? If not, you can leave this parameter blank and the mail messages will be sent from the default "FromAddress" attribute value.

      Second, the "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for jarumugam@gmail.com" error suggests that the username and password you added for authentication to the SMTP server are incorrect and/or the target server does not accept relay messages from your machine/IP. Do you have other applications that successfully send e-mail through that ISP? If so, do you know how they are configured?

      Thanks,
      Mike

       
    • Jey

      Jey - 2008-01-04

      Hi Mike, Thanks a lot for speedy response.
      I am using Active Directives listing for SVN login.
      I can send and receive an email from ISP using outlook client.

      I just want to make sure I understand the following entry in configuration file.

      Mail Server: <incoming mail server at ISP>
      UserName= UserID at ISP
      password =
      ADGlobalCatalog = What is this for (If I leave blank, always fail)
      FromAddress="UserID@axiomfount.com" ( How this will work )

      What is the following two msg are
      1/2/2008 7:50:08 PM] Getting e-mail address for AXIOMFOUNT\jarumugam from axiomfount.com
      [1/2/2008 7:50:14 PM] Unable to retrieve e-mail address for AXIOMFOUNT\jarumugam:

      Its actually looking at localhost or ISP, I always get above msg even if use differnet ISP.
      My local host server set domain as Axiomfount.

      Please your help really appreciated, I am stuck with this issue more than a week.

      Jey

       
      • mmckechney

        mmckechney - 2008-01-04

        Jey -
        Here are the definitions for <MailServer> element attributes:
        Name: the name of the SMTP server you want to send the message from
        Username: the account name that has credentials to authenticate against the SMTP mail server.

        Password: the password for the above UserName.

        ADGlobalCatalog: the name of the Active Directory global catalog (if you have one). The tool will try to match up the SVN user ID to an account in the Directory and retrieve that user's e-mail address. If successful, it will use that e-mail address as the "From" for the commit message e-mail. If not, it will use the "FromAddress" value. You mention that if you leave this blank, you always get an error. Can you provide that error? The tool should just recognize that no value is set and just use the "FromAddress" value. No error should be thrown.

        FromAddress: the default "From" value for the e-mails that get sent if a look-up was not successful from AD.

        The log messages that you provide are telling you that the Subversion Notify is trying to retrieve the e-mail address for the AXIOMFOUNT\jarumugam account, and the second one it telling you that it wasn't able to retrieve one. jarumugam must be the SVN account that you are using for the commit or it the ID mapped to the SVN ID via the UserMappings section.

        Your MailServer element should look like:

        <MailServer Name="mail.axiomfount.com" Username="accountid" Password="password" ADGlobalCatalog = "axiomfount.com" FromAddress="UserID@axiomfount.com">

        Where you replace accountid and password for the true authentication credentials.
        I hope this helps, if you are still having issues, please do let me know and I'll see if I can help.
        Thanks, Mike

         
  • Mahantesh Chanapannavar

    Hi,
    Thanks for the above post.
    I am also facing the same issue and couldn't get through from it.

    Any updates/solution on this topic please?

    Regards,
    Mahantesh

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.