Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2000 18:52:48 +0200
From:      Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To:        Spork Admin <admin@spork.spods.co.uk>
Cc:        questions@FreeBSD.ORG
Subject:   Re: mail.local
Message-ID:  <20000724185248.A15078@curry.mchp.siemens.de>
In-Reply-To: <Pine.BSF.4.21.0007241326340.5051-100000@spork.spods.co.uk>; from admin@spork.spods.co.uk on Mon, Jul 24, 2000 at 01:28:47PM %2B0100
References:  <NEBBKKFCGLCOKOEIADGKEEOICAAA.keramida@ceid.upatras.gr> <Pine.BSF.4.21.0007241326340.5051-100000@spork.spods.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24-Jul-2000 at 13:28:47 +0100, Spork Admin wrote:
> On Mon, 24 Jul 2000, Giorgos Keramidas wrote:
> 
> > > 
> > > Can anyone tell me what calls mail.local at bootup time?  I'm using
> > > FreeBSD 4.1-RC and wish to change the local mailer for procmail.
> > > It won't let me touch mail.local, I can only assume because it is in use.
> > 
> > mail.local is called by the `local' mailer of sendmail.
> > you can recofigure your sendmail to use procmail instead of mail.local
> > for the local delivery agent.
> > 
> > see the following features of sendmail's master-config file:
> > 
> > 	FEATURE(local_procmail)
> > 	MAILER(procmail)
> > 
> > > Also, can anyone suggest if I should simply mv mail.local, and symlink it
> > > to procmail, or should I actually change whatever it is that calls
> > > mail.local at bootup.
> > 
> > no need to mess with things like that.
> > you can simple reconfigure your sendmail
> > to use procmail as the local delivery agent.
> > 
> 
> OK, I think it's now using procmail sucessfully.
> 
> My reason for chaning over to procmail is to get the mail spool files to
> locate themselves in the users home directories i.e. $HOME/.mail, however,
> again, following the procmail docs has led me nowhere.  Can anyone suggest
> a method for doing this under BSD?

I use:
(beware, there are other things as well in the patch but you will get the idea)

--- src/authenticate.c.orig	Mon Apr 28 02:27:45 1997
+++ src/authenticate.c	Fri Nov 12 08:36:33 1999
@@ -41,7 +41,7 @@
 #ifndef MAILSPOOLHASH
 #define MAILSPOOLHASH	0      /* 2 would deliver to /var/spool/mail/b/a/bar */
 #endif
-/*#define MAILSPOOLHOME "/.mail"		      /* watch the leading / */
+#define MAILSPOOLHOME "/.mail"		      /* watch the leading / */
 						  /* delivers to $HOME/.mail */
 #define STRLEN(x)	(sizeof(x)-1)
 
--- config.h.orig	Fri Nov 12 08:36:33 1999
+++ config.h	Fri Nov 12 08:36:33 1999
@@ -32,7 +32,7 @@
  */
 #define PRESTENV	{"IFS","ENV","PWD",DEFPATH,0}
 
-/*#define GROUP_PER_USER			/* uncomment this if each
+#define GROUP_PER_USER			/* uncomment this if each
 						   user has his or her own
 	group and procmail can therefore trust a $HOME/.procmailrc that
 	is group writable or contained in a group writable home directory
--- src/autoconf.orig	Wed Jan 20 18:58:20 1999
+++ src/autoconf	Fri Nov 12 08:36:33 1999
@@ -832,6 +832,7 @@
 else
   echo "#define NO_COMSAT" >>$ACONF
 fi
+echo "#define NO_COMSAT" >>$ACONF
 
 $RM _autotst.$O
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000724185248.A15078>