Forum Discussion
dsirrine_23403
Feb 07, 2011Nimbostratus
Custom monitor for SMTP servers
I have dug through some of the forums and have yet to find the solution I'm looking for. I have a set of load balanced SMTP servers in my LTM with version 9.3.1 software installed. I have the SMTP h...
dsirrine_23403
Mar 09, 2011Nimbostratus
I got it to work. I didn't need the initial "send telnet" as the scripted monitor does that to begin with. Unfortunately, I can't use pop/imap/etc as this is to test an exim gateway and can't necessarily "retrieve" the e-mail from the impacted system. doing an "ehlo" on localhost rounds it out nicely. Here's what I ended with:
expect 220
send "HELO localhost\r\n"
expect "250"
send "MAIL FROM: @localhost\r\n"
expect "250"
send "RCPT TO: @localhost\r\n"
expect "250"
send "DATA\r\n"
expect "354"
send "SUBJECT:F5 LTM SMTP Health Check\r\n"
send "\r\n"
send "This e-mail is generated by the SMTP health check by the F5 LTM.\r\n"
send ".\r\n"
expect "250"
send "quit\r\n"
expect "221"
where
= a local account that the mailbox has been redirected to /dev/null. If /var is full, I get an error of not being able to write to spooler, otherwise, I get a 250 OK.Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects