Server for web hosting and emails

Polytropon freebsd at edvax.de
Sat Nov 11 20:34:47 UTC 2017


On Sat, 11 Nov 2017 19:43:52 +0000, RW via freebsd-questions wrote:
> On Sat, 11 Nov 2017 15:28:04 +0000 (UTC)
> Mitch MRC via freebsd-questions wrote:
> 
> > Thank you for your replies.Is it possible to make it with dynamic IP
> > from the ISP? Or i should ask for a fixed IP? Mircea
> 
> If you want to send outgoing mail directly you should, at very least,
> have a static address and really you should have a static address with
> full-circle DNS,
> 
> e.g.:
> 
> $ dig  +short -x 8.8.178.116
> mx2.freebsd.org.
> 
> $ dig +short  mx2.freebsd.org
> 8.8.178.116
> 
> The requires that the ISP either sets the rDNS for you or delegates
> it to your DNS server.

And if you - for whatever reason - cannot, you could use a
mail relay, maybe provided by your ISP, which _has_ a static
address, and all your local mail system does is to send the
messages to that relay which then will actually send them
to the recipient.

For example, this can be done with sendmail easily. The .mc
file can be extended by a setting like this:

	define(`SMART_HOST', `mx.example.com')

Make sure the hostname does actually resolve correctly. ;-)

However, this is only _half_ of what's needed for a normal
mail server. Incoming mail isn't handled that way, so yes,
you'll get much better results with a static IP (that isn't
blacklisted as a spammer source, which can sometimes happen
in some "subnets").



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list