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