From owner-freebsd-questions@FreeBSD.ORG Thu Dec 25 21:09:41 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 A3CC016A4CE for ; Thu, 25 Dec 2003 21:09:41 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13BAD43D39 for ; Thu, 25 Dec 2003 21:09:36 -0800 (PST) (envelope-from ovirt@optusnet.com.au) Received: from predatorii (ppp136-230.lns1.adl2.internode.on.net [150.101.136.230])hBQ59Yp5017537 for ; Fri, 26 Dec 2003 15:39:34 +1030 (CST) Message-ID: <003c01c3cb6f$0f95f4c0$8464a8c0@ovirt.dyndns.ws> From: "W. Sierke" To: References: <008501c3cab7$6a014580$8464a8c0@ovirt.dyndns.ws> Date: Fri, 26 Dec 2003 15:43:46 +1030 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" 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: Re: 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: Fri, 26 Dec 2003 05:09:41 -0000 "W. Sierke" wrote: > I am attempting to configure sendmail to pass mail addressed to a particular > domain to maildrop. ... > 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. More guessing (as I'm still not clear on the specifics of what is failing)... Is sendmail running as user:smmsp when it's calling maildrop? That would explain why maildrop isn't able to change itself to user:vmail, no? Should setting the setuid bit circumvent this? When I try that I get: Dec 26 15:08:20 maildrop[93442]: You are not a trusted user. where I guess "You" = smmsp? If this is the case, then it must be a problem for any program run from /etc/mail/aliases, is this just too hard to do on a default FreeBSD? Still out of my depth here but learning a bit more. :) Wayne