I’ve been running the excellent mail-receiver container since it was launched.
Recently, I’ve noticed that inbound emails are no longer being received. The error is:
<22>Jan 16 08:05:18 postfix/qmgr: D5E7AE22F1: from=<firstname.lastname@example.org>, size=8238, nrcpt=1 (queue active)
<23>Jan 16 08:05:18 receive-mail: Recipient: email@example.com
<19>Jan 16 08:05:18 receive-mail: Failed to POST the e-mail to https://discourse.camra.org.uk/admin/email/handle_mail: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
<19>Jan 16 08:05:18 receive-mail: /usr/local/lib/ruby/2.3.0/net/protocol.rb:44:in `connect_nonblock'
<22>Jan 16 08:05:18 postfix/pipe: D5E7AE22F1: to=<firstname.lastname@example.org>, relay=discourse, delay=1072, delays=1072/0.01/0/0.14, dsn=4.3.0, status=deferred (temporary failure)
The sites certificate is valid, so what’s going on?
Help required, please!
Is this any use?
I’m not sure how long your incoming mail has been off for, but maybe a rebuild of the mail-receiver could help either way?
That’s the ticket. Apologies, my search skills are clearly not up to scratch this morning.
I too missed that a rebuild was necessary. Would’ve been nice if anything in the admin panel had indicated it (other than the lack of received emails). Oh well.
Where would this indication come from, I wonder, since email is a totally different service? I think the rebuild has to be in the notes for the email setup and config.
Just brainstorming (cause I have no idea how any of the code works):
The container communicates via webhooks, so it should be possible to send things other than emails in through other webhooks.
Could it send all errors into the main forum error log? Or filter them to Ruby errors?
If it can’t send emails for 3 days/a week, could it engage some webhook, which then sends an admin message?
Except in this case of a certificate error, would webhooks not work either? Can it send webhooks over localhost (or a local IP) instead of going out to the internet and back again?
Perhaps when you set up the mail receiver it should request an email address for a failure message to be sent to?
But this all adds complexity for something unlikely to happen, and for unanticipated things like a certificate change.
I bet many people are in the same boat. Late last year I spotted Self-hosted mail-receiver update following Let's Encrypt root certificate change but wrongly thought I’d rebuilt the mail-receiver container since that date. It was only this topic that prompted me to check.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.