Skip to content

SMTP server with self signed certificate

Uncategorized
  • Hi everyone,

    I'm trying to get nodebb-plugin-emailer-local-bobo to work with our organization's SMTP server, which has a self signed certificate.

    I'm sending a newsletter to test and this is what I get in the logs:

    20/2 02:46 [28703] - warn: [emailer.smtp] Unable to send newsletter email to uid 1!!
    20/2 02:46 [28703] - error: [plugins] filter:email.send, DEPTH_ZERO_SELF_SIGNED_CERT
    20/2 02:46 [28703] - info: [Newsletter] Finished email loop with error value: Error: DEPTH_ZERO_SELF_SIGNED_CERT

    According to this:
    https://github.com/nodemailer/nodemailer/issues/314

    I should be able to set

    tls: {rejectUnauthorized: false},

    somewhere in a config... but I'm new to nodebb and I'm at a loss as to where to look for such stuff outside the admin interface.

    Any pointers will be more than welcome!

    Cheers and congratulations for nodebb, great work.

    --
    NicoEchániz
    AlterMundi.net

  • Hi everyone,

    I'm trying to get nodebb-plugin-emailer-local-bobo to work with our organization's SMTP server, which has a self signed certificate.

    I'm sending a newsletter to test and this is what I get in the logs:

    20/2 02:46 [28703] - warn: [emailer.smtp] Unable to send newsletter email to uid 1!!
    20/2 02:46 [28703] - error: [plugins] filter:email.send, DEPTH_ZERO_SELF_SIGNED_CERT
    20/2 02:46 [28703] - info: [Newsletter] Finished email loop with error value: Error: DEPTH_ZERO_SELF_SIGNED_CERT

    According to this:
    https://github.com/nodemailer/nodemailer/issues/314

    I should be able to set

    tls: {rejectUnauthorized: false},

    somewhere in a config... but I'm new to nodebb and I'm at a loss as to where to look for such stuff outside the admin interface.

    Any pointers will be more than welcome!

    Cheers and congratulations for nodebb, great work.

    --
    NicoEchániz
    AlterMundi.net

    found no solution to this. Ended up generating an externally generated certificate for the e-mail server.

  • Hi everyone,

    I'm trying to get nodebb-plugin-emailer-local-bobo to work with our organization's SMTP server, which has a self signed certificate.

    I'm sending a newsletter to test and this is what I get in the logs:

    20/2 02:46 [28703] - warn: [emailer.smtp] Unable to send newsletter email to uid 1!!
    20/2 02:46 [28703] - error: [plugins] filter:email.send, DEPTH_ZERO_SELF_SIGNED_CERT
    20/2 02:46 [28703] - info: [Newsletter] Finished email loop with error value: Error: DEPTH_ZERO_SELF_SIGNED_CERT

    According to this:
    https://github.com/nodemailer/nodemailer/issues/314

    I should be able to set

    tls: {rejectUnauthorized: false},

    somewhere in a config... but I'm new to nodebb and I'm at a loss as to where to look for such stuff outside the admin interface.

    Any pointers will be more than welcome!

    Cheers and congratulations for nodebb, great work.

    --
    NicoEchániz
    AlterMundi.net

    I am in the same boat. I use a self signed certificate for outgoing mail and NodeBB is not allowing me to send any mails.

  • Hi everyone,

    I'm trying to get nodebb-plugin-emailer-local-bobo to work with our organization's SMTP server, which has a self signed certificate.

    I'm sending a newsletter to test and this is what I get in the logs:

    20/2 02:46 [28703] - warn: [emailer.smtp] Unable to send newsletter email to uid 1!!
    20/2 02:46 [28703] - error: [plugins] filter:email.send, DEPTH_ZERO_SELF_SIGNED_CERT
    20/2 02:46 [28703] - info: [Newsletter] Finished email loop with error value: Error: DEPTH_ZERO_SELF_SIGNED_CERT

    According to this:
    https://github.com/nodemailer/nodemailer/issues/314

    I should be able to set

    tls: {rejectUnauthorized: false},

    somewhere in a config... but I'm new to nodebb and I'm at a loss as to where to look for such stuff outside the admin interface.

    Any pointers will be more than welcome!

    Cheers and congratulations for nodebb, great work.

    --
    NicoEchániz
    AlterMundi.net

    I have no good solution for this email problem but a solution of "self signed certificate" will be http://letsencrypt.org.
    You can get a SSL certificate in quick and easy.

    Here is related discusstion.
    https://community.letsencrypt.org/t/use-on-non-web-servers/425/9
    From this discussion, the letsencrypt can be used for POP, IMAP, SMTP beyond HTTPS.

  • I have no good solution for this email problem but a solution of "self signed certificate" will be http://letsencrypt.org.
    You can get a SSL certificate in quick and easy.

    Here is related discusstion.
    https://community.letsencrypt.org/t/use-on-non-web-servers/425/9
    From this discussion, the letsencrypt can be used for POP, IMAP, SMTP beyond HTTPS.

    @qgp9 Well, I am in a situation here. I was testing things on a VPS and I created letsencrypt certificates multiple times. When things didn't work out as required I reinstalled the VPS , thereby losing the private keys. Now, I cannot issue any more certificates for my domain.

  • Hi everyone,

    I'm trying to get nodebb-plugin-emailer-local-bobo to work with our organization's SMTP server, which has a self signed certificate.

    I'm sending a newsletter to test and this is what I get in the logs:

    20/2 02:46 [28703] - warn: [emailer.smtp] Unable to send newsletter email to uid 1!!
    20/2 02:46 [28703] - error: [plugins] filter:email.send, DEPTH_ZERO_SELF_SIGNED_CERT
    20/2 02:46 [28703] - info: [Newsletter] Finished email loop with error value: Error: DEPTH_ZERO_SELF_SIGNED_CERT

    According to this:
    https://github.com/nodemailer/nodemailer/issues/314

    I should be able to set

    tls: {rejectUnauthorized: false},

    somewhere in a config... but I'm new to nodebb and I'm at a loss as to where to look for such stuff outside the admin interface.

    Any pointers will be more than welcome!

    Cheers and congratulations for nodebb, great work.

    --
    NicoEchániz
    AlterMundi.net

    Hi, I can not setup my smtp email account in NodeBB instance. I checked email credentials in third party apps and it works fine. I suppose it is due to NodeMailer and I can not find place to turn it off tls : { rejectUnauthorized: false } as it said in stackoverflow article. My image is ghcr.io/nodebb/nodebb:latest

    62dc7918-6e24-4072-997d-252b30eb9d15-image.png

  • support@community.nodebb.orgS support@community.nodebb.org shared this topic