3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Autocreate Direct...
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:Re: [courier-users] Autocreate Directories with Maildrop and PostfixActions...
From:Jay Lee (jl@pbu.edu)
Date:Sep 22, 2005 12:19:39 pm
List:net.sourceforge.lists.courier-users

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