check_smtp and authentication

Alex Domoradov <[email protected]>
Newsgroups gmane.network.nagios.plugins
Message-ID <CAK90gp4g_segmognLSPEiPwCBpOcQZyy5vdmVtkD1q7eytUGSQ__26577.7257657193$1392667454$gmane$org@mail.gmail.com>
Hello all,

Is anyone could give a work example of the check_smtp plugin? I just
want to send mail via out smtp relay with authentication.

I have tried the following example

# ./check_smtp -H mail.example.net -A LOGIN -U [email protected] -P
1234567 --starttls -v --fqdn=www.example.net -C "mail
from:<[email protected]>" -C "rcpt to:<[email protected]>" -C "DATA" -C
"Hello world" -C "." -C "quit"
HELOCMD: EHLO www.example.net
220 mail.psd2html.com ESMTP
sent EHLO www.example.net
250-mail.example.net
250-PIPELINING
250-SIZE 20971520
250-ETRN
250-AUTH LOGIN CRAM-MD5 PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
sent AUTH LOGIN
received 334 VXNlcm5hbWU6

sent YWtbC5jb20RvbW9yYWRvdkBwc2QyaHR=

received 334 UGFdvcmQ6zc3

sent TUxg5cXVQbTcDg==

received 235 2.7.0 Authentication successful

sent QUIT
received 221 2.0.0 Bye

SMTP OK - 1.693 sec. response time, 221 2.0.0 Bye
|time=1.692533s;;;0.000000

But at the same time in mail lof I get the following lines

Feb 17 19:33:13 mail postfix/smtpd[14943]: connect from
www.example.net[xxx.xxx.xxx.xxx]
Feb 17 19:33:14 mail postfix/smtpd[14943]: Anonymous TLS connection
established from www.example.net[xxx.xxx.xxx.xxx]: TLSv1.2 with cipher
ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Feb 17 19:33:15 mail postfix/smtpd[14943]: disconnect from
www.example.net[xxx.xxx.xxx.xxx]


How can I send some data?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.