Martin Jespersen <[EMAIL PROTECTED]> wrote:
>1: I want the alias user to handle all virtual domains, since i own
>the box this should not be a problem and i don't need to clutter up
>my home dir with .qmail files.
OK, alias user handles all virtual domains.
>2: I am serving to many different people from every virtual domain i
>have, some being actual account on my machine, some being simple
>aliases for remote accounts.
OK, typical virtual domain set-up.
>What i am looking for is a way to make the forwarding dynamical based
>on the extension.
>
>example:
>
>mail to [EMAIL PROTECTED] is delivered to mbj-ext-1@localhost
>
>and mail to [EMAIL PROTECTED] is delivered to mbj-ext-2@localhost
>
>(both owned by user mbj ofcause)
>
>but i also want mail to [EMAIL PROTECTED] is delivered to tony-ext-1@localhost
>
>and mail to [EMAIL PROTECTED] is delivered to tony-ext-2@localhost
>
>(both owned by user tony ofcause)
virtualdomains:
domain.com:alias-domaincom
~alias/.qmail-domaincom-default:
|forward "$EXT2"@localhost
(might need $EXT3 of just $EXT; I can't be sure without testing it.)
>at the same time i want mail to sam*@domain.com is delivered to
>[EMAIL PROTECTED]
Ugh. That really complicates things. (If you wanted sam-*@domain.com
redirected, that'd be a lot easier.)
First, create a virtual domain for domain.com:
domain.com:domaincom
Then in users/assign redirect the various pieces of the domain (two
lines):
+domaincom-:alias:[UID of alias]:[GID of nofiles]:/var/qmail/alias:-:
domaincom-
+domaincom-sam:alias:[UID of alias]:[GID of nofiles]:/var/qmail/alias:-:
domaincom-sam-
Then create the above ~alias/.qmail-domaincom-default and a
~alias/.qmail-domaincom-sam-default containing:
&[EMAIL PROTECTED]
>i mean instead of having a dead $[EMAIL PROTECTED] command in
>the alias users .qmail-whatever, isn't there a way for me to route
>the incomming mail intelligently in a catch-all way based on the
>first word? (by first word i mean mbj or tony or sam in the examples
>above)
qmail-users[1].
>Do i make any sense or am i very terrible with the english language
>and unable to explain what i mean (or am i just unable to see the
>forrest because of to alle the trees blocking my vision)? (i am
>danish, sorry :)
No, you're doing great. It's just that what you want isn't trivial to
describe or implement.
-Dave
Footnotes:
[1] http://Web.InfoAve.Net/~dsill/lwq.html#qmail-users