From owner-freebsd-ports Mon Jan 13 21:21:49 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE1F937B401 for ; Mon, 13 Jan 2003 21:21:47 -0800 (PST) Received: from pd6mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1940C43F43 for ; Mon, 13 Jan 2003 21:21:42 -0800 (PST) (envelope-from peter@ActiveInfo.ca) Disposition-notification-to: peter@ActiveInfo.ca Received: from pd2mr4so.prod.shaw.ca (pd2mr4so-ser.prod.shaw.ca [10.0.141.107]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H8O0081KUW5Z8@l-daemon> for ports@FreeBSD.org; Mon, 13 Jan 2003 22:21:41 -0700 (MST) Received: from pn2ml7so.prod.shaw.ca (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H8O00IJEUW51A@l-daemon> for ports@FreeBSD.org; Mon, 13 Jan 2003 22:21:41 -0700 (MST) Received: from STEALTH ([24.68.92.254]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with SMTP id <0H8O006VTUW4YP@l-daemon> for ports@FreeBSD.org; Mon, 13 Jan 2003 22:21:41 -0700 (MST) Date: Mon, 13 Jan 2003 21:21:11 -0800 From: Peter William Lount Subject: courierfilter.pid not found during Courier setup To: courier-users-request@lists.sourceforge.net, ports@FreeBSD.org Cc: Sam Varshavchik Message-id: <074801c2bb8c$c1085700$7001a8c0@STEALTH> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook Express 6.00.2800.1106 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, When I run the /usr/local/etc/rc.d/courier.sh startup script the following error occurs: /var/spool/courier/tmp/courierfilter.pid: Permission denied authdaemond courierd esmtpd imapd pop3d I've checked the ownership and permissions on the /var/spool/courier/tmp/ directory and it is owned by user courier with group courier with permissions 770. Is this correct? I've checked that /usr/local/bin/sendmail has the correct ownership and permissions. It is owned by root with group wheel, has permissions executable by all, and is setuid to run as root privilage. Is this correct? It seems that the "courierfilter.pid" file is not being created or is not found by "courierfilter.pid". Something is violating the permissions. If I simply run "courierfilter start" I get the same permission denied error message. Is there something wrong with the above permisison settings that is causing this? Note that many of the other pid and lock files are being created in the /var/spool/courier/tmp/ directory. Is there some simple configuration setting that I'm missing that would cause the "courierfilter.pid" to be not created? I've started looking trough the source code to see how the "pid" files are created. It seems that courierfilter.c function "start" calls "ll_daemon_start()" in file "../liblock/lockdaemon.c" which in turn calls funtion "ll_daemon_startl()" where an attempt to create the "courierfilter.pid" file is made. I'm guessing that this is where this fails with a permission denied. I've tried to run the "strace" command to confirm this but it doesn't seem to be providing enough info even with the "-v" strace option. Any help will be deeply appreciated as I've been attempting to get this "courier beastie" working for a long while now. All the best, Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message