Closed tpitale closed 5 years ago
Possible to use the Mailgun ingress? https://edgeguides.rubyonrails.org/action_mailbox_basics.html#mailgun
Check out ingress here: https://github.com/rails/rails/tree/master/actionmailbox. Appears to be any valid rfc822 message if we use the relay controller. Auth for relay (exim/qmail/postfix) is basic auth with username actionmailbox
and password configured as per docs.
From rails docs, we only have to do the first 2 steps:
# 1. Tell Action Mailbox to accept emails from an SMTP relay:
#
# # config/environments/production.rb
# config.action_mailbox.ingress = :relay
#
# 2. Generate a strong password that Action Mailbox can use to authenticate requests to the ingress.
#
# Use <tt>rails credentials:edit</tt> to add the password to your application's encrypted credentials under
# +action_mailbox.ingress_password+, where Action Mailbox will automatically find it:
#
# action_mailbox:
# ingress_password: ...
#
# Alternatively, provide the password in the +RAILS_INBOUND_EMAIL_PASSWORD+ environment variable.
I was following this issue to see if we could use it with ActionMailbox for IMAP accounts.
I hope it ends up being implemented. Untill then there is https://github.com/kimmelsg/actionmailbox-imap which works with IMAP and ActionMailbox.
@eknowlton This should be doable, I just haven't had a need. PRs welcome! 😄
Previously was looking at https://robots.thoughtbot.com/griddler-is-better-than-ever
https://edgeguides.rubyonrails.org/action_mailbox_basics.html#sendgrid (for example)
https://example.com/rails/action_mailbox/{{service}}/inbound_emails
mail_room
as an ingress configuration