*- On 30 Sep, David Kanter wrote about "Exim re-writing help" > I would like to rewrite my address with exim. (I only send outgoing mail to > the Internet; no local mail.) I've read the documentation, but am still a bit > confused on exactly how to set up the re-write. I would like [EMAIL > PROTECTED] (i.e., [EMAIL PROTECTED]) to be re-written to [EMAIL PROTECTED] > (either that or [EMAIL PROTECTED], which is easier to read). > >>From what I've read, I should do something like: > > *@@ [EMAIL PROTECTED] then all the flags
This would just give the same address as you started. > > But where should I put the $0, $1, and $2 re-write definitions? I'm assuming: > > [EMAIL PROTECTED] > $1=pcr387 > $2=hecky.acns.nwu.edu > No you can't define these. They coorespond the the components of the address coming in. > But the documentation (Exim manual) implies that: > > [EMAIL PROTECTED] > $1=david > $2=milwaukee > > ...so I'm confused as to which is right. This one is right. > How close am I to doing this correctly? > I would just do this. [EMAIL PROTECTED] [EMAIL PROTECTED] Ffsr I put this rule in my exim.conf to test and this is the result. # exim -brw [EMAIL PROTECTED] sender: [EMAIL PROTECTED] from: [EMAIL PROTECTED] to: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] bcc: [EMAIL PROTECTED] reply-to: [EMAIL PROTECTED] env-from: [EMAIL PROTECTED] env-to: [EMAIL PROTECTED] So outbound addresses are rewritten and inbound ones are left alone. I also set the primary_hostname to my dynamic dns name so that the Message-Id gets set properly(look in the header of this mail). HTH, -- Brian --------------------------------------------------------------------- Mechanical Engineering [EMAIL PROTECTED] Purdue University http://www.ecn.purdue.edu/~servis ---------------------------------------------------------------------