On Sun, Apr 18, 2004 at 02:05:25AM +0200, Benedict Verheyen wrote:
> H. S. wrote:
> > How can I setup exim4 so that if I send email to outside world (non
> > home.pvt domains), the Sender field contains my sympatico domain, and
> > if I send mail to a local user on my home network, Sender has
> > "home.pvt".
>
> I have a file called email-addresses inside /etc
> which contains the "real" email addresses for the users of my home
> network. For instance, yours could be
> hs: hs@realemailaddress.com
I don't think that'll be the whole answer, though: the requirement
seems to be to use a different Sender/From based on To. The following
is for exim 3.35, but may provide some clue:
The following excerpt from my /etc/exim/exim.conf is used to send mail
to Yahoo mailing lists, primarily the BJH (Barclay James Harvest, an
excellent group) discussion list, from "bjh.pigeon@ukonline.co.uk" and
everyone else from addresses looked up in /etc/email-addresses:
######################################################################
# REWRITE CONFIGURATION #
######################################################################
pigeon@*.pigeonloft "${if match {$header_to:}{.*@yahoogroups.com}\
{bjh.pigeon@ukonline.co.uk}fail}" frFs
*@*.pigeonloft ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} frFs
end
--
Pigeon
Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F
Attachment:
pgpBAauVhcIgN.pgp
Description: PGP signature