On Tue, Jul 13, 2004 at 10:41:04AM -0700, Todd Lyons wrote:
> I'm using ldirectord to monitor several services (80, 25, 110, and 143).
> These services are load balanced all from the same director using
> LVS-DR. This is all working properly.
>
> In my sendmail logs, I'm getting this:
> Jul 13 10:11:23 smtp1 sm-mta[24653]: i6DHBNXo024653: admin.domain.com
> [10.100.100.150] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
> Jul 13 10:11:28 smtp1 sm-mta[24656]: i6DHBShO024656: admin.domain.com
> [10.100.100.150] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
> Jul 13 10:11:33 smtp1 sm-mta[24659]: i6DHBXRd024659: admin.domain.com
> [10.100.100.150] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
>
> Of course since I'm hitting it every 5 seconds, this will be a lot of
> clutter in my logs.
>
> I want to script the connection, such as:
> send: expn root
> expect: .*rootuser@xxxxxxxxxxxxxxxxxxx*
> send: quit
>
> I added this to the config file:
> virtual = smtp.ivenue.com:smtp
> real = smtp1.internaldomain.net->smtp2.internaldomain.net:smtp gate 10
> checktype = negotiate
> scheduler = wrr
> request = "expn root"
> receive = "rootuser@xxxxxxxxxxxxxxxxxx"
>
> I restarted ldirectord and 'tcpdump -n -p -X port 25' shows that it's
> still only connecting, doing a 'ehlo localhost.localdomain' and then
> 'quit'. How come it is not doing my specified commands? I'm probably
> misunderstanding the man pages.
Not at all.
I just checked the code and the smtp check does not actually do
anything behond connecting and sending ehlo. In a nutshell it ignores
the request and receive lines all together. Clearly there is room
for improvement here. However it is not imediately clear what
should be permitted in a request. Do you have some thoughts on this?
--
Horms
|