Create a script similar to the following:I have a problem with the syslog entries put out by binimapd. The essence of the problem is that I need bincimapd to include the remote client IP address when it writes the syslog line recording that it has authenticated an IMAP "logon" request. The reason I need this is that I have a "pop before smtp" daemon that requires this information.
Is there any way to do this? Bincimap-up certainly has the remote IP data, but it doesn't seem to get passed to bincimapd. It would seem that the session object would have that, but when I modified the bincimapd.cc source to output session.getIP(), all I got was "?" in the syslog.
#! /bin/sh
logger "bincimapd $BINCIMAP_USERID authenticated from $TCPREMOTEIP"
exec $@
Add this script to the binc command chain between your checkpassword and bincimapd commands.
You may need to replace TCPREMOTEIP if you are not using tcpserver. Of course, you can change the message to whatever you like.
Henry :-)
I believe this tells binc where to find the remote IP address, which it then uses for its own purposes.There also seems to be a '-I' commandline variable that has something to do with remote IP addresses, but I'm pretty fuzzy on what that does.
If anyone has any insights to share on this subject I would be grateful for them.
Dave
-- Henry Baragar Instantiated Software Inc. http://www.instantiated.ca
