From owner-freebsd-questions@FreeBSD.ORG Fri Nov 6 07:30:59 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 699431065672 for ; Fri, 6 Nov 2009 07:30:59 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 1908F8FC17 for ; Fri, 6 Nov 2009 07:30:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 1D19B3A3844 for ; Fri, 6 Nov 2009 14:30:57 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= subject:subject:from:from:message-id:date:date:received:received :received; s=selector1; t=1257492656; x=1259307056; bh=Gc+UR/Mpz Tzcru13AM13+zqM9+jVz5ADonXiPCiwYDQ=; b=OaZ7koKnp+rqbxiadqpO/HqDz /KaMlRxhOF46RRA0jN6GKghoD63rLy/i5PGNdUArG8pQk+gB9OkyEGkdV/UntAVJ sivYLtfFgQFlBhAVFapoGJ3dBgExSLgMLyhi+1QIsUcXVNISDkIaRFHYoWG5CSBF fjg1leuXyGqu4i7OXU= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by localhost (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qqlpzzGSdfQB for ; Fri, 6 Nov 2009 14:30:56 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 7DAE03A382C for ; Fri, 6 Nov 2009 14:30:56 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.3/8.14.3/Submit) id nA67Uu2O037135; Fri, 6 Nov 2009 14:30:56 +0700 (ICT) (envelope-from on) Date: Fri, 6 Nov 2009 14:30:56 +0700 (ICT) Message-Id: <200911060730.nA67Uu2O037135@banyan.cs.ait.ac.th> From: Olivier Nicole To: questions@freebsd.org Cc: Subject: 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: Fri, 06 Nov 2009 07:30:59 -0000 Hi, I have this stupide little configuration that I cannot manage to get working. I have one machine a.domain.net that I want to be able to deliver system mail (like cron and so on) with the following rules: - user1 on a.domain.net has the same username as on domain.net; I want that mail sent to user1 is delivered to user1@domain.net; - user2 on a.domain.net has no corresponding user on domain.net, but it has an alias defined; I want to mail sent to user2 is delivered to the alias. - of course, mail addressed to a full address x@y.z should be delivered accordingly, eventually using a mail relay. I tried using masquerade in submit.mc, user1 is then rewritten as user1.domain.net, but the alias for user2 is not parsed and user2 is also rewritten as user2@domain.net. How can I solve my problem? TIA, Olivier