From owner-freebsd-questions@FreeBSD.ORG Tue Mar 20 17:59:52 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 5A7C316A402 for ; Tue, 20 Mar 2007 17:59:52 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 4167913C48A for ; Tue, 20 Mar 2007 17:59:52 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay5.apple.com (a17-128-113-35.apple.com [17.128.113.35]) by mail-out3.apple.com (8.13.8/8.13.8) with ESMTP id l2KHxqxx023400; Tue, 20 Mar 2007 10:59:52 -0700 (PDT) Received: from relay5.apple.com (unknown [127.0.0.1]) by relay5.apple.com (Symantec Mail Security) with ESMTP id EAA6729C004; Tue, 20 Mar 2007 10:59:51 -0700 (PDT) X-AuditID: 11807123-9f852bb000000a66-fb-46002117c67c Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay5.apple.com (Apple SCV relay) with ESMTP id D83D730400C; Tue, 20 Mar 2007 10:59:51 -0700 (PDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 20 Mar 2007 10:59:51 -0700 To: Vincent Bolinard X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== 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 17:59:52 -0000 On Mar 20, 2007, at 10:32 AM, Vincent Bolinard wrote: > 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. Your smarthost entry isn't being ignored, but anything which can be delivered locally will take priority over that setting. You'll either need to remove localhost and so forth from class w (which sometimes involves hostnames in /etc/mail/local-host-names), or require sendmail to canonify unqualified usernames with a non- local hostname like "user@mail.domain.com". Look into the MASQUERADE_AS() feature, and possibly always_add_domain, allmasquerade, and/or masquerade_entire_domain. > 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. Barring anti-spam measures, MTAs don't care about whether the contents of an email are HTML. -- -Chuck