I have found a better solution to that patching the source. This
creates the directory on the first delivery if it does not exist. This
is better because no matter how the account is created my spam filter
can do its job.
Here is my script.
import EXT
import HOST
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
`test -d $VHOME/Maildir/.JunkMail`
if( $RETURNCODE = 1 )
{
`/usr/bin/maildirmake -f JunkMail $VHOME/Maildir`
}
if ( $SIZE < 262144 )
{
xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
if (/^X-Spam-Flag: *YES/)
{
to $VHOME/Maildir/.JunkMail
exit
}
else
{
to $VHOME/Maildir
exit
}
}
else
{
to $VHOME/Maildir
exit
}
Ross Davis
DataAnywhere.net
250-470-9192
ChaletsOnline.com is coming soon
Don't you deserve a vacation!
-----Original Message-----
From: Ross Davis - DataAnywhere.net [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 13, 2003 12:04 PM
To: [EMAIL PROTECTED]
Subject: [qmailadmin] Creating default directory structure
I modifified my vpopmail.c source to create extra directories for my
spamassassin junk mail to be stored in. The problem is when I add a
user using qmailadmin it does not create my extra directories. I
searched the source and must not be searching for the right thing.
Where would be the best place to put my code to build the directories I
need for maildrop?
I would like the directories to be build regardless of where the user
was created. The user could just be added into the mysql database,
added using qmailadmin or added using vadduser at the commandline.
Ross Davis
DataAnywhere.net
250-470-9192
ChaletsOnline.com is coming soon
Don't you deserve a vacation!