Re: [exim] Query on address rewriting - can it be done in an…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: Re: [exim] Query on address rewriting - can it be done in an ACL?
On 05/09/2010 08:16 AM, Ron White wrote:
> On Sun, 2010-05-09 at 12:31 +1000, Ted Cooper wrote:
>> This doesn't seem like a job for address rewriting. I just use a catch
>> all router at the end with specific conditions.
>>
>> I have a very old setup that will catch all crap sent to a domain I
>> specify in a directory. I should have changed this ages ago into
>> something more useful, but not many people use a catch all so it's not
>> something I want to change.
>>
>> Anyway, If I have a domain I want to catch all on, I "touch
>> /etc/exim/catchalladdress/<domain to catch>" and then this router
>> sitting at the bottom of my routers does the rest:
>>
>> # last router before default reject
>> catchall:
>>    driver = redirect
>>    domains = dsearch;/etc/exim/catchalladdress
>>    data = catchall@$domain
>>    cannot_route_message = Unknown user

>>
>> .. well, except that I also add an alias on that domain called
>> "catchall" which redirects itself to whatever account you want, OR just
>> create an account called catchall that collects everything.
>>
>> If you want, you can keep the original recipients by adding them as a
>> header.
>>
>> I only run a catch all so I can make up email addresses on the fly on a
>> spam/bacon trap only domain. Very useful for tagging which site which
>> addresses were entered into. Other than that, they're evil.
>>
>>
>>
> Hi Ted,
>
> Thanks for that. It's a little more complex in my set up because Exim
> handles mail for:
>
> 1. Locally hosted domains and recipients
> 2. Remote/relay to domains and recipients
> 3. Remote/relay domain may also have users locally hosted user
> accounts(such as postmaster/abuse/notifications).
>
> The catch-all is dynamic. The user can change the local part


The we're talking at cross-purposes. Catchall, to me, means
that any local-part (for some particular domain) is accepted.

which means
> (1) the final catch-all recipient needs to be verified so we don't
> accept mail for something we can't deliver (2) that catch all could be a
> locally routed account, a remote smtp destination (sub classes of 'by
> ip, by hostname, by mx) (3) the per-user settings of the destination
> catch all, which are set in the ACL's, would not be honoured potentially
> leading to spam/viruses flowing through unchecked. As far as I
> understand it using a router to do it means that you have accepted the
> message at that point.


Not if you do recipient-verification in your RCPT acl. That calls the routers.

- Jeremy