Index: [Article Count Order] [Thread]

Date:  Thu, 22 May 2008 01:47:35 +0100
From:  Dogsbody <dan (at mark) dogsbody.org>
Subject:  [coba-e:13038] Re: Sendmail smart host
To:  coba-e (at mark) bluequartz.org
Message-Id:  <4834C2A7.6010602 (at mark) dogsbody.org>
In-Reply-To:  <4834BA9D.1020509 (at mark) probass.com>
References:  <48349918.3090509 (at mark) probass.com> <200805220044.44171.bq (at mark) solarspeed.net> <4834BA9D.1020509 (at mark) probass.com>
X-Mail-Count: 13038


> It is set in the GUI but mail goes out to the internet from that server 
> and I think if I
> it up in the cf file all should then go to the firewall first, Right?

Hi Richard,

The setting in the GUI is exactly the same as the setting in the cf 
file.  If your sending it to your firewall then I assume that your 
firewall can accept mail on port 25?

Remember that the smarthost uses the MX record first.  For example, if 
you had the following DNS set up...

smarthost.example.com  A   111.111.111.111
smarthost.example.com  MX  wibble.example.com
wibble.example.com     A   222.222.222.222

... and you had "smarthost.example.com" as your smarthost then mail 
would be delivered to 222.222.222.222 and NOT 111.111.111.111 as is 
sometimes expected.

Aditional: (cos I am drunk, very late at night and I'm on a roll)

Because smarthost uses MX records you can use the priorities of MX 
records for much power!  Such as the following DNS...

smarthost.example.com  MX  10  server1.example.com
smarthost.example.com  MX  10  server2.example.com
smarthost.example.com  MX  40  isp-just-in-case.example.com


I hope this helped!

Regards, Dan