SendReceipientMail Exception after upgrade from 1.2 to 1.5

Topics: Installing BugNET
Sep 5, 2013 at 10:54 PM

when I add some changes to an issue I am not receiving any notification emails any more.
The log shows the following entry:

System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 Un...

Any Ideas?
Thanks in advance
Sep 6, 2013 at 11:12 AM

I think I have found a hint.

Currently it is possible to register domains with special german characters (called "Umlaute").
It is possible to have Domains with "Ä", "Ö" and "Ü" in the domain name.

With Version 1.2.x I had to use xn-- instead of "ö", or similar and everything went fine.
With Version 1.5 it looks like this is not possible any more (see exception in first posting)

If I Change the Domain Name to use the "ö" in the name the web-UI accepts the input but while sending I receive the following exception.

System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
at System.Net.Mail.MailAddressParser.ParseMultipleAddresses(String data)
at System.Net.Mail.MailAddressCollection.ParseValue(String addresses)
at BugNET.BLL.Notifications.SmtpMailDeliveryService.Send(String recipientEmail, MailMessage message)
at BugNET.BLL.IssueNotificationManager.SendIssueNotifications(Int32 issueId, IEnumerable`1 issueChanges)

Is there a flag or something possible to change to accept the new domain names too?

Sep 8, 2013 at 10:15 AM
ok, I have found at least a part of the problem.
Everything runs fine as long as I am sending mail inside our domain.
But if a receipient is outside the domain (of our exchange server), than I am receiving exceptions like descripted in the first post above.

I have seen an existing thread "Email notifications not working" and a new "How to configure BugNet to semd mail notification to other mail domain", so I will stop posting here and add further informations to the other posts