2 messages in net.sourceforge.lists.courier-maildropRE: [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:RE: [maildropl] maildroprc help neededActions...
From:Rob Hutton (rob.@comcast.net)
Date:Aug 28, 2003 10:07:47 am
List:net.sourceforge.lists.courier-maildrop

OK, start the flames. Yes, the quotes are backwards. Thanks, here is the corrected script:

`if [ ! -d "$HOME/$DEFAULT" ]; then \ if [ ${DEFAULT:0:1} = "/" ]; then \ maildirmake "$DEFAULT"; \ else \ maildirmake "$HOME$DEFAULT"; \ fi \ fi`

`chmod g+rwx "$HOME$DEFAULT"`

`if [ -n $MAILDIRQUOTA ]; then \ if [ ${DEFAULT:0:1} = "/" ]; then \ maildirmake -q MAILDIRQUOTA "$DEFAULT"; \ else \ maildirmake -q $MAILDIRQUOTA "$HOME$DEFAULT"; \ fi \ fi`

I would recommend that it be added to the docs under a section called automaticly

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Rob Hutton Sent: Thursday, August 28, 2003 10:10 AM To: cour@lists.sourceforge.net Subject: [maildropl] maildroprc help needed

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?