From owner-freebsd-questions@freebsd.org Sat Nov 11 20:34:47 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF9CDE7326A for ; Sat, 11 Nov 2017 20:34:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay12.qsc.de (mailrelay12.qsc.de [212.99.163.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 456236DE4F for ; Sat, 11 Nov 2017 20:34:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay12.qsc.de; Sat, 11 Nov 2017 21:34:37 +0100 Received: from r56.edvax.de (port-92-195-23-159.dynamic.qsc.de [92.195.23.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 293EF3CBF9; Sat, 11 Nov 2017 21:34:42 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id vABKYapc003228; Sat, 11 Nov 2017 21:34:36 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 11 Nov 2017 21:34:36 +0100 From: Polytropon To: RW Cc: RW via freebsd-questions 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> <20171111111143.130b5b31@planb.netng.org> <966939340.163969.1510414084521@mail.yahoo.com> <20171111194352.1a500505@gumby.homeunix.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay12.qsc.de with 64BFA6A35D4 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1401 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2017 20:34:47 -0000 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, ...