David Favor <[email protected]> (Do 08 Mai 2014 21:17:14 CEST): > I'm trying to add /etc/aliases processing for simple forwarding > for virtual users to Ubuntu's default configuration. > > For example, for a host with 100s of domains, forward > some virtual user to gmail... > > [email protected]: [email protected] > > Seems like this should be simple as matching an address then > rewriting all the headers + forwarding it on... something like this... > which is incorrect....
Why do you want to rewrite the headers?
>
> forward_virtual_user:
> driver = redirect
> data = ${lookup{$local_part@$domain}lsearch{/etc/aliases} {$value} fail}
> bctfrF
>
> This seems to be working, except headers never get rewritten.
>
> Any suggestions about the best way to forward pure virtual users
> to an external email address?
I'd not use /etc/aliases, it's mostly understood as redirection
information for local addresses.
forward_virtual_user:
driver = redirect
domains = dsearch;/etc/exim/virtual
data = ${lookup{$local_part}lsearch*{/etc/exim/virtual/$domain}}
And /etc/exim/virtual/<domain>
foo: [email protected]
# optionally forward all addresses
*: [email protected]
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
gnupg fingerprint: 9288 F17D BBF9 9625 5ABC 285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B)-
signature.asc
Description: Digital signature
-- ## 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/
