* on the Wed, Aug 23, 2006 at 12:35:53AM +0100, Mike Cardwell wrote:

>> You can get something akin to $(server_port) by using AUTHSERVICE* strings
>> in your imapd config file (though I don't have a clue if this was offered in
>> 3.x). You'd have something like this in "imapd":
>> AUTHSERVICE14301=arbitrarystring1 (or perhaps just =14301)
>> AUTHSERVICE14302=arbitrarystring2
>> AUTHSERVICE14303=arbitrarystring3
>> etc
> Perfect! I was looking into sticking perdition in front of courier to
> handle this, but now I don't have to. Thank you for taking the time
> to respond Mark. I have already upgraded to v4 so the features should
> be available to me. I'll look into it at work tomorrow.

Works like a charm. Added the following to authmysqlrc:

DEFAULT_DOMAIN garbage-default-domain

In the MySQL query, if $(domain) is "garbage-default-domain" then it
uses the one from the appropriate table in the db instead, eg:

AND mail.domain = IF(
   '$(domain)' = 'garbage-default-domain',
   supplier.default_domain,
   '$(domain)'
)

In my imapd config I have:

PORT=14301,14302,14303,14304
AUTHSERVICE14301=14301
AUTHSERVICE14302=14302
AUTHSERVICE14303=14303
AUTHSERVICE14304=14304

It's a shame that the $(server_port) functionality doesn't exist, but I
guess I'd need to update the config file and restart to add more ports
anyway as we get more "suppliers".

Mike

-------------------------------------------------------------------------
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