SSL SMTP operation

% perl -MMIME::Base64 -e ‘print encode_base64(“\000base\@example.net\0001234abcd”)’
AGJhc2VAZXhhbXBsZS5uZXQAMTIzNGFiY2Q=

% telnet 1.2.3.4 25
220 smtp.example.net NO UCE ESMTP
ehlo testing
250-smtp.example.net NO UCE
250-STARTTLS
250-PIPELINING
250 8BITMIME
quit

% openssl s_client -starttls smtp -crlf -connect 1.2.3.4:25

220 a.mx.jms1.net NO UCE ESMTP
ehlo testing
250-a.mx.jms1.net NO UCE
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-PIPELINING
250 8BITMIME

AUTH PLAIN AGptczFAam1zMS5uZXQAbm90Lm15LnJlYWwucGFzc3dvcmQ=
235 ok, go ahead (#2.0.0)

mail from: <base@example.net>
250 ok
rcpt to: <base@example.net>
250 ok
data
354 go ahead
From: John <base@example.net>
To: Nobody <base@example.net>
Subject: Test from Uni-Fix

Base rules!
.
250 ok 1113954693 qp 29052
quit
221 a.mx.jms1.net NO UCE

Dette indlæg blev udgivet i Knowledge Base, Linux, Networking, Old Base. Bogmærk permalinket.

Skriv et svar