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: [EMAIL PROTECTED]
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 "[EMAIL PROTECTED]" and everyone else from addresses looked up in /etc/email-addresses: ###################################################################### # REWRITE CONFIGURATION # ###################################################################### [EMAIL PROTECTED] "${if match {$header_to:[EMAIL PROTECTED] [EMAIL PROTECTED]" frFs [EMAIL PROTECTED] ${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
pgp00000.pgp
Description: PGP signature