Mailing List Archive

Problem with catchall
Hello

I use the following configuration:

catchall:
driver = redirect
headers_add = X-redirected: yes
require_files = /etc/exim4/domains/$domain/aliases
data =
${extract{1}{:}{${lookup{*@$domain}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/aliases}}}}
file_transport = local_delivery
redirect_router = dnslookup

The result is that when mail is sent to the domain, ALL mails are forwarded
to the catchall address. I was expecting that ONLY addresses not listed in
users/alias where catched.

Is there a way to change this configuration to achieve my goal?

Thanks and Regards!

Walter
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Problem with catchall [ In reply to ]
On Thu, Dec 08, 2022 at 10:56:57AM +0100, Walter Aresca via Exim-users wrote:
> I use the following configuration:
>
> catchall:
[...]
> The result is that when mail is sent to the domain, ALL mails are forwarded
> to the catchall address. I was expecting that ONLY addresses not listed in
> users/alias where catched.

Result depends on routers order. Probably "catchall" router is faced
before other routers (users/alias), so they can't catch their addresses.
Run "exim -d-all+route -bt <addr>" to check it.
--
Eugene Berdnikov

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/