Charlie Grosvenor wrote:
> Is there any way to configure exim so that it will delivery an email
> locally as well as send it on to a remote mail server?
> 
> Thanks

Several:

- The simplest, presuming you have a 'conventional' system/alias router, 
is to add an alias entry to /etc/aliases (or wherever...), of the form:

wbh: wbh, [email protected], [email protected]

(where 'wbh' is either a shell-account holder AND/OR a member of the 
virtual user group, such as [email protected], on that box)


CAVEAT:

- If running virtual-hosting, and there could be more than one 'wbh' 
locally OR in the virtual table, OR any other router, the 'wbh:' will do 
the expected, which may not be the desired..

;-)


Ergo:

- A more code-complex, but fine-grain-controllable approach would be to 
use an 'unseen' router with whatever special conditions suit your goals. 
This can insure acting on the specific <domain>.<tld> in a non-ambiguous 
manner.

The second section - after the 'unseen' - would resemble comon code 
snippets for forwarder routers.

Selecting the conditions depends on your needs, but they can be 
per-user, per-domain, or driven by an acl_m flag or X-header - even 
time-of-day, which Exim has internal access to, or phase of the moon, 
which it can read from an external source...

See also shadow transports.

HTH

Bill Hacker


-- 
## List details at http://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