DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Confirmation emails not being received. No errors in log.

Sort:
You are not authorized to post a reply.





Growing Member





    I have G suite and a mail relay setup that was working correctly for several months.

    smtp-relay.gmail.com:587 has worked with an App Specific Password.

    About 3 weeks ago, I migrated my server to a new host.  The mail was working fine till 3 days ago at which time the SSL certificate expired.  I put in a new SSL certificate and everything is working.

    The SMTP server test gets a success message in SMTP server settings.
    The test message appears in my SENT items but not in my RECEIVED Items.

    Google Support says it has to do with the website not sending, not the mail relay.

    Is there a way to log the emails that are successful? To review email logs from the site?
    I'm trying to troubleshoot why the emails from the DNN site are not getting delivered to recipients; and there are no error messages that I can find.
     






    Veteran Member





      Does the SMTP test message go to an external domain? If you can receive it at an external domain, then DNN is both sending and relaying to an external domain. And, it should be going through the G Suite mail system. You should be able to see that if you look at the email headers of the received messages.

      If you update the log4net settings, you should be able to see logs of email sending. You'll have to check to see the minimum logging level. I'd just set it to ALL and wade through what is there. Then, you can see if you can dial it back.

      And, you might try using a different SMTP server, just to see ...
      Joe Craig
      DNN MVP
      Patapsco Research Group





      Veteran Member





        Which DNN version are you using? (There is a new mail provider included with DNN 9.9.x)
        Did you check server firewall restrictions? - Make sure, the new server is able to access Gmail SMTP server.
        You may use a tool like https://www.papercut-smtp.com to check the emails being sent.
        (install the software on your server, configure DNN to use localhost as SMTP and check the mails and its headers received by the tool)






        Growing Member





          Thanks.

          I am using 9.09.01 currently

          The strange thing is -- I have 2 DNN sites/installations using the same version.

          The one that didn't have the SSL certificate expire -- the mail server is working fine on that G Suite.

          This one has the same settings but does not.

          I'm thinking there has to be something I am missing? But I don't know how to find it.

          The firewall shouldn't be an issue as both use the same port 587?

           






          Growing Member





            Thanks -

            I will try this...

            In my SENT ITEMS within G Suite Google Workspace, I have this:

            Message ID 64dfb36e.1d79fb81.8e2a5.005433SMTPIN_ADDED_MISSING@mx.google.com

             

             

            Is this a clue to why it's not being delivered?






            Growing Member





              Is log4net something I enable in web.config?

              Do I have to install something on my server?






              Growing Member





                Google Support tells me these steps will fix it but it may take 48 hours.

                Apparently my IP address is being treated as SPAM.

                So, I had to change my SPF record

                from: v=spf1 include:_spf.google.com ~all

                to: v=spf1 ip4:84.34.343.442 include:_spf.google.com ~all   (IP address changed as example)

                I also had to whitelist the same IP address here: https://admin.google.com/...ail/spam?hl=en  under "Email whitelist"


                Hopefully this fixes it!
                 






                Veteran Member





                  Posted By TechieMD on 20 Jun 2021 04:15 PM

                  Is log4net something I enable in web.config?

                  Do I have to install something on my server?

                  Log4Net is installed with DNN and enabled automatically.
                  It will create log files inside /portals/_default/logs folder.

                   

                   






                  Veteran Member





                    you should investigate, why Google treats your IP as spam - otherwise you may find yourself soon in the same situation again.





                    Veteran Member





                      Edit DotNetNuke.log4net.config in the root directory of your DNN installation to change the level of detail in the logs.

                      Line 18: is the default.

                      See this for more: https://www.dnnsoftware.c...og4net-in-dotnetnuke
                      Joe Craig
                      DNN MVP
                      Patapsco Research Group
                      You are not authorized to post a reply.

                      These Forums are dedicated to the discussion of DNN Platform.

                      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      5. No Flaming or Trolling.
                      6. No Profanity, Racism, or Prejudice.
                      7. Site Moderators have the final word on approving / removing a thread or post or comment.
                      8. English language posting only, please.

                      Would you like to help us?

                      Awesome! Simply post in the forums using the link below and we'll get you started.

                      Get Involved