From owner-freebsd-ports@FreeBSD.ORG Sun Feb 1 19:33:32 2004 Return-Path: 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 8015316A4CE for ; Sun, 1 Feb 2004 19:33:32 -0800 (PST) Received: from mail.yellowspace.net (mail.yellowspace.net [80.190.200.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 533EA43D2D for ; Sun, 1 Feb 2004 19:33:30 -0800 (PST) (envelope-from lopez.on.the.lists@yellowspace.net) Received: from [192.168.1.201] ([217.80.228.64]) (AUTH: LOGIN lopez.on.the.lists@yellowspace.net) by mail.yellowspace.net with esmtp; Mon, 02 Feb 2004 04:33:28 +0100 Mime-Version: 1.0 (Apple Message framework v612) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <90359758-5530-11D8-87F4-003065D57494@yellowspace.net> Content-Transfer-Encoding: 7bit X-Image-Url: http://lorenzo.yellowspace.net/media/lo.jpg From: Lorenzo Perone Date: Mon, 2 Feb 2004 04:33:27 +0100 To: ports@FreeBSD.org X-Mailer: Apple Mail (2.612) Subject: /usr/ports/mail/courier 0.44.2 broken? uid: courier? mailnull? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 03:33:32 -0000 Hello, I "just" tried to portupgrade, more than one time, to the 0.44.2 port of courier, coming from a 0.42.0. After installation (tried via portupgrade and via make) the esmtpd daemon didn't work (imapd did, and so did mysql authorization, as well as webmail). when starting, I get a: courierfilter: /var/spool/courier/tmp/courierfilter.pid: Permission denied After starting, the log shows the following: Feb 2 03:21:41 mail courierd: Started ./courieresmtp, pid=81013, maxdels=40, maxhost=4, maxrcpt=100 Feb 2 03:21:41 mail courierd: Started ./courierdsn, pid=81015, maxdels=4, maxhost=1, maxrcpt=1 Feb 2 03:21:41 mail courierd: Started ./courieruucp, pid=81017, maxdels=4, maxhost=4, maxrcpt=16 Feb 2 03:21:41 mail courierd: queuelo=200, queuehi=400 Feb 2 03:21:41 mail courierd: Purging /var/spool/courier/msgq Feb 2 03:21:41 mail courierd: Purging /var/spool/courier/msgs Feb 2 03:21:41 mail courierd: Permission denied Feb 2 03:21:41 mail courierd: ABNORMAL TERMINATION, exit status: 1 the command /usr/local/etc/rc.d/courier.sh stop produces an Alarm when trying to shut down courierd, which I have to kill by hand. I tried re-installing several times, and making sure that the courier (uid 62) user is able to read / write in those files/dirs, but it didn't work out. Then I downgraded to 0.44.0, and while it all seemed to work at the beginning, I noticed that esmtpd was producing Permission denied: warnings as well, and also the courierfilter.pid file couldn't be written. So I had a further looked into the /var/spool/courier directory, and noticed that some dirs had (which was a new observation for me) the group 26, 'mailnull'. I think this is new since I installed courier 0.42.0 in november: -r-------- 1 mailnull mailnull 0 Feb 2 03:58 .noident drwxr-x--- 2 mailnull mailnull 512 Oct 5 18:36 allfilters/ drwxrwx--- 2 mailnull mailnull 512 Feb 2 04:10 authdaemon/ -rw-rw-rw- 1 courier courier 524288 Oct 17 00:09 couriersslcache drwxr-x--- 2 mailnull mailnull 512 Oct 5 18:36 filters/ drwxr-x--- 3 mailnull mailnull 512 Feb 2 04:07 msgq/ drwxr-x--- 9 mailnull mailnull 512 Feb 2 04:13 msgs/ -rw-rw-rw- 1 courier courier 0 Feb 2 00:09 sqwebmail.sock.lock -rw-rw-rw- 1 courier courier 6 Feb 2 03:23 sqwebmail.sock.pid drwxrwx--- 6 mailnull mailnull 512 Feb 2 04:10 tmp/ I invited courier to the group 'mailnull' in /etc/group, and now I have no warnings. Also, good thing that I made a backup of my /usr/local/etc/courier, because acceptmailfor and several other files were just OVERWRITTEN by the portupgrade! :( I hope that my information can be useful to fix the port; Which user is now actually used by courier? I am a little confused...! Please take the time to write a warning in case the uid has changed. Also, if You believe I have made any mistake when installing, please let me know. It was a long night... Thanx for Attention, Lorenzo