Incoming Email
-
@nebulon said in Loomio - Package Updates:
We've included the new "email to group" feature. This means as a member of a group, you can send or forward an email to your group email address and it will become a new thread in the group.
I'm trying to get incoming email to work. Right now, the log isn't showing any mailin errors but no inbound email functionality seems to be working.
I've added a and mx records to my DNS
A loomio.domain.com, cloudron_IP MX loomio.domain.com, loomio.domain.com, priority 0
I've also configured the reply-to hostname in env.sh
# reply-to in email notifications export REPLY_HOSTNAME=loomio.domain.com
And for good measure even changed the app's MAIL FROM address to originate from my desired subdomain (loomio.domain.com) so that we're not presenting multiple email hosts to end users.
What else might I need to do to get inbound email working?
-
@darren is there any docs around this ? There is no information in https://help.loomio.com/ (I searched for imap/incoming (e)mail/REPLY_HOSTNAME)
-
There is no IMAP related code that I can spot either - https://github.com/search?q=repo%3Aloomio%2Floomio+IMAP&type=code
-
@darren thanks.
mailin
seems quite outdated (7 years ago). Looks like they tried to replace it upstream as well - https://github.com/loomio/loomio-deploy/issues/99 . -
OK, https://github.com/loomio/mailin-docker/blob/master/Dockerfile is the Dockerfile. mailin listens on port 25 and calls a webhook. Listening on port 25 won't work on Cloudron, so that solution is unviable. We have to write a standalone script that scans IMAP mailbox and calls the wekhook. mailin code that calls the webhook is at https://github.com/loomio/mailin/blob/master/lib/mailin.js .
-
@girish said in Incoming Email:
OK, https://github.com/loomio/mailin-docker/blob/master/Dockerfile is the Dockerfile. mailin listens on port 25 and calls a webhook. Listening on port 25 won't work on Cloudron, so that solution is unviable. We have to write a standalone script that scans IMAP mailbox and calls the wekhook. mailin code that calls the webhook is at https://github.com/loomio/mailin/blob/master/lib/mailin.js .
Did you ever get around to doing this?
I just installed Loomio and immediately tried to start a thread by email and was sad that it didn't Just Work as I've become accustomed to expect on Cloudron
-
@jdaviescoates don't think so , no. Unless there is simpler setup, this is really hard to automate in Cloudron.
-
@girish said in Incoming Email:
@darren thanks.
mailin
seems quite outdated (7 years ago). Looks like they tried to replace it upstream as well - https://github.com/loomio/loomio-deploy/issues/99 .Looks like they did it already in Oct '24
https://github.com/loomio/haraka-rails-dockerThis should work
-
@robi said in Incoming Email:
@girish said in Incoming Email:
@darren thanks. mailin seems quite outdated (7 years ago). Looks like they tried to replace it upstream as well - https://github.com/loomio/loomio-deploy/issues/99 .
Looks like they did it already in Oct '24
https://github.com/loomio/haraka-rails-dockerThis should work