Hi and sorry for the late reply...
Quoting Collin Park <collin(_at_)cup(_dot_)hp(_dot_)com>:
Cos the last time I tried, if the receipent doesn't have a
Maildir in
his home directory and I specified DEFAULT=$MAILDIR/Maildir/ ,
procmail
will auto create the above directory structures for the user.
But if I
Really? If you say
$ echo -e 'MAILDIR=$HOME\nDEFAULT=$MAILDIR/Maildir/' >
.procmailrc
$ rm -rf $HOME/Maildir
$ cat > .forward
"|IFS=' '&&exec /usr/bin/procmail -f-||exit 75"
^D
$ echo hello | mailx -s test $LOGNAME
then procmail will create $HOME/Maildir/new/ and put the new
message
there?
yeap ...
originally, I have an empty home directory :-
server:$ ls -la
total 8
drwx--x--- 2 temp temp 4096 Aug 20 17:20 .
drwxr-x--x 5 root root 4096 Aug 16 23:30 ..
server:$
and I have the following in my /etc/procmailrc :-
MAILDIR=$HOME
DEFAULT=$MAILDIR/Maildir/
and when I send an email to "temp" :-
server:$ ls -lR
.:
total 4
drwx------ 5 temp temp 4096 Aug 20 17:22 Maildir
Maildir:
total 12
drwx------ 2 temp temp 4096 Aug 20 17:22 cur
drwx------ 2 temp temp 4096 Aug 20 17:22 new
drwx------ 2 temp temp 4096 Aug 20 17:22 tmp
Maildir/cur:
total 0
Maildir/new:
total 4
-rw------- 1 temp temp 917 Aug 20 17:22 _A2E.VO6n5.abc
Maildir/tmp:
total 0
The entire directory structure gets created automagically.
were to specify DEFAULT=$MAILDIR/Maildir/new/. , and if the
directory
doesn't exist, it will bounce back the email to the sender.
This is how it usually works for me; the directory must exist
first.
What exactly is in your .procmailrc? Is it just those two lines,
setting $MAILDIR and $DEFAULT ? Do you INCLUDERC= anything?
Nope... nothing else... I purposely created a /etc/procmailrc with ONLY
the two lines to absolve other possible settings that might cause me
problems.
HTH!
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail