Live data from Hacker News

Show HN: A fake SMTP server for software integration testing

fakemail.stream

41–50 of 51 posts

Re: Show HN: A fake SMTP server for software integration testing

#41
post #4

I prefer self-hosting MailHog: https://github.com/mailhog/MailHog

I do the same with mailcatcher but by self-host I mean I would throw it in the projects docker compose file for local development and spin it up specifically for that project and take it down when not needed.

Re: Show HN: A fake SMTP server for software integration testing

#42
post #32
post #29

I don't want to burst bubbles, but postfix with few lines of config can redirect all email to DEVs. You really want, whenever possible, to test everything using real tools. Doubly so, using tools you'll use it PROD. However, at least postfix is de-facto standard. apt-get install postfix, postfix-pcre bsd-mailx, config and done. Here's an example redirecting ALL outgoing emails, UNLESS they are to your OK domains. Red…

It's always fascinating to me when people say "not to burst your bubble but it's really simple to use this other tool which can already do the task", and then write an essay about all the workarounds they had to apply to make the other tool work

And it only covers one scenario.

Re: Show HN: A fake SMTP server for software integration testing

#43
since folks are sharing tools they use to test, I have one to validate if your email sender can send internationalized emails

pünicode.com. Any local part will create a temp cache that you can check to see if your email system can deliver to international local and/or domain parts. EG, send an email to josé@pünicode.com and see it show up at pünicode.com/emails/josé.

Re: Show HN: A fake SMTP server for software integration testing

#46

Really cool. I couldn't find it documented anywhere, but if you save the unique (guid) url generated, how long is that available for? "Forever"?

Yes, currently these are never deleted.

I will probably update it to delete accounts that have been inactive for a year or something.

Re: Show HN: A fake SMTP server for software integration testing

#47
Wow, this and all the various other options mentioned look very useful. Like others, I have hacked together configurations to do this in the past and would have loved to have these instead.

I had no idea on the availability of all the various options, which leads to the question: Where would one find examples of similar network test servers for other protocols/functions?

For example:

- A SAML IdP - Define accounts and complete a login, allow debug of request/response.

- A DNS Server - Define local domains and records, control whether Internet domains are resolvable or just local ‘corporate’ records.

- Syslog Server - Catch logs and make them temporarily available. (usually syslogd works for this, but maybe test harnesses have advantages).

- SNMP - Trap destination to capture/show alerts

Re: Show HN: A fake SMTP server for software integration testing

#48

I have a rule that any time someone ships a server, they're required to also ship a version that supports client testing purposes. Of course nobody has ever observed my rule. Doesn't make it a bad rule...

In what language though?

Re: Show HN: A fake SMTP server for software integration testing

#49

I have a rule that any time someone ships a server, they're required to also ship a version that supports client testing purposes. Of course nobody has ever observed my rule. Doesn't make it a bad rule...

I wouldn't say it's a 'bad' rule - just ineffective.

Re: Show HN: A fake SMTP server for software integration testing

#50
post #7

I have used tools like these for nearly a decade and find them invaluable. My current favourite is Mailpit [1]. The “OG” I would consider Mailcatcher [2] from my Rails days [1] https://github.com/axllent/mailpit [2] https://mailcatcher.me/

Add https://msgdrop.io to that list :)

An API driven approach like Msgdrop is more flexible, as many apps can’t configure a fake SMTP server, especially if you use tools like Mailgun or SendGrid.

Post reply on HN