Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2017 21:34:36 +0100
From:      Polytropon <freebsd@edvax.de>
To:        RW <rwmaillists@googlemail.com>
Cc:        RW via freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Server for web hosting and emails
Message-ID:  <20171111213436.5137a048.freebsd@edvax.de>
In-Reply-To: <20171111194352.1a500505@gumby.homeunix.com>
References:  <1947620261.80174.1510389431279.ref@mail.yahoo.com> <1947620261.80174.1510389431279@mail.yahoo.com> <20171111104334.7bcbb022@planb.netng.org> <CAKYr3zxjL_%2BD8ZY0rKzGwUjgwneYTNmfepb_4LRBikH1nkc9xg@mail.gmail.com> <20171111111143.130b5b31@planb.netng.org> <966939340.163969.1510414084521@mail.yahoo.com> <20171111194352.1a500505@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171111213436.5137a048.freebsd>