From owner-freebsd-questions@FreeBSD.ORG Wed Dec 24 23:15:03 2003 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 1ECCC16A4CE for ; Wed, 24 Dec 2003 23:15:03 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45CAD43D46 for ; Wed, 24 Dec 2003 23:15:01 -0800 (PST) (envelope-from ws@frogspawn.cjb.net) Received: from predatorii (ppp136-230.lns1.adl2.internode.on.net [150.101.136.230])hBP7EvcK013495 for ; Thu, 25 Dec 2003 17:44:58 +1030 (CST) Message-ID: <008501c3cab7$6a014580$8464a8c0@ovirt.dyndns.ws> From: "W. Sierke" To: Date: Thu, 25 Dec 2003 17:48:33 +1030 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.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Using maildrop from sendmail aliases file 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: Thu, 25 Dec 2003 07:15:03 -0000 I am attempting to configure sendmail to pass mail addressed to a particular domain to maildrop. maildrop is already installed and used with getmail to collect mail from a number of pop accounts. It has been installed as user:vmail group:vmail. This existing setup works fine. I've added the following to the sendmail configuration: in /etc/mail/virtusertable ... @second.domain.tld second-domain-tld and in /etc/mail/aliases ... second-domain-tld: "| /usr/local/bin/maildrop -d ws@first.domain.tld" It looks as though it's ready to work except for this in /var/log/maillog: ... Dec 25 17:05:19 maildrop[75657]: Cannot set my user or group id. Presumably this is because maildrop wants to set itself to run as user:vmail and the existing setup I have works as-is because getmail (which calls maildrop) is configured to run as user:vmail in /etc/crontab. Either I need to find a way to allow maildrop to change itself to user:vmail when called from sendmail (which I don't know how to achieve) or I need to change maildrop to run as (I'm guessing) user:root which if memory serves was something that was suggested to be avoided. What would be the best approach? Thanks, Wayne