From owner-freebsd-questions@freebsd.org Tue Jul 19 11:55:13 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 EF7E7B9C739 for ; Tue, 19 Jul 2016 11:55:13 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F9891F96 for ; Tue, 19 Jul 2016 11:55:11 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id u6JBt1du000185; Tue, 19 Jul 2016 13:55:01 +0200 (CEST) (envelope-from bah@bananmonarki.se) Subject: Re: sendmail: using sendmail as submitting MTA To: "O. Hartmann" , freebsd-questions References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> From: Bernt Hansson Message-ID: Date: Tue, 19 Jul 2016 13:55:01 +0200 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: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 19 Jul 2016 11:55:14 -0000 https://www.safaribooksonline.com/library/view/sendmail-cookbook/0596004710/ch03s03.html On 2016-06-27 12:03, O. Hartmann wrote: > We use a monitoring server (icinga2) based on FreeBSD embedded in a closed > network (no external access) with a M$ mailexchange server. > > I try to configure local sendmail in a way so that all email going to the > localhost are delivered to the local machine itself, but email for an external > email account is passed to the mail hub server. This mail hub server is > accessible by any host in the closed network without authentication (this is > given by a higher instance as a fact I can not change). > > I tried to figure out with the recent handbook but the explanation of how to > configure sendmail is really poor. Since I'm not that familiar with sendmail > itself anymore, I appreciate some startups here. > > As I understand the docs, the files > > hostname.localdomain.mc > > and > > hostname.localdomain.submit.mc > > are the only ones I need to touch, along with > > mailertable > > for the resolution of the target domain and the mail-hub server to contact. > > The target email domain would be foobar.bla, so I use an entry in mailertable > like > > foobar.bla esmtp:[IP4] (no MX record usage) > .foobar.bla esmtp:[IP4] > > There is no suitable access to a DNS for MX resolution (all Microsoft crap), so > I have an /etc/host entry for the mailhub server - or mail relaying server. But > nothing works so far. Checking the mail queue with mailq gives me always on all > outbound emails > > host map: lookup (foobar.bka): deferred > > What is wrong? > > Please CC me, I' do not subscribe this specific list. > > Thank you in advance, > > Oliver > > P.S. I ggoled for that specific error and got lots of how-tos but it seems that > none of them worked so far. I guess I miss something. I already did a > > make all install > > in /etc/mail after every change. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >