procmail
[Top] [All Lists]

Re: Procmail and Maildir/

2000-08-22 22:47:45
Chen Shiyuan <csy(_at_)hjc(_dot_)edu(_dot_)sg> writes:
Quoting Gjermund Sorseth <gjermund(_at_)nextra(_dot_)com>:

  >   Thanks for the idea. I put in the following into my
/etc/procmailrc :-
  >
  >   DROPPRIVS = yes
  >
  >   :0 W
  >   | /usr/bin/maildir create $HOME/Maildir; /usr/bin/maildir
deliver $HOME/Mail
  >
  >   EXITCODE=$?
  >   HOST
  >
  >   And when I tried to send an email to the user, I get :-
  >
  >   554 5.3.0 <user(_at_)server(_dot_)domain>... unknown mailer error 1
  >
  >   It seems that the create ignored and the Maildir does not
  >   created in the user home directory.


What happens when you run procmail in delivery mode from the
command line?

   # procmail -d username

Errmm.... :-

server:~# procmail -d temp
Hello!
(i pressed Ctrl-D)
server:~#

no errors noted but "Hello!" is not sent to temp/Maildir/new . However, 
if I were to remove away the above lines and let procmail do it's own 
delivering, temp/Maildir/{cur|new|tmp} get's created and "Hello!" get's 
thrown into temp/Maildir/new .

Well, you could always try turning on logging and see what that shows,
no?  Put
     LOGFILE = /tmp/procmail.log
     VERBOSE = on

at the top of the /etc/procmailrc file then give it a shot and see what
shows up in /tmp/procmail.log.

<pause>

Hmm, putting SHELL=/bin/sh at the top of the /etc/procmailrc file may be
the ultimate solution, but you should know how to enable logging when
trying to track down a problem.


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>