On 17/May/10 17:45, Oscar Foley wrote:
> An this in the logs
> [...]
> May  1 18:50:23 foo.net <http://foo.net> postfix/pipe[14644]:
> 8A9E9DC23F: to=<[email protected] <mailto:[email protected]>>, relay=spamassassin,
> delay=3.8, delays=0.55/0.02/0/3.2, dsn=2.0.0, status=sent (delivered via
> spamassassin service)

Is this where the server filters through SA?

> My config files:
> http://lar3d.net/maildroprc (maildroprc)

I've read

   if ( $SIZE < 26144 )
   {
       exception {
          xfilter "/usr/bin/spamassassin"
       }
   }

   if (/^X-Spam-Flag: *YES/)
   {
       exception {
           to "$HOME/$DEFAULT/.SPAM/"
       }
   }
   else
   {
       exception {
           to "$HOME/$DEFAULT"
       }
   }

Two questions:
1. Do you filter through SA from maildrop?
2. Have you checked the values of $HOME and $DEFAULT?

> If I change master.cf <http://master.cf> line (as suggested here)
>
> maildrop unix - n n - - pipe
>   flags=DRhu user=vmail argv=/usr/lib/courier/bin/maildrop -d ${recipient}
>
> with
>
> maildrop unix - n n - - pipe
>   flags=DRhu user=vmail argv=/usr/lib/courier/bin/maildrop -d vmail
> ${recipient}

Seems correct. Please check maildrop syntax
http://www.courier-mta.org/maildrop.html

Running maildrop manually with increased verbosity or under strace may 
reveal what fails.

> I get the email in /home/vmail/MailDir instead of the correct dir
> (/home/vmail/foo.net/info/.SPAM <http://foo.net/info/.SPAM> )

You mean /home/vmail/Maildir and /home/vmail/Maildir/.SPAM, don't you?

Have you checked the target directory (permissions, subdirectories)?

-- 

------------------------------------------------------------------------------

_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to