Problem with Emailer (Mailgun) Plugin



  • I just recently installed NodeBB and the mailgun emailer plugin.

    I have mailgun setup and ready to go (all of its checks pass properly). I took the API key and entered it into the plugin admin screen (along with my domain name). Then I went into the forum's settings -> email, changed as appropriate and at the bottom clicked "send test email". I then received a popup "Error: Forbidden".

    None of the logs in nodebb show anything (literally - they're empty) and mailgun has nothing in it either. I'm trying to determine where this forbidden is generating from and how to resolve it. Any thoughts?

    Thanks


  • Global Moderator

    @etakmit try running nodebb in dev mode with ./nodebb dev which will output the log in real time to your terminal.



  • Super helpful thanks. However the output from the debug is nearly as crytpic 🙂

    24/1 13:01:36 [7499] - warn: Missing translation "email:digest."
    24/1 13:01:36 [7499] - warn: [emailer.mailgun] Unable to send digest email to uid 1!!
    24/1 13:01:36 [7499] - error: [emailer.mailgun] (Forbidden)
    24/1 13:01:36 [7499] - error: [plugins] filter:email.send, Forbidden

    Then for the sake of it I was wondering if it just didn't like sending an email to the admin. So I created a second user and see much of the same

    24/1 13:03:19 [7499] - warn: [emailer.mailgun] Unable to send welcome email to uid 2!!
    24/1 13:03:19 [7499] - error: [emailer.mailgun] (Forbidden)
    24/1 13:03:19 [7499] - error: [plugins] filter:email.send, Forbidden
    24/1 13:03:19 [7499] - warn: [emailer.mailgun] Unable to send registration_accepted email to uid 2!!
    24/1 13:03:19 [7499] - error: [emailer.mailgun] (Forbidden)
    24/1 13:03:19 [7499] - error: [plugins] filter:email.send, Forbidden

    Looks like permissions to me. But I'm not comfortable enough about the nodebb layout on my server to be sure.


  • Global Moderator

    It looks like the mailgun plugin is receiving a response of "Forbidden" from mailgun. I'd double check your settings on the plugin page.



  • Will do 🙂 not much to it other than an API key and the domain. I'll make sure extra spaces or the like didn't get tossed in during my copy / pasting.



  • Bahahah - nice catch. the API key was wrong (most keys are just letters / numbers so thats what I copied). I missed a simple key- that preceded the key. once I added that we're all good.

    thank you!



  • Hello ! Can someone please help ?

    Here’s what I did :
    Installed and activated the plugin
    630f16da-0ef5-4ca1-a4a9-1dcbc0e990e9-image.png
    Created an account on Mailgun
    Then in the plugin settings on my ACP, I entered the API key and the sandbox domain
    5d51f83a-6a5b-49be-981c-e5491c761d42-image.png
    (this is my API key
    999bbfea-a07d-450a-a018-a6eb3c1b28e6-image.png
    )
    Clicked save and ran a rebuild
    Then in my ACP mail settings, I activated the toggle button to “use an external server to send emails”, selected the Mailgun service
    05cffa40-c98d-46e6-8d47-bb67064956c6-image.png
    Then saved, then sent a test email.
    The email never got through, so I went to the sandbox logs :
    9e180031-58b2-428e-b650-eedd243b5570-image.png
    So I upgraded my Mailgun account so I could create a domain, I created my domain.
    I activated it by filling in the data required in my DNS. Done and activated.
    3a80357d-cba7-452d-a18d-319b636b7948-image.png
    Went back to my plugin settings and entered the new domain name
    9919da77-9a6d-4624-953f-d98f96dfa04f-image.png
    Saved the changes, did a rebuild.
    Went back to the email settings in my ACP, and sent a new test email.
    And nothing. I don’t receive an email and I don’t even have a log in my Mailgun domain, neither successful nor rejected, same as my previous attempt with the sandbox.
    What did I do wrong ? Any steps I forgot to go through ?

    Thanks !




  • Community Rep

    Nothing new in the logs?



  • @Bri Nothing new. All I did is OK ? Our forum is still in :4567 is this a possible reason ? is there any other solution than Mailgun? (I'm French so sorry for my approximate english)

    Regards.



  • Thanks to this topic I finally managed to use Mailgun with the SMTP Protocol and not the plugin (which uses the API key), sending test mail works... but when I activate account validation by mail, no confirmation email ever arrives when asked. Is there anything else to do?

    Thank you!


  • Community Rep

    You never get a confirmation email from mail gum when you register? That might be part of the problem



  • I activated this

    37f256ba-543b-4349-bc2f-f79ebd2f9948-image.png

    but no mail is sent, neither to the registration (I tried with a new account) nor to the accounts already present at the time of activation of the option.

    Nothing either in my logs on Mailgun. Only the test mails are sent, but that's not really what I was considering...



  • @Origami-Bird said in Problem with Emailer (Mailgun) Plugin:

    I activated this

    37f256ba-543b-4349-bc2f-f79ebd2f9948-image.png

    but no mail is sent, neither to the registration (I tried with a new account) nor to the accounts already present at the time of activation of the option.

    Nothing either in my logs on Mailgun. Only the test mails are sent, but that's not really what I was considering...

    Hello, our problem is still not solved.

    Settings in ACP :

    181d0ad3-889f-4f12-90ca-aebbc714b309-image.png

    Tried port 25 and not better. I confirm that test mails work normally but no real mail send (password reset, account validation...)

    Someone to help us please? This is our last problem preventing us from launching our Forum on https.

    Thanks (and still sorry for approximate translate french to english) !



  • This post is deleted!

Log in to reply
 

Suggested Topics

  • 2
  • 7
  • 1
  • 4
  • 7
| |