[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: default destination in exim?



On Tue, 2004-02-17 at 18:26, Monique Y. Herman wrote:
> On 2004-02-17, Monique Y. Herman penned:
> > Is it possible to configure the /etc/aliases file such that any alias
> > that is not explicitly correlated to a local user is sent to some user
> > by default?  If so, how, or where is it documented?
> >
> > In other words, if someone emails a non-existent user on the system, I
> > want that mail to go to a specific place every time.
> >
> > This is exim 3.36 on unstable.
> 
> I tried adding
> 
> *: username
> 
> to /etc/aliases, but the system is still rejecting undefined usernames.
> 
> I'm confused; `man newaliases` says:
> 
>  It is  not actually necessary to notify exim of changes to /etc/aliases
>  at all.
> 
> -- 
> monique
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
Try adding the following to exim.conf

*@yourdomain.com ${lookup{$1}lsearch*{/etc/email-addresses}
{$value}fail}

You will also need to put * into /etc/email-addresses



Reply to: