Tom Brown writes:

Unfortunately, I don't see a way to get the TCPLOCALHOST environment
variable that couriertcpd sets? Is there a way to undo the authlib
daemon separation and tell courier-imap to do the authentication directly?

Nope, courier-imap is completely separated from all authentication logic.

Otherwise, my only option appears to be to go in and patch the
courier-imap source to force our "named" syntax by appending
"\@$ENV{TCPLOCALHOST"  (perl syntax) to the raw userid where
there is no @ in the userid

This is a bit of a show stopper, as we still have quite a number
of old IP based accounts where we need to use TCPLOCALHOST to
figure out which domain clients are trying to log into.

Thoughts? Help?

Pass the -access and the -accesslocal parameter to couriertcpd, and set up an access file that sets the DEFDOMAIN environment variable based on the local IP address.

See the comments for DEFDOMAIN in imapd.dist.in. See couriertcpd's man page.

This is not really set up for IMAP, but for SMTP, but you can take the makesmtpaccess, copy it, and rejigger it for IMAP.

Attachment: pgptW0iRnYnJQ.pgp
Description: PGP signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to