procmail
[Top] [All Lists]

Re: procmail as mda doen't work

2001-03-07 16:18:52
Djuhaeri Harapan <djuhaeri(_at_)nikhef(_dot_)nl> writes:
Some weeks ago i 'cried' for help but  i didn't get any response.
Hier once again  my cry for help, the problem is:

First off, looking at your previous message, remove the .PROCMAIL stuff
from your sendmail.mc/sendmail.cf -- it has nothing to do with using
procmail as the MDA.  You should instead use "FEATURE(local_procmail)"
in the .mc file.

DO THIS FIRST!  Until you stop using the .PROCMAIL stuff, nothing else
will help.


I have configured sendmail using procmail as mda (so far so goed), but no
recipient can get an email, because all incoming mails are delivered to root
(/var/spool/mail/root). I have done some experiment using the following
variable in the .procmailrc:

MAILDIR=/var/spool/mail
DEFAULT=$MAILDIR/$USERS
LOGABSTRACT=yes
LOGFILE=/var/spool/mqueue/procmaillog

MAILDIR has *nothing* to do with qmail's MAILDIR variable.  It is not the
name of the folder, but instead specifies a directory that the procmail
process should chdir into.  It is usually wrong to set MAILDIR in the
/etc/procmailrc file.  Secondly, the variable "USERS" is not normally set;
you probably meant to use the LOGNAME variable.

Both of those are described on the procmailrc(5) manpage.  You _did_
look at the manpage before posting, right?

In fact, if you look at the manpage you would probably find that the
default value of the DEFAULT and ORGMAIL variables is already
/var/spool/mail/$LOGNAME.  Removing the assignments to MAILDIR and
DEFAULT will probably help quite a bit.

If the default mailspool location, as shown in the output of
        procmail -v
isn't correct, then you should edit the src/authenticate.c file in the
procmail source tree, recompile and reinstall it.  ANYTHING ELSE WILL
BE IMCOMPLETE.


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>