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 u...@example.net -P 1234567 --starttls -v --fqdn=www.example.net -C "mail from:<u...@example.net>" -C "rcpt to:<u...@gmail.com>" -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?