Autor: W B Hacker Data: Para: exim users Asunto: Re: [exim] Deliver email locally and to remote mail server?
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, wbh@???, wbh@???
(where 'wbh' is either a shell-account holder AND/OR a member of the
virtual user group, such as wbh@???, 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...