From owner-freebsd-questions Wed Jan 12 1:50:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id E024D15530 for ; Wed, 12 Jan 2000 01:50:11 -0800 (PST) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 128KPA-000AGr-00; Wed, 12 Jan 2000 11:49:28 +0200 Date: Wed, 12 Jan 2000 11:49:28 +0200 From: Neil Blakey-Milner To: Sergey Solyanik Cc: freebsd-questions@freebsd.org Subject: Re: qmail and virtual domains Message-ID: <20000112114928.A38953@mithrandr.moria.org> References: <200001120918.LAA99954@gw.tdgu.sumy.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200001120918.LAA99954@gw.tdgu.sumy.ua> Organization: Rhodes University Computer Users' Society X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed 2000-01-12 (11:18), Sergey Solyanik wrote: > Please, help me with simple steps how to route all mail for domain to perl > script. > > Keep in mind: qmail is occupied that FreeBSD box. > > smthng like this: > > /etc/mail/virtusertable: > @testdomain.com testrelay > > /etc/aliases: > testrelay: !/usr/local/stuff/perlie Add testdomain.com to /var/qmail/control/rcpthosts, and then put: testdomain.com: alias-testdomain in /var/qmail/control/virtualdomains. Then create /var/qmail/alias/.qmail-testdomain-default which should contain: "|/usr/local/stuff/perlie". Or something like that. No guarantees. Tried at your own risk. Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message