From owner-freebsd-questions@FreeBSD.ORG Tue Mar 20 18:04:50 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 5AFA216A40B for ; Tue, 20 Mar 2007 18:04:50 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 1443013C45D for ; Tue, 20 Mar 2007 18:04:49 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: by an-out-0708.google.com with SMTP id c24so1701490ana for ; Tue, 20 Mar 2007 11:04:49 -0700 (PDT) Received: by 10.100.107.2 with SMTP id f2mr5387102anc.1174413889132; Tue, 20 Mar 2007 11:04:49 -0700 (PDT) Received: from ?192.168.0.4? ( [67.189.184.224]) by mx.google.com with ESMTP id c29sm1891790anc.2007.03.20.11.04.48; Tue, 20 Mar 2007 11:04:48 -0700 (PDT) Date: Tue, 20 Mar 2007 14:04:57 -0400 To: User Questions Organization: Seibercom.net In-Reply-To: References: X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20070320135313.6349.GERARD-SEIBERT@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.30.04 [en] From: Gerard Subject: Re: Sendmail ignores SmartHost directive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: User Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2007 18:04:50 -0000 On Tuesday March 20, 2007 at 01:32:57 (PM) Vincent Bolinard wrote: > 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 ? I dont use sendmail myself, but the smart host feature refers to the SMTP of your service provider. Something like: "smtp.my-isp.com" sans quotes. I am not sure if you can use the numeric address or not. In any case, it would not be the one you have shown anyway. After configuring it, type: "make all install restart" if it is running or replace 'restart' with 'start' if it is not. Make sure you have to have sendmail properly activated in the /etc/rc.conf file. Check out: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html -- Gerard