-
@eddowding nodebb doesn't do inbound afaik. Incidentally, I was looking into making our recvmail addon work. Let me look into if it's easy to enable POP3 at a mailbox level.
-
@eddowding said in Discourse and incoming email:
Can this be done with Mailgun instead?
I've not tried it yet, but I think there is a new option when installing apps to not use Cloudron for mail at all and to just configure it all within the app itself. I guess that might work @staff ?
-
@jdaviescoates That feature is for used for configuring apps that send email. @eddowding wants a way for an app to receive email.
-
@eddowding yes, it will be part of update (if we implement it). Just to double check, this feature only makes sense if your domain's email is also hosted on Cloudron. Is that the case with your setup?
-
@girish said in Discourse and incoming email:
@jdaviescoates That feature is for used for configuring apps that send email. @eddowding wants a way for an app to receive email.
I realised @eddowding wants to receive email (and I think it's really quite bad that Discourse is a Stable App but doesn't have some of it's basic features packaged, nor any warning of those missing features. Indeed when installing that app it says "Use it as a: mailing list" which you can't do if it can't receive mail), I just figured Mailgun details or whatever could be entered somewhere into Discourse settings and that might work. I guess you're saying that wouldn't work but I don't think I really understand why that would be the case
-
@jdaviescoates It's debatable if mailing list is a basic feature for forum software (though it seems the description comes from https://github.com/discourse/discourse#readme and I am reluctant to remove it since this is what the upstream devs think )
That said, you can use it as a mailing list, just not if the email domain is hosted on Cloudron since we don't support POP3 yet. I also don't know why they only support POP3 when all other apps support IMAP (gitlab, freescout, espocrm for example). Anyone have any background on this?
-
@girish said in Discourse and incoming email:
I also don't know why they only support POP3
Yes, it does seem odd.
Although it sounds like it's not the only way:
Pushing emails via the Discourse API
Alternatively, you can push emails to Discourse via the API. For that, you will need
To check the manual_polling_enabled site setting. A master API key 138 or an API key associated to a staff member.
Then, to push an email to Discourse, you need to pass the raw email content as the “email” parameter when POSTing to “/admin/email/handle_mail”. The endpoint accepts application/json (recommended), multipart/form-data, or application/x-www-urlencoded request bodies (with an appropriate request Content-Type header, naturally).
You’re done
From the link @eddowding posted above
Edit: also, this thread should not be marked as solved, as this issue has not yet been solved.
-
-
I'd love to use the API but it's far from obvious if that's actually possible on Cloudron. @jenny_molloy's opening post suggests it's not.
https://meta.discourse.org/t/direct-delivery-incoming-email-for-self-hosted-sites/49487
-
POP3 is enabled in the next release. Though, I haven't tried if Discourse works well with that.
-
To give an update on this. Currently the package lacks the pre-setup of the pop3 configs, this is under way, however even then I wasn't able to make use of that feature properly, despite the app receiving the emails. May just be that I haven't fully grasped how it is supposed to work.
-
For a start I have published a new app package which does the pre-setup of the email receiving part.
Just to be clear, the transactional emails for discourse are using a different email address.
So far I haven't been able to configure it to actually accept any emails for forum threads, however it does process it now, so maybe I am just missing something small.
-
@jdaviescoates Me too!
-
Hello. I was thinking of setting up a Discourse forum especially because it can also be used as a mailing list – i.e. a reply by a user via email corresponds to a forum reply if I understood well. I don’t mind using a third party email account or the cloudron one.
But by reading this thread I can’t understand if the email integration for Discourse on Cloudron actually works. Is it only a specific or a general issue? I would be delighted if somebody could illuminate me about this. Thx! -
Hello again @jdaviescoates & @nebulon.
Thanks for all the efforts for making this work !I try to get my head around the functionality to reply by email and I think I'm missing something out there.
The POP3 settings are enabled in the Discourse instance. They correspond to the mailbox in the app's configuration panel (hosted on cloudron).
The mailinglist function works as far as it concerns sending an email to each user for each new topic creation. The second functionality would be to be able to reply to this topic by email. In order to do so, Discourse asks to activate the setting
reply by email enabled
in Settings/Email.The following is where problems occur :
This setting only works if areply by email address
is defined. I used the provided template from Discourse%{reply_key}@reply.example.com
with my domain. Each new topic corresponds to areply_key
which is the address a user has to send his answer to in order to comment on a topic.Sending an email reply to let's say
ui9cflk7c0obwgvouw0o@reply.example.com
doesn't work. The mail cannot be delivered :
550 5.0.350 Remote server returned an error -> 550 No such address
...and how could it with an non-existing email address.Is there any setting I'm missing in Discourse to get this work with a permanent email address ?
Update:
Following this thread, I added an alias to my cloudron mail address (and activated POP3). Besidesforum@example.com
I added the aliasreplies@example.com
. In Discourse I add this email in Settings/Emailpop3 polling username
.These settings break even the sending when new posts are made:
550 Authenticated user forum@example.com cannot send mail as replies+verp-9ab2aa4b4eae14ee9580a918df2cead7@example.com