custom smtp test

Matti Klock matti at saffron.net
Mon Sep 12 22:13:24 CEST 2005


I'd like to test sending a message to a null address via SMTP. I tried
to do by adding the following test to bb-services and bb-hosts:

[send]
  send "ehlo\r\nmail from: <hobbit at foo.com>\r\nrcpt to:
<null at bar.com>\r\ndata\r\n.\r\nquit\r\n"
  expect "250 Accepted message"
  options banner
  port 25

Lo, a send column appeared. It's acting funny, though. The messages are
definitely getting sent, but the status stays yellow, and the only
output it captures is "220 bar.com ESMTP".

Is this a silly way to do such a test? Does Hobbit time out too rapidly
to see the rest of the output? I looked through the code for bbtest-net,
but I'm not good enough at select loops to figure out what it's doing.

Thanks,
Matti



More information about the Xymon mailing list