Mailing List Archive

Config Question
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
Hello All,

New to Exim, new to sendmail even.

I've got numerous servers behind a firewall used in a development
environment. None have valid domain names, so sending out email to my
company's system fails on reverse lookup. I'm looking to Exim as a solution,
as I don't want to make valid DNS entries for each machine, as they can
change weekly.

Right now, I have the systems successfully relaying through the server
running Exim v. 4.05 on Solaris 9, running as a replacement for sendmail (I
simply moved /usr/lib/sendmail and created a symbolic link to the Exim
binary, then modified /etc/init.d/sendmail, changing SERVER_PID_FILE to
"/var/spool/exim/exim-daemon.pid"). Exim is running as exim:exim.

Below are what I believe to be the crucial variables in the Exim config
file, with my comments/questions noted per line:

primary_hostname = fogbox.com
I'm using this because it's valid. It differs from the FQDN of the Exim
server, however, which is fgru452g.fgr.kpmgbsc.net

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)?

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?

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?

never_users = root
And, let my local alias file (pointing root mail to my real email address)
handle root email...

begin rewrite
*@*fgr.kpmgbsc.net server@rmbsc.com Ffrs
Here's where (I think) my problem starts. Yes, it works. Yes, it rebadges
the FROM: header with "Super-User [server@rmbsc.com]". 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@hostname.rmbsc.com [server@rmbsc.com]". Any tips on how to make
this happen or other ideas? What's driving me is that my developers want to
fire out all sorts of email from within applications (both Solaris-based and
Windows-based) and I'd like to be able to identify at a glance which
server's the emails are coming from... Of course, one major issue is that
all root email from all servers is rebadged too, which I definitely can't
have unless the aforementioned solution is implemented...

I'd sure appreciate your help! Thanks in advance...

Chris Brewer

--
Re: Config Question [ In reply to ]
On Wed, 26 Jun 2002, Chris Brewer wrote:

> I've got numerous servers behind a firewall used in a development
> environment. None have valid domain names, so sending out email to my
> company's system fails on reverse lookup. I'm looking to Exim as a solution,
> as I don't want to make valid DNS entries for each machine, as they can
> change weekly.
>
> Right now, I have the systems successfully relaying through the server
> running Exim v. 4.05 on Solaris 9, running as a replacement for sendmail (I
> simply moved /usr/lib/sendmail and created a symbolic link to the Exim
> binary, then modified /etc/init.d/sendmail, changing SERVER_PID_FILE to
> "/var/spool/exim/exim-daemon.pid"). Exim is running as exim:exim.
>
> Below are what I believe to be the crucial variables in the Exim config

i'm confused. what's the actual question ? (if others find it out and
answer, just ignore me.:)


--
[-]
Re: Config Question [ In reply to ]
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@rmbsc.com Ffrs
> Here's where (I think) my problem starts. Yes, it works. Yes, it rebadges
> the FROM: header with "Super-User [server@rmbsc.com]". 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@hostname.rmbsc.com [server@rmbsc.com]". 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@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.
RE: Config Question [ In reply to ]
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@exim.org
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@rmbsc.com Ffrs
> Here's where (I think) my problem starts. Yes, it works. Yes, it
> rebadges the FROM: header with "Super-User [server@rmbsc.com]". 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@hostname.rmbsc.com [server@rmbsc.com]". 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@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.