check_smtp Bug / How to send DATA by Commands?

Daniel Fischer Daniel.Fischer at seele.com
Wed Nov 2 17:20:58 CET 2022


Hello,

we want to use check_smtp to check an email delivery for an internal
SMTP server. Several commands and responses were specified for this.
Unfortunately, a timeout occurs. After checking the source code (Git), a
response is obviously expected for each command. When transferring DATA
with several lines (required), the timeout occurs due to missing
response till closing the data transfer with ".".

Can this be fixed/worked around? Is there an alternative approach that
could work around the problem?

Commands
HELO seele.com
MAIL FROM:<check at seele.com>
RCPT TO:<james at seele.com>
DATA
Subject: Testmail Jame
From: <check at seele.com>
To: <james at seele.com>
Inhalt
.

Responses
250
250
250
354
null
null
null
null
250

(null is not posible)

Screenshot


Command
check_mk_active-smtp!'-e' '220' '-p' 25 '-4' '-C' 'HELO seele.com' '-C'
'MAIL FROM:<check at seele.com>' '-C' 'RCPT TO:<james at seele.com>' '-C'
'DATA' '-C' 'Subject: Testmail James' '-C' 'From: <check at seele.com>'
'-C' 'To: <james at seele.com>' '-C' 'Inhalt' '-C' '.' '-R' '250' '-R'
'250' '-R' '250' '-R' '354' '-R' 'null' '-R' 'null' '-R' 'null' '-R'
'null' '-R' '250' '-H' '$_HOSTADDRESS_4$'

Can you please help us with this issue?

Best Regards




i.A. Daniel Fischer
Teamleiter Softwareentwicklung 



Telefon:+49 821 2494 - 174
( tel:+498212494174) 
Fax:+49 821 2494 - 930
( tel:+498212494930) 

daniel.fischer at seele.com
www.seele.com


seele GmbH, Gutenbergstraße 19, 86368 Gersthofen, Deutschland

 
 
( https://www.linkedin.com/company/seelegroup/)   
( https://www.youtube.com/c/seelegroup)   
( https://www.facebook.com/seele.group)   
( https://twitter.com/seelegroup)   
( https://www.instagram.com/seele_group/)  
 
Registered in HRB Augsburg No. 25584 Jurisdiction Augsburg
Managing Director: Andreas Hafner 
Certified on DIN EN ISO 9001, DIN EN ISO 14001 and DIN EN ISO 50001
Datenschutzinformation
( https://seele.com/de/datenschutzinformation/)  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20221102/51073393/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GW_00001.png
Type: image/png
Size: 15260 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20221102/51073393/attachment-0001.png>


More information about the Devel mailing list