3 messages in net.sourceforge.lists.courier-users[courier-users] Autocreate Directorie...
FromSent OnAttachments
Jason W. AllenSep 22, 2005 11:53 am 
Jay LeeSep 22, 2005 12:19 pm 
Jason W. AllenSep 22, 2005 12:27 pm 
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:[courier-users] Autocreate Directories with Maildrop and PostfixActions...
From:Jason W. Allen (jal@mpgis.net)
Date:Sep 22, 2005 11:53:35 am
List:net.sourceforge.lists.courier-users

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.