Developer forum

Forum » CMS - Standard features » Password recovery email not send, error in source

Password recovery email not send, error in source

Harald Brouwers
Reply

[Solved]: A setting in the web.config took precedence over the Globalsettings.aspx settings, resulting in a incorrect configuration

 

Hi,

I've been asking this question at Azure and Sendgrid, but unfortunately they can't help me.

I have a page with the Extranet login module, configured to send a email with a password reset link. This works fine on my development environment with the SMTP server of our internet provider.

But on my (Azure) staging environment I keep running into an error. After clicking submit, there is a wait of about 15 second and then nothing happens. If I look in the source of the page I see the following error:

<div id="login">An error occured while attaching module (Dynamicweb.Frontend.Content)<br><br><pre>System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 <my@office365.ml>... Relaying denied. IP name lookup failed [168.63.xxx.xxx]
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Dynamicweb.EmailHandler.Send(MailMessage mailMessage, Boolean logging, Boolean throwException)
   at Dynamicweb.Security.SendForgotPasswordEmail(String userEmail, String userName, String password, Boolean isNewPwd, String recoveryUrl, String emailTemplateFolder, Dictionary`2 emailTagVals)
   at Dynamicweb.Modules.UserManagement.Frontend.SendPasswordRecoveryLink(User user, Int32 linkLifeTime)
   at Dynamicweb.Modules.UserManagement.Frontend.HandleLogin(ParagraphSettings settings, Dictionary`2 errors)
   at Dynamicweb.Modules.UserManagement.Frontend.GetContent()
   at Dynamicweb.Frontend.Content.GetModule(DataRow& ParagraphRow)</pre></div>

The IP is (one of the) the Azure outbound IP attached to my webapp. Does anybody have an idea how to solve this. Adding a reverseDNS record for the IP is not an option. But maybe it is something in my configuration ???


Replies

 

You must be logged in to post in the forum