LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

ldirector and custom smtp regexes

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: ldirector and custom smtp regexes
From: Todd Lyons <tlyons@xxxxxxxxxx>
Date: Tue, 13 Jul 2004 10:41:04 -0700
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.
-- 
Regards...              Todd
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.       --Benjamin Franklin
Linux kernel 2.6.3-8mdkenterprise   2 users,  load average: 0.00, 0.00, 0.00
<Prev in Thread] Current Thread [Next in Thread>
  • ldirector and custom smtp regexes, Todd Lyons <=