Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 1998 10:43:36 -0500
From:      Philip Guenther <guenther@gac.edu>
To:        "=?iso-8859-1?B?Sm9z6SBNYW51ZWwgTWVn7WFzIFPhbmNoZXo=?=" <jms@caja-granada.es>
Cc:        procmail@informatik.rwth-aachen.de, freebsd-questions@FreeBSD.ORG
Subject:   Re: Q: mail to homeuser 
Message-ID:  <199809301543.KAA19545@solen.gac.edu>
In-Reply-To: Your message of "Wed, 30 Sep 1998 15:09:01 %2B0200." <000501bdec73$7debee10$03698282@pc-sistemas-4.caja-granada.es> 

next in thread | previous in thread | raw e-mail | index | archive | help
"José Manuel Megías Sánchez" <jms@caja-granada.es> writes:
>    Hello, I'm trying to configure procmail to deliver mail to the homeuser.
>I have the generic file /usr/local/etc/procmailrc with the following
>context:
>    PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin
>    MAILDIR=$HOME
>
>    but the mail is still delivering to /var/mail. I use a pop3 client
>(qpopper) to read the mail. What do I need to include in my procmail
>configuration to delivery mail to the homeuser?.

Don't bother trying to do this from the procmailrc, as procmail does
some checking before then on the mailspool using the compiled in
location.  You should make sure you have the source for procmail
3.11pre7, then you'll need to change src/authenticate.c to tell
procmail to store the mail in the home directory.  You'll need to
decide what file in the home directory it should be stored in.  Let's
say you choose the file named ".mailspool".  You would then find the
line in src/authenticate.c that reads:

/*#define MAILSPOOLHOME "/.mail"                      /* watch the leading / */

A change it to instead say:

#define MAILSPOOLHOME "/.mailspool"		      /* watch the leading / */

The recompile and reinstall.


Philip Guenther

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?199809301543.KAA19545>