On Sun, Mar 28, 1999 at 11:56:32AM -0600, Christian Dysthe wrote:
> Hi,
> 
> is it a (simple) way to get headers rewritten using exim or sendmail (would
> prefer exim since I have it working now) to what an email client puts in the
> "From' field? 
> 
> Lets say I send mail with: "From [EMAIL PROTECTED]" and my local account is
> "[EMAIL PROTECTED]". What is the "correct" way to set up the mailer
> (exim) in this situation?
> 
> I even send from two different acounts from my user account on my Linux box,
> so the best thing would be if the mailer looked at the "From" set by my email
> client.
> 
> I have looked at he exim documentation, but I am still confused.
> 
> I am also pretty new to this, so bear with me.
 
My home system is configured as glitch.snoozer.net (non-existant domain,
or at least it was at the time), with my userid being adric.  Here's
what I did in order to "fix" it under exim for my ISP...

First, I ran "eximconfig" and selected (if memory serves) "Internet site
using smarthost", filling in the appropriate details when prompted.

Second, I created the file /etc/email.map, which an entry for each
userid that can send non-local mail.  The individual entries should look
like (without the leading spaces):

     userid:[TAB]actual-name <[EMAIL PROTECTED]>

For example, my own entry is:

     adric:  Greg Norris <[EMAIL PROTECTED]>

Finally, at the end of /etc/exim.conf I added these entries (again,
ignore the leading spaces):

     [EMAIL PROTECTED]         ${lookup{$1}lsearch{/etc/email.map}\
                                             {$value}fail} frFs
     [EMAIL PROTECTED]                ${lookup{$1}lsearch{/etc/email.map}\
                                             {$value}fail} frFs

The "frFs" flags at the end control which addresses get rewritten.
Essentially, I've got it set to rewrite all the originator entries (in
both the envelope and the message headers), while leaving the recipient
entries untouched.

Reply via email to