Re: [Exim] aliases

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Raymond J. Raiani
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] aliases
On Tue, 28 Jan 2003, Raymond J. Raiani wrote:

> If I have a system user named johnny
>
> Johnny recieves alot of spam addressed to johnny@???
> I would like to bouce all mail delivered to johnny@??? but deliver
> all mail addressed to john@??? as well as johnny@???.
>
> According to the documentation this can be accomplished with these 2 lines
> in /etc/aliases
>
> johnny@???: :unknown:
> john: johnny


That is not enough, because after john has been turned into johnny, it
will be re-evaluated and will hit the first line.

Actually, that won't work anyway, because you have a mixture of keys,
some including a domain and some not. You'll either need to use two
routers, or adjust the new addresses.

You can stop the re-aliasing happening be setting the redirect_router
option on the router to tell Exim where to start routing the new
address. An alternative would be to block mail to johnny at SMTP time
using an ACL.

> I would also like to know if it is possible to have mail that is returned
> (responded to with an undeliverable error) in this manner to be delivered
> anyway.


Yes, in a number of ways, some involving the "unseen" option, and some
involving the system filter.

> I am running exim 3.35 on debian/stable


Ah. In that case, a lot of what I said above doesn't make too much
sense, because it applies to Exim 4. However, some of the facilities
were available in Exim 3, but in different ways.

Sorry, I'm rapidly forgetting how to do things on Exim 3, since Exim
4 has been out for nearly a year now.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.