It seems that this didn't end up going to the list.... -------- Original Message --------
Without modifying the courier-mta package that comes in Debian stable, I have a VERY effective solution to alias use and determining which email was sent to whom. In my setup I have a MySQL database as my backend for authdaemon, courier-{mta,imap} set to use maildir format. My database fields are username, domain, crypt, clear, name, uid, gid and home. username and domain are combined to give a valid email address for receiving email to (was needed to be two fields to allow [EMAIL PROTECTED] to be separate from [EMAIL PROTECTED]). crypt and clear define the password as either MD5 hash or cleartext. home defines the mailbox to drop the email in to. All email accounts are purely virtual from the OS view-points and therefore uid and gid are constant for all fields - they are the uid and gid that courier runs as. In my authdaemon configuration I do NOT allow NULL passwords for logging in. Therefore: 1) to create a new address is just a matter of entering a row of data in to the DB - "alias" addresses do not have a password defined, "real" addresses do. The home field in "alias" addresses is set to match the "real" address' home field. crypt, clear and name are optional fields and usually I don't set them to anything. 2) any username with a password defined in crypt or clear can log in and check email, all others are denied access. 3) as the MTA only cares about username and domain pairings, they are all seen as "real" addresses by it and therefore are what actually appears in the logs. 4) I only need to check 1 account for email, namely the "real" address. 5) Setting up mail filtering/sorting within my email client is easy - base it on the "To:" header, which doesn't change anywhere along the way. HTH. Cheers, Tim Lyth ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users