Email Gateway Provider credentials / connection test

Here I am using sparkpostmail.com

openssl s_client -starttls smtp -crlf -connect smtp.sparkpostmail.com:587

Type

auth login

Enter the baes64 encoded username that you get as follows:

echo -n "SMTP_Injection" | openssl base64

Do the same for the password.

Full conversation:

250 PIPELINING
auth login
334 VXNlcm5hbWU6
U01UUF9JbmplY3Rpb24=
334 UGFzc3dvcmQ6
ZTU1......MQ==
235 2.0.0 Authed. Go on.

auth plain:

echo -ne "\0User Name\123123123" | base64

Hint: Use swaks for testing and full smtp logging output:

brew install swaks
swaks -server smtp.sparkpostmail.com:587 -tls --auth-user SMTP_Injection --auth-password 123123123 --to mario@what.digital --from mario@what.digital --auth PLAIN