[KLUG Members] unix domain sockets

Peter Buxton members@kalamazoolinux.org
Thu, 17 Oct 2002 23:41:48 -0400


On Wed, Oct 16, 2002 at 04:50:07PM -0400, Peter Buxton wrote:

> Rather than deliver the message so: Exim -> cyrdeliver -> lmtpd, I
> want LMTP-speaking Exim -> lmtpd. Unfortunately, because Exim expects
> to run LMTP through a command, rather than a socket file, I either
> need to 'fix' Exim in a recompile or have a small helper app, i.e.
> ipcconnect, for Exim to call and speak to the local socket. FWIW,
> Exim's ipcconnect session hung midway... I think the quit signals are
> getting lost in the shuffle :-(

Well, I authorized lmtpd to run on localhost:30000, and used the more
stable socket(1) program to connect to it. It worked great. Apparently,
ucspi-ipc needs a bit o' tweakin to compile correctly on modern Linux. I
didn't have any problems from the command line, but Exim would deliver
the message in LMTP, pass the QUIT command, and then ipcconnect-io would
freeze, and I do mean kill -9 freeze. (Exim would thereupon declare the
message successfully delivered, which, to lmtpd, it was.)


-rwsr-sr--    1 cyrus    mail       105832 Oct  6 13:59 /usr/sbin/cyrdeliver
-rwxr-xr-x    1 root     root        10716 Jun 11  2001 /usr/bin/socket


Hmm. A bit more efficient, I think. :-)

-- 
http://www.killdevil.org/~peter
Rock's gain of an eccentric, idiosyncratic musician
[R.Fripp] is industry's loss of a great economist.