The discussion revolves around resolving a 301 error when attempting to POST emails in Discourse. TomWFox initially encounters this issue while setting up reply by email and shares the error log. itsbhanusharma identifies the problem as the mail receiver link using HTTP instead of HTTPS. TomWFox confirms that updating the link to HTTPS resolves the issue and suggests updating the mail receiver template to reflect this.
However, matenauta faces the same issue despite updating the link to HTTPS. itsbhanusharma reiterates that the link should be updated to HTTPS in the mail-receiver.yml file. matenauta eventually resolves the issue by rebuilding the mail-receiver container after updating the link. itsbhanusharma clarifies that rebuilding the relevant container is necessary when making changes to the YAML file.
I’m having an issue setting up reply by email after following this guide. I’ve followed the troubleshooting suggestions and found that the email are stuck in the queue and there are errors in the mail receiver logs…
Failed to POST the e-mail to http://community.parseplatform.org/admin/email/handle_mail: 301
Apologies if this is a duplicate but I couldn’t find a topic with the same issue.
Thanks, simple fix indeed! Perhaps the mail receiver template should be updated - everyone is running discourse with https, right?
It didn’t occur to me that this was a standard HTTP response code
Although off topic, I must say that Discourse is a wonderful piece of software, I’ve had a few issues getting setup, but given its underlying complexity and my lack of experience with this it has been remarkably easy!
Maybe I need to enable SSL options in e-mail template? My discourse it’s behind a global nginx instance (I see port 25 exposed in mail-reciever.template).