Jason W. Allen wrote:
Hello all,
I'm very new to Linux and am trying to build a mailserver. So far I have
been very successful. I have Debian, Postfix, MySQL, Maildrop, AMaViS and
SpamAssassin. I have been successful in getting maildrop to work with my
virtual users (recompiling it etc ...great fun). The problem I'm running
into is using makedirmail in the /etc/maildroprc.
So far I am just testing, but this is what I'm doing.
/etc/maildroprc
logfile "/var/log/maildrop.log"
log""
RECIPIENT=$2
USER=$3
DOMAIN=$4
BASE=/var/mail
USERDIR=$BASE/$DOMAIN/$USER
'test -d "$USERDIR/.spam"'
if ($RETURNCODE != 0)
{
'maildirmake "$USERDIR/.spam"'
}
Maildrop is processing this file, and it is logging (I put some test stuff
into it earlier). But it is not making the .spam directory. I tried to put
different loggings in the if statement, and got stuff. It didn't act like I
expected it to though. It doesn't seem to be populating $RETURNCODE. Or
test isn't working. Like I said, I'm very new to Linux, so I may not be
using this right. The only thing I have to go on are other published
maildroprc files, that have this type of process.
Thanks in advance for all you help.
The shell command should be surrounded by backticks like ` instead of
single quotes like '. Try that.
Jay