I have this defined in bb-services:
[smtp-transaction]
send "helo hobbit.domain.com\r\nmail from: <user-a3d973489fd1@xymon.invalid>\r\nrcpt to: <user-f1d73117a4d8@xymon.invalid>\r\nquit\r\n"
expect "220-mx01.domain.com ESMTP\r\n220 ESMTP READY\r\n250 mx01.domain.com\r\n250 sender <user-a3d973489fd1@xymon.invalid> ok\r\n"
port 25
and a host that uses it in bb-hosts. This works great, except that it's tied to the host mx01.domain.com in the expect string.
Is it possible to use regexes in the expect string, such as expect "220-mx0[0|1].domain.com"? So far my attempts have been unsuccessful and the man pages don't seem to indicate if this is possible.
Aaron Zink
Manager, Corporate IT
eHarmony.com
XXX.XXX.XXXX