TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Unverified.email

237 pointsby vitplisterabout 5 years ago

15 comments

afracaabout 5 years ago
&gt; we can create a mailbox via HTTP GET request to <a href="https:&#x2F;&#x2F;api.unverified.email&#x2F;create" rel="nofollow">https:&#x2F;&#x2F;api.unverified.email&#x2F;create</a><p>Shouldn&#x27;t GETs be idempotent? (Sorry for not having feedback on the idea, skimming it it seems nice, though there is fierce competition as others have shown here)
评论 #22810664 未加载
评论 #22812186 未加载
评论 #22811597 未加载
评论 #22810908 未加载
dylzabout 5 years ago
What kind of anti-abuse mechanisms do you have in play?<p>As soon as the API is figured out, it&#x27;ll be used for mass spam signups. I&#x27;ve done one of these before, and pretty much if you allow any form of being able to retrieve a code or URL or number from the body&#x2F;subject, it&#x27;ll be used for millions of spam signups.
评论 #22811394 未加载
评论 #22810429 未加载
评论 #22809770 未加载
评论 #22810164 未加载
评论 #22810406 未加载
评论 #22810471 未加载
umaarabout 5 years ago
Nice work. I investigated a few similar services, mailtrap, mailgun, mailosaur. I wanted to try having my end-to-end tests assert that the email which got sent out actually included the correct info. (As in, you request a password reset to test@emailtesting.tld, and then you make API calls to assert the email exists and includes the correct text)<p>It works well for peace of mind as it gave me a high degree of confidence that I&#x27;m testing almost exactly what the end-user would experience. However, it does add 5-10 seconds of delay to your tests while polling the email inbox, it can be a little expensive depending on your test frequency, I think there are even some cases where you can hurt your email deliverability stats during automated email sending.<p>In the end, I decided to keep this test manual which I run every now and then only after making big changes. Instead integration tests which mock the email service are probably enough for my use case.<p>Curious how do others test the end-to-end behaviour of their web application, when it comes to emailing?
评论 #22812779 未加载
评论 #22811956 未加载
stephenrabout 5 years ago
Having more open source software is always good, so congrats on putting something out there.<p>I&#x27;m very curious why this takes the approach it appears to take: running two docker containers with opensmtpd in one of them, and then scanning the maildir for message content; compared to what the numerous existing solutions (mailcatcher, mailtrap, mailhog, maildump) all do: run an in-process SMTP server.
评论 #22810843 未加载
tzsabout 5 years ago
I use a simple local catch-all SMTP server for testing. I install it on my test machine listening on some non-SMTP port (default is 2000), and then use iptables to make all connection attempts to port 25 end up at the catch-all server.<p>Here&#x27;s the iptable command: &quot;iptables -t nat -A OUTPUT -p tcp --dport 25 -j REDIRECT --to-port 2000&quot;<p>The catch-all server is ridiculously simple. It just responds with a &quot;220 hello&quot; when connected to, and then just reads input line by line, logging all input to a file. It only knows about two SMTP commands: DATA and QUIT.<p>On QUIT it sends &quot;221 bye&quot; and closes the connection.<p>On DATA it sends &quot;354 send the message&quot; and then just reads the data and logs it to the file.<p>Anything else? It just sends &quot;250 OK&quot;.<p>Note that this is pretty useless if what you are trying to test is a mail client, because you cannot test error cases. The purpose of this SMTP catch-all is for testing the content of messages your software sends, not for testing the process of mailing itself.<p>Each connection is logged to a separate file.<p>The source is a single Java file. Here it is if anyone wants it [1]. &quot;javac SmtpSink.java&quot; to compile. &quot;java SmtpSink&quot; to run. Messages are stored in the &quot;msgs&quot; directory, which you should make before running it.<p>[1] <a href="https:&#x2F;&#x2F;pastebin.com&#x2F;WqkS7jNH" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;WqkS7jNH</a>
DeathArrowabout 5 years ago
I&#x27;d like to see an analogous service for SMS: I. e. provide a new phone number.
评论 #22810719 未加载
评论 #22812366 未加载
dbfaabout 5 years ago
Shameless plug: I&#x27;ve made a similar service with both an API and a web interface at: <a href="https:&#x2F;&#x2F;mailspons.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mailspons.com&#x2F;</a>
jlgaddisabout 5 years ago
If, by chance,the author happens to see the comments here... you may consider choosing an alternate (high-numbered &#x2F; &quot;unprivileged&quot;) port -- say, 2525? -- and redirecting connections to that port to 25&#x2F;TCP on the same host.<p>This can be easily accomplished with a single iptables &#x2F; nftables &#x2F; pf &#x2F; etc. rule.<p>(A non-insignificant number of ISPs, CSPs, etc., block outbound connections to 25&#x2F;TCP by default -- except, in some cases, those going to to their own mail servers or &quot;smarthosts&quot;.)
评论 #22810464 未加载
评论 #22814208 未加载
vince14about 5 years ago
There&#x27;s also <a href="https:&#x2F;&#x2F;ethereal.email&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ethereal.email&#x2F;</a> which has a Web GUI.
PersonalOpsabout 5 years ago
See also Mailslurper [0] and Mailcatcher [1] if you&#x27;d like to self-host an email catch-all service.<p>Mailslurper appears to be abandoned and seems to be missing deterministic builds that go module support provides.<p>Mailcatcher has been around for a while, with my first discovering it being used in a legacy project&#x27;s test suite back in 2014.<p>Both could use some better SEO since it&#x27;s nearly impossible to find unless you know exactly the right keywords to use.<p>[0]: <a href="http:&#x2F;&#x2F;mailslurper.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;mailslurper.com&#x2F;</a> [1]: <a href="https:&#x2F;&#x2F;mailcatcher.me&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mailcatcher.me&#x2F;</a>
rosstexabout 5 years ago
&gt;The mailbox_id from the above setup should be included somewhere in the text of the email, the subject, the bcc address, the headers, or any other field (even email address of the sender or recipient will do).<p>Sorry... how does it know what mailbox id to look for?
评论 #22809900 未加载
评论 #22809929 未加载
kccqzyabout 5 years ago
Mailinator is a much more well-known service. It has both a web interface and an API.
评论 #22813374 未加载
jeffrallenabout 5 years ago
If your testing system depends on a remote server, it&#x27;s not testing just your code anymore. Tests must be as isolated from other changes as possible or else they do not tell you anything.
franky47about 5 years ago
Mailtrap, which is listed as an alternative Ruby library, is also available as a service: <a href="https:&#x2F;&#x2F;mailtrap.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mailtrap.io&#x2F;</a>
7ewisabout 5 years ago
Could the JSON return info like SPF&#x2F;DKIM too passes too?