[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting Reply-To: using exim?



Mark Phillips wrote:
> Sean 'Shaleh' Perry [shaleh@valinux.com] wrote:
> > enable /etc/email-address use.  I use this so that mail from
> > shaleh@mymachine.whereiam.foo becomes shaleh@whatIwant.com.
> 
...

> All in all, it is a bad idea --- so I'm told.  The _correct_ solution,
> I was told, is to tell the truth about the "From:" address, ie keep it
> as markphillips@cheapist.com.au, but to set the "Reply-To:" field to
> mark@infoeng.flinders.edu.au.
> 
> So this is what I want to do, except I don't know how to do it.  I
> could perhaps figure out how to do it in individual MUAs but I'd
> prefer a system wide, MUA independent, approach.
> 

Exim can rewrite just the headers you want to rewrite. 

Put your alias in the etc/email-addresses file (as was suggested earlier)
/and then edit the REWRITE CONFIGURATION to rewrite "r" , the reply header.
As you can see, I rewrite From: Reply-to: Sender: and Env-From: headers


######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################


# There are no rewriting specifications in this default configuration file.


# This rewriting rule is particularly useful for dialup users who
# don't have their own domain, but could be useful for anyone.
# It looks up the real address of all local users in a file
# s=sender, b=bcc, c=cc, f=from, r=reply-to, F=env-from, T=env-to

*@claire    ${lookup{$1}lsearch{/etc/email-addresses}\
						{$value}fail} frsF

# End of Exim configuration file

-- 
David Raeker-Jordan
mailto:rkrjrdn@epix.net
Harrisburg, PA, USA



Reply to: