LINUX.ORG.RU

как задать диру для хранения писам в procmail


0

0

вообщем имеется

# procmail -v
procmail v3.22 2001/09/10
    Copyright (c) 1990-2001, Stephen R. van den Berg    <srb@cuci.nl>
    Copyright (c) 1997-2001, Philip A. Guenther         <guenther@sendmail.com>

Submit questions/answers to the procmail-related mailinglist by sending to:
        <procmail-users@procmail.org>

And of course, subscription and information requests for this list to:
        <procmail-users-request@procmail.org>

Locking strategies:     dotlocking, fcntl(), lockf(), flock()
Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /root/.maildir/

Добавляю в /etc/procmailrc:

# cat /etc/procmailrc
# Use maildir-style mailbox in user's home directory
PATH=/bin:/usr/bin:/usr/bin
MAILDIR=/var/spool/mail/$LOGNAME     #you'd better make sure it exists
DEFAULT=/var/spool/mail/$LOGNAME   #completely optional
LOGFILE=/var/spool/mail/$LOGNAME   #recommended

Но он по прежнему пишет:

Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /root/.maildir/

Что делать?!

Заранее спасибо!!!
★★★★★

The usual cause when this happens is that you have
/var/spool/mail/$LOGNAME as the compiled-in value of ORGMAIL and are
trying to get mail into ~/Maildir/ by reassigning ORGMAIL or DEFAULT or
both in /etc/procmailrc.

But before procmail looks for /etc/procmailrc, much less reads it, it
does checks the accessibility of $ORGMAIL according to the compiled-in
value. Moreover, if the user invokes procmail in a way that skips
reading /etc/procmailrc, or tries to use lockfile's -ml or -mu switches,
everything will run according to the compiled-in value for ORGMAIL.

The solution is to edit src/authenticate.c and recompile procmail and
lockfile, including their man pages (or just recompile the whole suite).

qsloqs ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.