[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] smtp/smtps tests against postfix generate errors on server
- To: xymon (at) xymon.com
- Subject: Re: [xymon] smtp/smtps tests against postfix generate errors on server
- From: Shawn Heisey <hobbit (at) elyograg.org>
- Date: Sun, 21 Nov 2010 13:54:16 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=mail; t=1290372850; bh=Kn/juEoCrVToFMIkllDW3kK02PP3QrqN7lUr4RXTFno=; b=rD8mnkLFc9J/ 3UG0QhiM02nh+nlG1QnVA0PxT6kWDYHhT5U68yPc6TRAa8LyXhjv2r0DC2dMkwGh eQJO9hZIrvKhBmdZ5r+cO0YgKl0cSnaFsd00goXXQqP2hZ7EOLc18ed6b82ePtv5 QbTdTt4q+ZSb/5WBKMZ6kxVxwVM/kME=
- References: <4CE87674.3040300 (at) elyograg.org> <691bc900e5796dce9af57078d9ec32d9.squirrel (at) epperson.homelinux.net> <E3DD778AAB612749A8C610B39D1850DA142DC26F (at) msitmx02.fellowes-na.com>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
On 11/21/2010 8:36 AM, White, Bruce wrote:
You can change what Xymon sends during an smtp test by editing the
<install dir>/etc/bb-services file.
That helped me eliminate the error from the log. I put in this for smtp
with a similar setup for smtps, it seems to work:
[smtp]
send "mail\r\n"
expect "503"
send "quit\r\n"
expect "220"
options banner
port 25
This does not actually work completely as expected. After I looked at
what it was doing, I would have expected it to fail, because the last
thing the server says is "221 2.0.0 Bye". This doesn't seem to matter,
the 220 that it received as part of the initial banner was enough to
make the test succeed. If the test were working as I had expected, this
would be the correct configuration:
[smtp]
expect "220"
send "mail\r\n"
expect "503"
send "quit\r\n"
expect "221"
options banner
port 25
With either of the configs above, the "503" error from the mail command
is not shown in the results on the webpage.
Thanks,
Shawn