Following a bit more digging I have a clearer picture of what is happening
(or not).

All the mail should go to external accounts, there are no local users who
will try to read mail.

However because of the way Rancid works, it has a hard coded email address
with a -suffix which expects to be delivered locally via the /etc/aliases
file.
However I have a smarthost at the top of my routers, so all mail is sent
to the relay, including traffic which should be passed through the alises.

begin routers

smarthost:
  driver = manualroute
  domains = *
  transport = remote_smtp
  route_data = gy-inet04.gyprod.int.igt.com


I think I should move the smarthost lower down the chain so that local
aliases are inspected in system_aliases.

Regards,
Andrew.





> Hi, I am using exim on a server to deliver mail to another exim server
> which delivers to the corp exchange filth. All these are internal and
mail
> does not need to be routed to the internet.
> 
> gy-asp-mon01.prod.wagerware.net -> gy-inet04.gyprod.int.igt.com ->
> exchange
> 
> 
> I need to deliver mail to an address in /etc/aliases, rancid-admin-gy.
The
> lines in /etc/aliases are:-
> [root@gy-asp-mon01 exim]# tail -12 /etc/aliases
> 
> # RANCID Aliases
> rancid-admin-GY:        [email protected]
> #rancid-GY:             [email protected]
> rancid-GY:              [email protected]
> 
> 
> scope:          root
> cacti:          root
> 
> # Person who should get root's mail
> root:           [email protected]
> [root@gy-asp-mon01 exim]#
> 
> An initial debug picks up the correct smarthost and sending mail to real
> users eg. [email protected] works fine.
> 
> [root@gy-asp-mon01 exim]# exim  -bt rancid-admin-GY
> [email protected]
>   router = smarthost, transport = remote_smtp
>   host gy-inet04.gyprod.int.igt.com [172.27.201.121]
> 
> 
> However looking in the main.log reveals that rancid-admin-GY is not
> getting expanded out to [email protected].
> 
> My only thought is that /etc/aliases is not used to send mail, only to
> receive it. If this is the case, how is the best way to expand an
outgoing
> alias?
> 
> And before you ask, I can't change the sending MUA to send to the
correct
> destination email address because it is hard coded :-}
> 
> 
> Regards,
> Andrew.

-- 
## 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/

Reply via email to