From owner-freebsd-questions@FreeBSD.ORG Mon Nov 9 03:03:57 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0358106566C for ; Mon, 9 Nov 2009 03:03:57 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 99DCF8FC1C for ; Mon, 9 Nov 2009 03:03:57 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id nA933faH092451; Sun, 8 Nov 2009 20:03:41 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id nA933fUR092448; Sun, 8 Nov 2009 20:03:41 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 8 Nov 2009 20:03:41 -0700 (MST) From: Warren Block To: Olivier Nicole In-Reply-To: <200911090225.nA92PxYp079632@banyan.cs.ait.ac.th> Message-ID: References: <200911090225.nA92PxYp079632@banyan.cs.ait.ac.th> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (wonkity.com [127.0.0.1]); Sun, 08 Nov 2009 20:03:41 -0700 (MST) Cc: questions@freebsd.org Subject: Re: How to configure sendmail 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: Mon, 09 Nov 2009 03:03:58 -0000 On Mon, 9 Nov 2009, Olivier Nicole wrote: >>> but the alias for user2 is not parsed >> >> newaliases(1) is needed after editing /etc/mail/aliases. And there is a >> bug if you're using 8.0: > > Yes I did newaliases and the version of sendmail is the default with > FreeBSD, that must be 8.14.3 I mean there is a bug with sendmail not always sending to aliases on FreeBSD 8.0-RC2: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/139870 >> Masquerade again. Not clear whether that's what you want. > > How to configure sendmail on a.domain.net so that: > > 1) users with an alias defined in /etc/mail/aliases have their > messages sent to the alias; > > 2) users with no alias have their mail sent to user@domain.net (same > username). > > It seems that masquerade does the part 2) but users in 1) are not sent > to the alias. Maybe a mail hub setup in addition to the aliases will do what you need. /usr/share/sendmail/cf/README has more information. -Warren Block * Rapid City, South Dakota USA