Tag Archives: e-mail

Test Mail Submission

Encode username and password

The snippet below shows how to send an e-mail from command to debug submission errors.

1
2
perl -e 'use MIME::Base64; print encode_base64(q"user");'
perl -e 'use MIME::Base64; print encode_base64(q"password");'

Connect and submit mail

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
openssl s_client -debug -starttls smtp -crlf -connect mail.ulm.org:587
ehlo dominik
auth login <user_mime_base64>
<password_mime_base64>
235 2.7.0 Authentication successful
mail from: <moritz@example.com>
250 2.1.0 Ok
rcpt to:  <max@example.net>
250 2.1.5 Ok
data
From: Moritz <moritz@example.com>
To: Max Muster <max@example.net>
Subject: Test
 
test
 
.