You need to have maildrop installed.

What I do is create a file in the user's directory called mailfilter.
Make sure it's chown 600.  Then in the same directory, I put a .qmail
file and call maildrop.  Like this.

|maildrop mailfilter


 

> -----Original Message-----
> From: Umar Draz [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 27, 2005 8:21 AM
> To: vchkpw@inter7.com
> Subject: RE: [vchkpw] vpopmail and spam folder
> 
> hi Charles
> 
>   thanks for your reply 
> 
> 
>  `test -d ./Maildir/.SPAM`
>    if( $RETURNCODE == 1 )
>    {
>    `/var/qmail/bin/maildirmake ./Maildir/.SPAM; chown -R 
> vpopmail.vchkpw ./Maildir/.SPAM`
> 
> where i put this script and how it will automatically run 
> whenever is add a new user?
> 
> Regards,
> 
> Umar Draz
> 
> 
> 
> 
> 
> "Charles J. Boening" <[EMAIL PROTECTED]> wrote:
> 
>       Here's the way I do it using maildrop. This is called 
> from a .qmail
>       file in the user's directory.
>       
>       An alternative way would be to write a little wrapper 
> script around
>       vadduser. Have it add the user then retrieve the 
> directory and then
>       make the spam folder.
>       
>       I'm also using simscan to run spamassassin against all incoming
>       messages.
>       
>       Here is the specific chunk that tests for and creates a 
> .SPAM directory
>       if it doesn't exist.
>       
>       `test -d ./Maildir/.SPAM`
>       if( $RETURNCODE == 1 )
>       {
>       `/var/qmail/bin/maildirmake ./Maildir/.SPAM;chown -R 
> vpopmail.vchkpw
>       ./Maildir/.SPAM`
>       }
>       to "./Maildir/.SPAM/"
>       
>       
>       
>       
>       
>       import EXT
>       import HOST
>       import HOME
>       MAX = 99
>       
>       if ($SIZE < 262144)
>       {
>       xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
>       }
>       
>       if ((/^X-Spam-Status: Yes, hits=![0-9]+\.[0-9]+!.*/:h 
> && $MATCH2 >
>       $MAX))
>       {
>       exit
>       }
>       
>       if ((/^X-Spam-Flag:.*YES/))
>       {
>       `test -d ./Maildir/.SPAM`
>       if( $RETURNCODE == 1 )
>       {
>       `/var/qmail/bin/maildirmake ./Maildir/.SPAM;chown -R 
> vpopmail.vchkpw
>       ./Maildir/.SPAM`
>       }
>       to "./Maildir/.SPAM/"
>       }
>       
>       to "./Maildir/"
>       
>       
>       
>       
>       
>       
>       
>       
>       
>       
>       
>       
>       
>       > -----Original Message-----
>       > From: Umar Draz [mailto:[EMAIL PROTECTED] 
>       > Sent: Tuesday, December 27, 2005 12:32 AM
>       > To: vchkpw@inter7.com
>       > Subject: [vchkpw] vpopmail and spam folder
>       > 
>       > Hi Dear Members!
>       > 
>       > I want whenever i create a user through vpopmail Spam 
>       > folder also created with Drafts, Sent, Trash folders
>       > 
>       > is it possbile in vpopmail ?
>       > 
>       > Regards,
>       > 
>       > Umar Draz
>       > 
>       > 
>       > ________________________________
>       > 
>       > Yahoo! DSL 
>       > > /promo.yahoo.com/broadband/> Something to write home about. 
>       > Just $16.99/mo. or less
>       > 
>       
> 
> 
> ________________________________
> 
> Yahoo! for Good - Make a difference this year. 
> <http://us.rd.yahoo.com/mail_us/taglines/charity/*http://brand
> .yahoo.com/cybergivingweek2005/>  
> 

Reply via email to