On Thu, Jul 06, 2006 at 08:52:56AM +0100, Brian Candler wrote:
> Courier inherits the qmail model of "lots of small bits which can be fitted
> together in new and interesting ways"; and "drive things by environment
> variables, so if you change an environment variable in one module, it can
> control the behaviour of another". This is one way of going for this
> flexibility.

Actually, imaplogin/imapd and pop3login/pop3d are still separate programs,
so I was thinking that you could install a policy checker between them: e.g.

    couriertcpd ... pop3login pop3policy pop3d ./Maildir

where pop3policy could look at the source IP address, username, OPTIONS,
whether TLS is enabled etc, to decide whether to accept or reject the login.

However, this won't work, because now pop3login has hardcoded that it is
followed by exactly two arguments, which are pop3d and Maildir:

        pop3d=argv[1];
        defaultmaildir=argv[2];
...
                                  execl(pop3d, pop3d,
                                      ainfo->maildir ?
                                      ainfo->maildir:defaultmaildir,
                                      NULL);

However this could be fixed easily, by pop3d picking up MAILDIR from the
environment instead. Then you could just exec with all the remaining
arguments untouched.

(This could be combined with another simple cleanup: set the default
MAILDIRPATH in authdaemon, and pass back an explicit MAILDIR= in every
authdaemon reply. Then if you want to change the default you would do it in
one place, not in three places as at present)

I think this is all worth doing, but some more thought is needed as to the
best way to do this for sqwebmaild.

Regards,

Brian.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to