View Single Post

  #2 (permalink)  
Old 01-14-2008
Dave Sill
 
Posts: n/a
Default Re: Qmail, Alias and the use of wildcards

"proza" <magweg@hotmail.com> writes:

> How to set up the next situation
>
> bounce20112@domain.net =>> forwarded to bounce@domain.net
> bounce20113@domain.net =>> forwarded to bounce@domain.net
> ...
> ...
> bounce20748@domain.net =>> forwarded to bounce@domain.net
>
> A alias should do the trick I think, but how to set this.
>
> bounce*@domain.net =>> bounce@domain.net


It'd be trivial to do if the addresses were of the form
bounce-<number>:

echo "&bounce@domain.net" >~alias/.qmail-bounce-default

If you really have to use bounce<number>, then you'll have to use the
qmail-users facility. It's still easy, but it's a bit more work. See:

http://lifewithqmail.org/lwq.html#qmail-users

You'll need a wildcard entry like:

+bounce:alias:UID:GID:/var/qmail/alias:-:bounce-:

As well as the ~alias/.qmail-bounce-default file above.

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote