RE: [Exim] Config Question

Top Pagina
Delete this message
Reply to this message
Auteur: Chris Brewer
Datum:  
Aan: 'exim-users@exim.org'
Onderwerp: RE: [Exim] Config Question
Thanks Philip. Great comments that helped me get things squared away.

-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: Thursday, June 27, 2002 2:34 AM
To: Chris Brewer
Cc: exim-users@???
Subject: Re: [Exim] Config Question


On Wed, 26 Jun 2002, Chris Brewer wrote:

> domainlist local_domains = @
> My understanding is that this is how I specify which domain Exim
> treats as local mail (e.g., delivery of mail @ [the localhost] isn't
> routed)?


Yes.

> domainlist relay_to_domains = fgr.kpmgbsc.net
> I only want to relay mail from my servers behind the firewall, all of
> which are on fgr.kpmgbsc.net. Is this correct?


No. Note the name relay_TO_domains. This is what you set when you want to
relay from the Internet at large to certain domains (e.g. you own domains
behind you). If you had typed "to" instead of "from" above, that would have
been almost right (see below). Maybe you did mean "to"?

It's not quite right because that setting matches only one domain. From your
use of "serverS" and "all of which are on", I think what you really mean is

domainlist relay_to_domains = *.fgr.kpmgbsc.net

(assuming you really meant "to" rather than "from").

> hostlist relay_from_hosts = 127.0.0.1 : 172.16.0.0/12
> And I only want to relay from hosts within the private range of
> 172.16.0.0 to 172.31.255.255. This is where my, erm, lack of knowledge
> shows.... Is the netmask correct?


Yes.

> begin rewrite
> *@*fgr.kpmgbsc.net server@??? Ffrs
> Here's where (I think) my problem starts. Yes, it works. Yes, it
> rebadges the FROM: header with "Super-User [server@???]". But,
> that's a rather nebulous return address (not that email will be
> replied to in our development environment). I would much prefer that
> the FROM header be rewritten so that the reply address contains the
> hostname such as "username@??? [server@???]". Any
> tips on how to make this happen or other ideas?


Check out the "w" flag for rewriting rules. But note that your example is
syntactically invalid. You must use () for comments, not [].

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.