|Zenon Panoussis||Oct 1, 2002 4:27 pm|
|Gordon Messmer||Oct 1, 2002 11:32 pm|
|Zenon Panoussis||Oct 2, 2002 7:06 am|
|Roland Schneider||Oct 2, 2002 7:29 am|
|Bill Michell||Oct 2, 2002 7:36 am|
|Zenon Panoussis||Oct 2, 2002 9:10 am|
|Keith Pettit||Oct 2, 2002 11:36 am|
|Barry Hensley||Oct 2, 2002 12:21 pm|
|Zenon Panoussis||Oct 2, 2002 1:22 pm|
|Keith Pettit||Oct 2, 2002 3:49 pm|
|Keith Pettit||Oct 2, 2002 4:00 pm|
|Zenon Panoussis||Oct 2, 2002 6:28 pm|
|Sam Varshavchik||Oct 2, 2002 7:04 pm|
|Zenon Panoussis||Oct 2, 2002 7:37 pm|
|Alexei Batyr'||Oct 3, 2002 5:11 am|
|Bill Michell||Oct 3, 2002 5:49 am|
|Alexei Batyr'||Oct 3, 2002 9:11 am|
|Sam Varshavchik||Oct 3, 2002 2:41 pm|
|Alexei Batyr'||Oct 4, 2002 1:41 am|
|Bill Michell||Oct 4, 2002 9:38 am|
|Alexei Batyr'||Oct 5, 2002 4:56 am|
|Subject:||Re: [courier-users] Aliases redirect to local account|
|From:||Zenon Panoussis (ora...@xs4all.nl)|
|Date:||Oct 2, 2002 6:28:41 pm|
Keith Pettit wrote:
If domain.com is in locals, then you should only have
etc. Will this work??
As I had the dubious pleasure to find out in the hard way, it will, but not with this syntax.
Addresses to domains in locals get stripped of @whatever and delivered to the system account that is left. If that account does not exist or is root, the account name is checked against aliases and gets delivered to a system account accordingly. Thus, if mail for webm...@domain.com arrives and domain.com is in locals, only "webmaster" will be checked against aliases. Therefore, what you just wrote won't work.
If neither domain.com nor domain2.com are in locals, you have various alternatives to deliver their mail to different users. I deliver to system users who all have either a domain or a subdomain to themselves and I want to let them have an infinite number of addresses, so I did the following, here scripted for simplicity's sake:
cd /etc/courier echo "domain.com" >>hosteddomains echo "domain2.com" >>hosteddomains makehosteddomains echo "@domain.com<tab>foo" >>aliases/aliases echo "@domain2.com<tab>otheraccount" >>aliases/aliases makealiases touch /home/foo/.courier touch /vome/otheraccount/.courier echo "foo@localhost" >/home/foo/.courier-default echo "otheraccount@localhost" >/home/otheraccount/.courier-default
If you *only* want to deliver postmaster to different users and don't want zillions of addresses on each domain, substitute "-postmaster" for "-default" at the end of the last two command lines above. Of course, the user could still create .courier-default himself if you don't block him from it.
Note that there are many more ways to make aliases and there is nothing to say that this way is the best one. It's just the first one I figured which served my purposes.