Auteur: Daniel Dainty Date: À: exim-users Sujet: RE: [Exim] alias@* mail coming through to me
>> I am the local admin for my site, using Exim 4.13, and I've noticed a >> strange problem where, if any user sends mail to any domain, but the alias >> matches one that's in my /etc/aliases file, then it gets passed through the >> aliases file, and eventually ends at me (as I am aliased to root, and
>> everything is aliased to root).
>>
>> This obviously creates problems when people try to send mail to
>> webmaster@??? and it ends up in my inbox (which happened
>> today)...
>>
>> Can anyone shed any light on why this is happening and how I can stop it?
>
> Check your routers, your aliasfile-router (systemaliases) is placed
> before the routers that handle the other domains, or the others do not
> handle these addresses, and it falls through to the system_alias router.
Yes, the order of the routers seems to be the problem. I've only got four
routers, the two troublesome ones are shown below (in order). I've got a
smart-host-relay setup here, how would I stop system_aliases catching stuff
that isn't for my domain?
---
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
# user = exim
file_transport = address_file
pipe_transport = address_pipe
send_to_gateway:
driver = manualroute
domains = +relay_to_domains
transport = remote_smtp
# place the FQDN or IP address of where the
# messages are being relayed to here
route_list = * 172.16.254.254
---
Thankyou to everybody who took the time to reply, it's much appreciated.