Setting up Nodebb with Mailjet
-
Hi all,
I'm looking to set up Mailjet with Nodebb. I installed a plugin available but it doesn't appear under plugins, I'm not sure if the plugin is still compatible with v 2.8.12.
Does anyone have instructions on how to set NodeBB up properly with Mailjet? Thank you.
I know it's a simple question and I'm trying my best to work the config of NodeBB out, but I'm a bit stuck.
Appreciate the help,
Carl -
Another option that should work is to use the built-in SMTP email transport with mailjet's SMTP endpoint.
-
@baris said in Setting up Nodebb with Mailjet:
Did you try
@ktr41n/nodebb-plugin-emailer-mailjet
? Seems like someone forked the plugin and updated it. https://github.com/pichalite/nodebb-plugin-emailer-mailjet/issues/5I have installed the plugin, used my API key etc.
Verified the domain and done SPF/DKIM records with Mailjet, unfortunately no emails delivering.
When I try sending a test email I get this:
"Unsuccessful: Status Code: "401" Message: "API key authentication/authorization failure. You may be unauthorized to access the API or your API key may be expired. Visit API keys management section to check your keys."
Any ideas? Thanks.
-
Never used mailjet but have used Mailgun and it solved some email deliverability issues that's for sure. Setup wasn't any more complex that what you have already had to endure, but it wasn't with NodeBB
I mention it for the value of an alt service you might want to try to rule out mail service provider issues too.
On that note I moved away form elasticmail, can not recommend that service one bit anymore, use at your own peril.
-
@julian said in Setting up Nodebb with Mailjet:
@carlm7 sure, can you double check the value you pasted? Sometimes there are extra spaces etc. that cause the key used to fail.
I checked the values and they are fine, I really wish there was a guide on how to install the plugin properly or get email set up with NodeBB
-
@carlm7 then you'll have to check the permissions on the API key. On some services (e.g. SendGrid) you need to explicitly enable mail sending for the key.
Once the API key works, email should just work.
Alternatively without the plugin you can try using the email settings bundled in NodeBB (in Settings > Email) and put your API key in there.
-
@julian said in Setting up Nodebb with Mailjet:
@carlm7 then you'll have to check the permissions on the API key. On some services (e.g. SendGrid) you need to explicitly enable mail sending for the key.
Once the API key works, email should just work.
Alternatively without the plugin you can try using the email settings bundled in NodeBB (in Settings > Email) and put your API key in there.
Is there meant to be an API key field?
-
@julian said in Setting up Nodebb with Mailjet:
@carlm7 I'm not sure, it may be your login username and password, or your API key and secret. The system bundled in NodeBB is meant to be fairly open ended, so you will have to experiment and see.
I've tried both, restarted the forum both times but no avail.
There's no settings within the Mailjet API keys area to allow send mail.
I even cried custom and input the SMPT info from Mailjet.
Still get this error:
Unsuccessful: Status Code: "401" Message: "API key authentication/authorization failure. You may be unauthorized to access the API or your API key may be expired. Visit API keys management section to check your keys."
-
@julian said in Setting up Nodebb with Mailjet:
It may be time to reach out to Mailjet support now.
... But no, the forum being on a subdomain should make no difference.
So I had a play with stopping the forum and starting it again, as well as re-installing the plugin I have.
I now have a different error
Can't send mail - all recipients were rejected: 554 5.7.1 : Relay access denied
What could this mean?
Thanks for your help.
-
FYI you were still getting the API key error when trying the built in SMTP maker probably because you didn't disable the mailjet plugin.
An emailer plugin always takes precedence.