procmail
[Top] [All Lists]

Re: HELP! can't change mail spool directory

2001-08-28 23:29:28
"Michael Bartlett" <michael_jw_bartlett(_at_)hotmail(_dot_)com> writes:
the system is used for nonrepudiation of email and so all mails coming
through exim are pushed out via procmail. the configuration i walked
into has a /usr/local/etc/procmailrc which gives a global filter to all
mails accounts. this is procmail v3.13.1.

You should upgrade to v3.15.2


i've just upped it to the latest release and found that the
/urs/local/etc/procmailrc has no effect on all mails. at the moment i'm
using a .procmailrc in a home directory - but i would also like to solve
this problem as well!

The FreeBSD ports collection applies a couple patches to the procmail
config.h, one of which changes the location of the global procmailrc from
/etc/procmailrc to /usr/local/etc/procmailrc.  You should probably upgrade
procmail via the ports collection as they've tuned the installation to
match the system.  For info on the ports collection (in case you don't
already know what it is), check www.freebsd.org

If you can't or don't want to use the ports collection, edit the
config.h file: look for the #define for ETCRC.


anyway. on to the main problem...
the exim configuration has been using the standard unix mailbox store
mechanism which is not very efficient for this particular
implementation. i've rebuilt exim with support for maildir and pointed
it at /var/mailbox as opposed to /var/mail

now in autoconf.h i changed the define MAILSPOOLDIR to reflect:

define MAILSPOOLDIR "/var/mailbox/"

Well, that won't change the default format of the mailspool to maildir,
but it should have at least changed the spool directory.  Did you re-run
make after changing the autoconf.h file?  It should have recompiled
*all* the .c files.


but it keeps assigning /var/mail as the delivery point!
i cannot find ANYTHING, ANYWHERE to reflect this!

What does "procmail -v" show as your mailspool?  If it shows the correct
path there but delivery goes to the wrong place, then the error is in
an rcfile.  Otherwise, you are either running the wrong procmail binary
or you didn't actually change the compiled in location.

Hmm.  By default, procmail will install into /usr/bin, while the old
binary is almost certainly in /usr/local/bin.  The BASENAME variable at
the top of the Makefile controls where procmail is installed.


...
now all the mails sent using this system are from local users to local
users via SMTP and collected via POP3. when exim receives a mail, it
does not write it to disc, it pipes it through procmail - which writes
it to disc in /var/mail. or is this understanding wrong?

You are correct.


please. if you could help with:
a) the global /usr/local/etc/procmailrc problem
b) the /var/mailbox thing
c) anything more i need to use the maildir format

I think we've covered (a) and (b) above.  Regarding (c), do you want
mailspools to be in maildir format by default?  If so, then you *must*
upgrade to at least v3.15 (just go to v3.15.2) and then add the following
to your autoconf.h, next to the MAILSPOOLDIR #define:

#define MAILSPOOLSUFFIX "/"


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>