Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
SMTP ==> HTTP REST JSON API
Stand-alone server for receiving email via SMTP and providing access to it via an HTTP REST JSON API. Useful for automated testing that requires receiving email and doing stuff with it. I wanted to be able to test things like the "forgot password" flow, or "email confirmation", from automated tests.
Currently has no persistence or notification. It just receives mail, serves up
a mailbox as a JSON array, and lets you clear a mailbox with DELETE
. That's
it.
Prototype. Not ready for production use, but could be used for basic testing purposes.
npm install -g maileron
sudo maileron
The sudo
is required to listen to ports 25 and 80 for SMTP and HTTP,
respectively. Without sudo, maileron will run on ports 9025 and 9080, which means it
would only work with specially-configured mail clients.
Now, point your MX record for a domain (in my case, pat.agnoster.net
) to the
server running maileron (which for me is also pat.agnoster.net
).
Send an email to example@pat.agnoster.net
, for instance:
MAIL example@pat.agnoster.net
Subject: Hello World
How are you?
Then hit the webserver (in this example, pat.agnoster.net
) and check it out
(some values elided for clarity):
GET /inbox/example
200 OK
Content-type: application/json
[
{
"text": "How are you?",
"headers": { ... },
"subject": "Hello World",
"from": [
{
"address": "i@agnoster.net",
"name": "Isaac Wolkerstorfer"
}
],
"to": "example",
"envelope": {
"from": "agnoster@gmail.com",
"to": ["example@pat.agnoster.net"],
"date": "2012-08-23T17:50:20.013Z"
}
},
...
]
That's really all there is to it. You can DELETE
a mailbox to clear it.
GET test.example.com/inbox/example.user.1/?limit=1&timeout=60
Wait for the next mail to come into this mailbox. This means you can easily do
a DELETE
, perform an action that should trigger an email, then issue a GET ?limit&timeout
to wait for the email to show up.
FAQs
Server that receives SMTP and serves mail up as JSON via HTTP
The npm package maileron receives a total of 1 weekly downloads. As such, maileron popularity was classified as not popular.
We found that maileron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.