Hi all,
Here's a technique to handle the issue without procmail or maildir. I am using qmail-local with flags to pass handling logic to specific .qmail-xxx files. This works without any issue from the user's perspective, though I am getting an error in the qmail log (see below). If anyone can help with that, I'd appreciate it.
Notes:
1) I am using folders named ".Junk" rather than ".Spam"
2) I have only tried this on a per-user basis so far... not sure if it would work for an entire domain
3) Be sure ownershiop and permissions are correct for the additional files (chmod 600 .qmail-*)
file: /var/qmail/.../user/
.qmail
----------
CODE
| if [ -z "$SA" ]; then export SA=1; /usr/local/psa/bin/psa-spamc -u user@domain.tld -U /tmp/spamd_full.sock -E > spamcheck$$; check=$?; if [ -s spamcheck$$ ]; then if [ $check = 1 ]; then /var/qmail/bin/qmail-local "$USER" "$HOME" "$LOCAL" "-" "junk" "$HOST" "$SENDER" "$DEFAULT" < spamcheck$$; else /var/qmail/bin/qmail-local "$USER" "$HOME" "$LOCAL" "-" "clean" "$HOST" "$SENDER" "$DEFAULT" < spamcheck$$; fi; retval=$?; rm -f spamcheck$$; [ $retval = 0 ] && exit 99; exit $retval; fi; rm -f spamcheck$$; fi # REJECT UCE
| true
./Maildir/
file: /var/qmail/.../user/
.qmail-clean
----------
CODE
./Maildir/
file: /var/qmail/.../user/
.qmail-junk
----------
CODE
./Maildir/.Junk/
Log error...
Sep 8 14:07:52 host qmail: 1157749672.885793 delivery 41: success:
Get_mailbox_size_error:_unable_to_get_size_of_subdir_in_mail_user_home_dir(please_report_about_to_development_group).//Get_mailbox_size_error:_unable_to_get_size_of_subdir_in_mail_user_home_dir(pleas
e_report_about_to_development_group).//did_1+0+0/did_0+0+1/
Cheers,
Corey