From owner-freebsd-questions@freebsd.org Mon Jun 27 13:06:52 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 E7A69B72FB8 for ; Mon, 27 Jun 2016 13:06:52 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-yw0-x235.google.com (mail-yw0-x235.google.com [IPv6:2607:f8b0:4002:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A42282BFD for ; Mon, 27 Jun 2016 13:06:52 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: by mail-yw0-x235.google.com with SMTP id l125so153536494ywb.2 for ; Mon, 27 Jun 2016 06:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=AXsWEdgHOB/6WVjRztJHsAJ/32Z0EAKRww5j44ImkMY=; b=PMZJ23ZwsKXmz0NA9iEdQVIPZctYCadJNcoiVGhXlQkctpjK0WW7IdNjyGJvaELIOH Ept2V2LIGci1NSCgq/qhIhqj51rIaSIjD2qJ9SN6wXNfk7l1hF7+I7tWR5KyYLe8Qjc+ mgH9VuG7H9Gj77WpWx44HVuXQuhYmXRXBQYE7ZEU74gvZNCoJ5po02D152/J+OlqDW62 FJSu4ZxKLwx/8TSRZ6gJw1zkqOmTsbkCzKmagFUVhNyfKNDL/02TPSVO3CHoCnbFiWEi PR9765/7hzxdTv1mFJcqKdlp1sUXM59pYkECUhoON5qXxRzmQiimkTQomc7/TDNAZ7hD Fs2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=AXsWEdgHOB/6WVjRztJHsAJ/32Z0EAKRww5j44ImkMY=; b=OWtMLCduegW3NxpbOlTK9aFY/zfBvIykm67ZEPnFB0fcaWcmj0mbpXwKYaOnqVOe56 6LsnEJ3vQbflHLHMDKuCcPfOZcHxpUkJVlmm1emrTUSrJ/IomSSoXEghaMZ4a1someF+ gdrOtraH/HVvN9QECAh3RfRkJ+7i21iLvD/ZyclOqKYDECEQIkBkP2+WyBUoRZwLfyTt hHzCPANvqVgwFjR5pk9YC5bRHuih9v2y70St/brsxHiUjkb7Chea6VO5BZCKByJT14NM WlT3r2tiZT7Fd5brpQfasR/gLyfdrFMLBlxJHxiQyg76oeOA6QGzmS5AvWEptGt4jPCy bUYg== X-Gm-Message-State: ALyK8tIFNUAY22YBV93nvG1dSXxT8UbYdaGh5yvLXt3GdrfNgzdd+ff5qpSx5IQlspX/0sS4c+mrEhXkAjUSAg== MIME-Version: 1.0 X-Received: by 10.129.38.138 with SMTP id m132mr11135864ywm.309.1467032811826; Mon, 27 Jun 2016 06:06:51 -0700 (PDT) Received: by 10.37.231.68 with HTTP; Mon, 27 Jun 2016 06:06:51 -0700 (PDT) Received: by 10.37.231.68 with HTTP; Mon, 27 Jun 2016 06:06:51 -0700 (PDT) In-Reply-To: References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> Date: Mon, 27 Jun 2016 14:06:51 +0100 Message-ID: Subject: Re: sendmail: using sendmail as submitting MTA From: Shamim Shahriar To: "O. Hartmann" Cc: "freebsd-questions@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 13:06:53 -0000 On 27 Jun 2016 11:03 am, "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. > Hello Two possible things to try if you have not already First, in /etc/mail, please run make all install restart The restart bit forces sendmail to reread the config and also mailertable. If that doesn't work, in your /etc/hosts add an entry for foobar.bla Then restart sendmail. Please keep us posted on how it goes. Regards