On Saturday 21 May 2011, Varad Gupta wrote:
> > I'm trying to set up an IMAP server for virtual users with the
> > following characteristics:
> > - Server is handling multiple mail domains, say "foo.com" and
> > "bar.com".
> > 
> > - Mail for x...@foo.com gets delivered to system user x.foo.com; mail
> > for x...@bar.com gets delivered to system user x.bar.com.
> > 
> > Now is it possible to have an IMAP server handle logins of the form
> > "x...@foo.com" and "x...@bar.com" and authenticate them against the
> > corresponding system users "x.foo.com" and "x.bar.com"?  A
> > non-database solution would be preferred.

So I finally solved the problem by automagically creating Courier user 
x...@foo.com and system user x.foo.com when required.  This is achieved 
through a set of 4 Webmin Custom Command scripts which I'll be releasing 
under the GPL.  The scripts are:

1. Create user (automatically creates system and Courier users)
2. Change password (automatically changes system and Courier passwords)
3. Show users in domain
4. Delete user (from both system and Courier)

It's a bit of a hack, but it takes the user mapping process out of 
runtime and into user creation time, which seems preferable.

Regards,

-- Raj
-- 
Raj Mathur                r...@kandalaya.org      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves

_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to