John1 writes:

i.e. All I really want to be able to do is add a client ip address field to the postfix_users MySQL table that if completed will only allow that user id/password to connect from the stated client ip address.

The authentication library has no knowledge of the client's IP address. authdaemond runs as a separate process, and receives only the login ID and the password, for validation purposes.

I am sure I can't be the first person with this requirement but I have

Yes, you're probably the third or the fourth, over the last ~4 years. This is a somewhat rare, and specialized, requirement.

searched everywhere for a possible implementation and can't find anything so will be really grateful if anyone out there can tell me how. Thanks

The only way to do this right now is to have a wrapper for the imapd and the pop3d process that checks the environment variables, before invoking imapd. By this time, the userid and the password has been validated, but the response has not been sent, so the wrapper can check the IP address, and abort if necessary.


Attachment: pgpazkvlr89sO.pgp
Description: PGP signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to