Skip to content

Instantly share code, notes, and snippets.

View RafaelKr's full-sized avatar

Rafael Kraut RafaelKr

View GitHub Profile
@RafaelKr
RafaelKr / _USAGE.md
Last active May 25, 2021 19:55
Can quickly test email submission via SMTP encrypted with STARTTLS. Tested with gmx.net, probably works with some other providers.

Description

Script to quickly test email submission via SMTP encrypted with STARTTLS.

The SMTP server (Host), sender (From) and receiver (To) are specified as command line arguments, the password is requested after running the script.
The script then runs the openssl program and sends the commands required to send an email.

Note: Only works with STARTTLS (default port 587), not SSL (default port 465). Tested with gmx.net, probably works with some other providers, too.

Install

{
"request": [],
"sendHeader": [],
"receiveHeader": [
{
"enable": true,
"name": "Fira Code",
"ruleType": "modifyReceiveHeader",
"matchType": "regexp",
"pattern": "^http[s]*:\\/\\/(?:[^/\\.]+\\.)*(?:github\\.com|gitlab\\.com)\\/",