2 messages in net.sourceforge.lists.courier-maildrop[maildropl] maildroprc help needed
FromSent OnAttachments
Rob HuttonAug 28, 2003 7:12 am 
Rob HuttonAug 28, 2003 10:07 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] maildroprc help neededActions...
From:Rob Hutton (rob.@comcast.net)
Date:Aug 28, 2003 7:12:42 am
List:net.sourceforge.lists.courier-maildrop

I have the following maildroprc now:

logfile "/tmp/maildrop.log"

'if [ ! -d "$HOME/$DEFAULT" ]; then \ if [ ${DEFAULT:0:1} == "/" ]; then \ maildirmake "$DEFAULT" >> /tmp/maildrop.log; \ else \ maildirmake "$HOME$DEFAULT" >> /tmp/maildrop.log; \ fi \ fi'

'if [ -n $MAILDIRQUOTA ]; then \ if [ ${DEFAULT:0:1} == "/" ]; then \ maildirmake -q MAILDIRQUOTA "$DEFAULT" >> /tmp/maildrop.log; \ else \ maildirmake -q $MAILDIRQUOTA "$HOME$DEFAULT" /tmp/maildrop.log; \ fi \ fi'

When I try to deliver mail, I am getting the following message:

(temporary failure. Command output: maildrop: Changing to /var/spool/mail/virtual/domains/ Message start at 0 bytes, envelope sender=mail@domain.com Tokenized logfile Tokenized string: "/tmp/maildrop.log" Tokenized ; Tokenized ; Tokenized string: 'if [ ! -d "$HOME/$DEFAULT" ]; then if [ ${DEFAULT:0:1} == "/" ]; then maildirmake "$DEFAULT" >> /tmp/maildrop.log; else maildirmake "$HOME$DEFAULT" >> /tmp/maildrop.log; fi fi' Tokenized ; Tokenized ; Tokenized string: 'if [ -n $MAILDIRQUOTA ]; then if [ ${DEFAULT:0:1} == "/" ]; then maildirmake -q MAILDIRQUOTA "$DEFAULT" >> /tmp/maildrop.log; else maildirmake -q $MAILDIRQUOTA "$HOME$DEFAULT" /tmp/maildrop.log; fi fi' Tokenized ; Tokenized eof /etc/maildrop/maildroprc(1): Opening logfile /tmp/maildrop.log maildrop: Attempting .mailfilter maildrop: Delivering to domain.com/mailadmin/ /usr/bin/maildrop: Unable to open mailbox. ) mail@domain.com

Is this telling me that it stops processing the file at line 1 because there are no other tokens following it? Do I need to have something like:

to $HOME$DEFAULT

at the end of the file for this to work?

Thanks, Rob