-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide option to auto-relay #106
Comments
Thanks @obrienmd I'd be interested in understanding your use case? Adding that option wouldn't be too difficult, but MailHog isn't designed to work as a real MTA and doesn't make any SMTP delivery guarantees - the existing implementation (being a manual thing) makes a delivery failure less important. |
Thanks for the feedback and question - makes perfect sense. In some cases as we move a change to a staging environment, we would love to have both the e-mail captured in MailHog (for immediate checks) and allowed through to a group of test end-users (for more delayed but wider feedback). MailDev has a pattern-match option for auto-relay, which would be ideal, but full-bore auto-relay would be perfectly fine (and probably much easier), as we can just manage the users in the staging environment. |
To further expand on this, it would be for large groups of users on a staging environment where manual relay via MailHog would be difficult. |
Thanks for the info! I'll add something 👍 not 100% sure what yet, but something! |
Cheers - honestly, just a boolean config / cli option for "autorelay" would be awesome :) |
For me, I'd just like a button that auto-releases. In other words, not for every message (although no reason not to do so), but instead of having to re-type (or copy/paste) the To: field, just have a button that ships the entire message to the defined SMTP server |
Hi All, MailDev has an auto-relay-mode with a json config file to deny or allow the recipient. Regards |
Yep - unfortunately, I'm unable to use the node runtime in this situation due to silly policies :) |
Hello, Such a feature would be indeed nice to have. Even better if it could be turned on/off based on some condition e.g. "auto release all emails for recipients not in domain "example.com". Regards, |
Hello, We have historically used mailcatcher in our dev and QA environments, but it's not sufficient to handle production pass through (without a feature such as auto-relay). The use cases are:
Helpdesk case #2: When a user calls in and says that they have not received their one time password that expires in 15min for 2FA because they are on some ISP that spam checks everything so delays mail delivery by that much, the helpdesk can review the email to them and provide the 2FA code. Helpdesk case #3: When a insured calls in and wants help viewing their inspection or other attached document to their account, the helpdesk can open up what was sent to them and walk them through the exact process. I understand this would also allow users to capture forgot password kinda emails. To prevent this kind of abuse, we currently lockdown access to mailcatcher (on dev and qa as stated above) with https on an internal network and unique named user proxy access only. The applications that we want to catch email from are not high on the risk level for a third party accessing (some risk from PII disclosure, but you can't do anything financial other than pay someone's policy premium, and we don't save financial creds, so a malicious user would have to pay with their own CC or ACH). The users on the HD who would have access to view these outbound emails in the pass through have WAY more access with their internal policy modification tools. Again, thanks for a great tool (demoing now to replace mailcatcher) and +1 to this use case. |
Also, I've tested maildev extensively(since as mentioned above, it does provide this) but I've not found it as stable as mailcatcher. |
So it sounds like there's two distinct use-cases here, with subtle differences:
The first one is a possibility - and is easy to add - since MailHog just forwards the raw data as-is to another server. The second one is unlikely to be supported, since it requires complex mail delivery rules and would be nearer a real MTA at that point. So I'm happy to add support for the first - though I'm not sure how soon I'll be able to get around to it. But I don't think the complexity etc of the 2 is really worth it, when 1 is an option. @chines that's impressively outside the scope of what MailHog was designed for, and I'd recommend against using MailHog in a production environment like that even if the auto-relay functionality was available |
Option 1 is the one I was describing, just forwarding the raw message along to another mail server. Thanks for the suggestion against using it in a production environment, and I hear that loud and clear. I'm going to test it for a few months and see if it's stable enough.... ;) The benefit would be pretty high and as long as I have a fairly simple recovery plan for failure scenarios, I think it would be workable. |
Option 1 would be fantastic with SMTP auth to the relay :) |
Option 1 is the kind of thing I need. @chines I think in your other situations you want an entirely different approach - I'd probably just configure your tool/existing MTA to BCC every email to a research box or something. |
+1 for option one. For my use case it would be enough to prefill the recipient field of release message modal dialog with the original recipient. Nonetheless another action to release to all original recipients (including CC and BCC) would cover far more use cases. |
+1 |
Is there any movement on this feature? If I knew any golang, I would offer to help as it's a really good feature to have. |
Can this feature also be extended to only allow or deny certain recipient email patterns? |
+1 needed feature |
It would be useful to have an option in MailHog config to auto-relay all messages.
The text was updated successfully, but these errors were encountered: