On Tue, Jan 02, 2007 at 05:09:23PM -0800, Emmanuel Stapf [ES] wrote: > Hi, > > I'd like to know if it is possible to configure /etc/aliases so that certain > aliases are disabled when an SMTP connection is initiated from a given host. > In > other words, my email server is behind a firewall in a DMZ zone. I want to > enable all aliases when connections are initiated from the intranet, and > disable > some of the aliases when coming from the internet.
One possible method:
* copy /etc/aliases as /etc/aliases.external
* clone your system_aliases router; call the new one "system_aliases_external",
and modify it to use the /etc/aliases.external file
* add a condition to system_aliases and/or system_aliases_external, using
${if match_ip{$sender_host_address}{ ... }} to select which hosts can use
those aliases.
--
Dave Evans
Power Internet
http://www.powernet.co.uk/~davide/about-powernet.txt
signature.asc
Description: Digital signature
-- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
