From owner-freebsd-questions@freebsd.org Mon Jun 27 11:37:03 2016 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 D4ADCB81A97 for ; Mon, 27 Jun 2016 11:37:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 64CF021A6 for ; Mon, 27 Jun 2016 11:37:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 32FEE2DE0 for ; Mon, 27 Jun 2016 11:36:58 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/32FEE2DE0; dkim=none; dkim-atps=neutral Subject: Re: sendmail: using sendmail as submitting MTA To: freebsd-questions@freebsd.org References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> From: Matthew Seaman Message-ID: <148dd628-cae1-313c-8d6b-861e30a381e3@freebsd.org> Date: Mon, 27 Jun 2016 12:36:46 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k" X-Virus-Scanned: clamav-milter 0.99.2 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 11:37:03 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k Content-Type: multipart/mixed; boundary="L9ifwH1GBv6KpEB0M7jFiBJ5RSuQ76SpL" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <148dd628-cae1-313c-8d6b-861e30a381e3@freebsd.org> Subject: Re: sendmail: using sendmail as submitting MTA References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> --L9ifwH1GBv6KpEB0M7jFiBJ5RSuQ76SpL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/27/16 11:03, O. Hartmann wrote: > I try to configure local sendmail in a way so that all email going to t= he > localhost are delivered to the local machine itself, but email for an e= xternal > email account is passed to the mail hub server. This mail hub server is= > accessible by any host in the closed network without authentication (th= is is > given by a higher instance as a fact I can not change). >=20 > I tried to figure out with the recent handbook but the explanation of h= ow to > configure sendmail is really poor. Since I'm not that familiar with sen= dmail > itself anymore, I appreciate some startups here. Actually, you probably don't need to touch ${hostname}.submit.mc -- occasions where the default config there will need modification are few and far between. Yes, editing ${hostname}.mc is the correct thing to do here. sendmail config is a fairly dark art, and you will need to refer to the documentation. One good resource is /usr/share/sendmail/README which is a handy guide to all the things you might put into a .mc file. However, your best bet is to get hold of the O'Reilly sendmail book. It's a bit of a monster, but you don't need to read the whole thing front to back: most of the content is lists of config settings you can apply to various different bits of the config file. Your requirement for a system that delivers locally anything addressed to the local machine, but forwards everything else to a smart host is certainly one of the scenarios described in the book. Not sure about the lack of DNS around your network: that should work, but SMTP really needs DNS working to be able to function in general. Cheers, Matthew --L9ifwH1GBv6KpEB0M7jFiBJ5RSuQ76SpL-- --kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXcQ/UAAoJEABRPxDgqeTnyWkQALDkTyWOkyQBtwbJ9sFhrpHw DyF7oJLwQhNF5KcUc4A+gibIqHuli/IDDIbyq4QZ+2PsrWwiUBZ2A6uBldGyeC3J mGOKzFJvbZz6aSxUs/JsIhxmgxSSV8YV+pJnZWdI0YeWVBMAhePVHspS+14XFk46 8cZtUQWZXrObV+b43eBULeqGXyOjtU8ZdVeLx3PhppaHS4R7bpQ4F34DdNlUhg7s E/WEbcQRRmjjVoxspBNsnkFX9AAJLLm64UqGOiE+KS7poPtTveN8hWdFHgclG7ii 5Qu74xFhTWfTck/rgepaVXoGxuDpKjIA81JowQamoSbeBiJKItrVquxzro4QCfkR 2oD52XECVnNbaTQhLpyhyXU9pgiaAwzqzwiCD4CpFH4WkD+l0bOlElA4O++RZ/fk i2i88+gRWIAoggKbUd1w4nC5DhzLBxkKIhZdA7rzC1/nUJ7Dp9n8ZbX+epkftA9p h+cZ85cpMcxm8ZhZRY0IWFP82CCETFvvR1x7vGOruCOd6jwhGnGIjB364oJMNzWs Ls/YYgIik/m+ke/rPXIm2/fQTLAxZFfEvXC/9VEmuXess0BekI1RwSozROJBfqMW fgbqwHuVJo576k4bW/zmmZdXjUneR1cyqW7BrC3qFI1CFdiRlpZu3t0HQvwmJI5P qz5L4IaCafqa8mHVSjkN =B3h2 -----END PGP SIGNATURE----- --kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k--