From owner-freebsd-questions@FreeBSD.ORG Tue Mar 20 18:03:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11CC816A403 for ; Tue, 20 Mar 2007 18:03:29 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.8.60]) by mx1.freebsd.org (Postfix) with ESMTP id 9C4DA13C457 for ; Tue, 20 Mar 2007 18:03:28 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (localhost [127.0.0.1]) by gwdu60.gwdg.de (8.13.6/8.13.6) with ESMTP id l2KI3REP038612; Tue, 20 Mar 2007 19:03:27 +0100 (CET) (envelope-from kheuer2@gwdg.de) Received: from localhost (kheuer2@localhost) by gwdu60.gwdg.de (8.13.6/8.13.6/Submit) with ESMTP id l2KI3RoW038609; Tue, 20 Mar 2007 19:03:27 +0100 (CET) (envelope-from kheuer2@gwdg.de) X-Authentication-Warning: gwdu60.gwdg.de: kheuer2 owned process doing -bs Date: Tue, 20 Mar 2007 19:03:27 +0100 (CET) From: Konrad Heuer To: Vincent Bolinard In-Reply-To: Message-ID: <20070320190103.H84510@gwdu60.gwdg.de> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail ignores SmartHost directive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2007 18:03:29 -0000 On Tue, 20 Mar 2007, Vincent Bolinard wrote: > Hi, > > I'm trying to set up Sendmail to "send-only". I just want Sendmail > sends local mails (i.e.: daily security run output) to my SMTP server. > > I use : > > # cd /etc/mail > # make > > to generate a `hostname`.mc file. I edit it, and add : > define(`SMART_HOST', `[192.168.1.6]') > > (I tried without brackets, and with names) > > then : > > # make install > # make restart-mta > > I use > > # date | sendmail -v postmaster > > but I can see in the output that Sendmail sends the mail to the local > server. It seems that my SmartHost is ignored. > I can ping the smarthost (whith IP and name), and telnet > mail.domain.com 25 works fine. > > It's suggested in the Handbook to use ssmtp in this case (send-only), > but I red that it was unable to send HTML mails. Is that true ? If > not, I'll use it. > > So, can somebody tell me where I am wrong ? and what can I do to use a > smarthost ? In a similar environment, I edit `hostname`.submit.mc and define a MAIL_HUB there: define(`MAIL_HUB', `smtp.my.net') Should work after make install and restart. Good luck! Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de