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

Re: Rewriting "From:" in exim



On Mon, Aug 26, 2002 at 10:34:57PM -0700, Paul Johnson wrote:
| On Mon, Aug 26, 2002 at 08:13:59PM -0400, Derrick 'dman' Hudson wrote:
| > *@host1.ursine.dyndns.org \
| >   "${if eq {${lookup{$1}lsearch{/etc/passwd}{1}{0}}} {1}  \
| >         {$0}{$1@ursine.dyndns.org}}" \
| >   frFs
| 
| For clarification, does this go in the exim.conf of host1 or of
| ursine?

It would have to be host1 otherwise the /etc/passwd lookup wouldn't
see the same set of users.

Actually, if on host1 you have a director that delivers to local
users, and then a director that redirects out through ursine (ack,
that's easier in exim4 where there is no director/router distinction),
then you could put that on ursine and skip the lookup.  The reason is
that host1 would handle all local users first before passing off to
ursine, so every @host1... address ursine sees wasn't a local user, so
it can do the rewrite without a lookup.

(now why didn't I think of that before? :-))

| It doesn't work on host1...

Hmm.  What domain is in qualify_domain?

HTH,
-D

-- 
If Microsoft would build a car...
... Occasionally your car would die on the freeway for no reason. You
would have to pull over to the side of the road, close all of the car
windows, shut it off, restart it, and reopen the windows before you
could continue. For some reason you would simply accept this.
 
http://dman.ddts.net/~dman/

Attachment: pgpJ5TOvN7Mug.pgp
Description: PGP signature


Reply to: