From owner-freebsd-questions Mon Oct 11 19:30:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from freebsd1.firestorm2000.com (freebsd1.firestorm2000.com [204.141.99.101]) by hub.freebsd.org (Postfix) with ESMTP id 6AFE714FF5 for ; Mon, 11 Oct 1999 19:30:13 -0700 (PDT) (envelope-from danm@freebsd1.firestorm2000.com) Received: from localhost (danm@localhost) by freebsd1.firestorm2000.com (8.9.3/8.9.3) with ESMTP id WAA42049 for ; Mon, 11 Oct 1999 22:30:33 -0400 (EDT) (envelope-from danm@freebsd1.firestorm2000.com) Date: Mon, 11 Oct 1999 22:30:33 -0400 (EDT) From: Nobody Special To: questions@freebsd.org Subject: Procmail as local mailer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Okay, I'm going to be adding a LOT of users really soon, such that no single partition I have can handle all the mail these users could accumulate, and to this end I wanted to put mailboxes in the user homedirs. I tried first doing this through simple symlinks, but sendmail reorts invalid format, so after a bit of reading I discovered that having procmail as a local mailer enables it. I compiled and installed (making the necessary changes to authenticate.c), and had a few problems that were corrected with the enclosed /usr/local/etc/procmailrc My problem is this:According to ALL the documentation, it's okay to create symlinks in /var/mail so that things like pine function right without recompilation. So why is procmail still renaming the symlinks to bogus.Whatever, if it's set to deliver to the homedirs? This is my /usr/local/etc/procmailrc: LOGFILE=/var/log/procmail MAILDIR=/.mail DEFAULT=$HOME/.mail This is the relevant section of sendmail.cf: Mlocal, P=/usr/local/bin/procmail, F=SAw5:/|@glDFMPhsfn, S=10/30, R=20/40, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u Mprog, P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/, T=X-Unix, A=sh -c $u ######################*****############## ### PROCMAIL Mailer specification ### ##################*****################## ##### @(#)procmail.m4 8.11 (Berkeley) 5/19/1998 ##### Mprocmail, P=/usr/local/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, T=DNS/RFC822/X-Unix, A=procmail -Y -m $h $f $u And this is a (retyped) version of procmail -v Locking strategies: dotlocking, fcntl(), lockf() Your system mailbox: /root/.mail Default rcfile: $home/.procmailrc If anyone can tell me why procmail is being uncooperative here, or what other files I should include, let me know. Help much appreciated. -Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message