From owner-freebsd-questions@FreeBSD.ORG Sun Apr 11 23:35:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D43E316A4CE for ; Sun, 11 Apr 2004 23:35:05 -0700 (PDT) Received: from lakermmtao06.cox.net (lakermmtao06.cox.net [68.230.240.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC3DD43D3F for ; Sun, 11 Apr 2004 23:35:04 -0700 (PDT) (envelope-from micheal@tsgincorporated.com) Received: from router.caverns.us.eu.org ([68.227.96.223]) by lakermmtao06.cox.netESMTP <20040412063503.ETKY21795.lakermmtao06.cox.net@router.caverns.us.eu.org>; Mon, 12 Apr 2004 02:35:03 -0400 Received: from dredster ([192.168.1.2])i3C6Z3FP034565; Mon, 12 Apr 2004 01:35:03 -0500 (CDT) (envelope-from micheal@tsgincorporated.com) Message-ID: <0a6101c42058$a460ba70$0201a8c0@dredster> From: "Micheal Patterson" To: "Noah" References: <20040411082916.M27359@enabled.com><20040411092938.GE70330@happy-idiot-talk.infracaninophile.co.uk> <20040411180039.M343@enabled.com> Date: Mon, 12 Apr 2004 01:37:32 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-questions@freebsd.org Subject: Re: mailman - partition virtual domain name? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 06:35:05 -0000 ----- Original Message ----- From: "Noah" Cc: Sent: Sunday, April 11, 2004 1:04 PM Subject: Re: mailman - partition virtual domain name? > On Sun, 11 Apr 2004 10:29:38 +0100, Matthew Seaman wrote > > On Sun, Apr 11, 2004 at 12:29:16AM -0800, Noah wrote: > > > mailman-2.1.4 > > > sendmail-8.12.11 > > > freeBSD-4.9-STABLE > > > > > > I am placing listnames in the /etc/mail/aliases file to have the forwarded to > > > mailman for processing. > > > > > > I running virtual hosts on a machine and I want to stop people from sending to > > > listname@domain1.com and only allow people to post to listname@domain2.com > > > > > > currently users can post to both listname@domain1.com and listname@domain2.com > > > > This is with sendmail? To make domain specific addresses, use > > virtusertable. virtusertable support is already included in the > > stock freebsd.mc/freebsd.cf configuration, so all you need to do is populate > > the /etc/mail/virtusertable file, and run 'make' to generate the .db > > file. See /usr/share/sendmail/cf/README for details of what to put > > into virtusertable. > > > > okay that makes sense and been trying to get this to work. > > after I make the appropriate entries to the virtualusers tables. sendmail is > not able to execute the mailman delivery program. > > entry in /etc/mail/virtualusers > > --- snip --- > > test2@domain1.com "|/usr/local/mailman/mail/mailman post test2" > > --- snip --- > > > > > and here is the error message > > --- snip --- > > Remote host said: 550 5.7.1 ... Cannot mail directly to > programs > > --- snip --- > > - noah > > For example: /etc/mail/aliases: employees: "|/usr/local/mailman/mail/mailman post employees" In virtusertable: employees@domain2.com employees employees@domain1.com unused Rebuild your table and when mail comes in for listname@domain1.com it will bounce with a user unknown unless you have an account named unused. :) -- Micheal Patterson Network Administration TSG Incorporated 405-917-0600