wacko,
I hope this helps a little, I have been doing more or less the same thing today and for me it went well.
I used the scripts and how-to's over at
http://sme.swerts-knudsen.dk/ (many thanks Jesper)
to install spamassasin and clamav/amavis.
The updates went fine for me after a reboot.
Normal mode allows interaction in the user-manager panel
Geek mode transfers "ownership & responsibility" of maintaining the .procmailrc file to the user or admin and the file is not overwritten during updates etc.
If you move back from geek to normal in user-manager I believe it overwrites the .procmailrc with the default script, ISTR that it says something like that in the user-manager.
I did have a little trouble when setting to both deliver locally and to a remote address, with the mail then not using procmail, but this was fixed using
./lat-procmail -c "*|enabled|no|some|normal"
The part of the .procmailrc file you show has two basic recipes
:0
* ^X-Spam-Status: Yes
! spam@domain.com
If spam status (determined by spamassassin level) is yes then the mail will go to remote address spam@domain.com
I use this rule to forward spam identified by spamassassin to a seperate user account on my system
! spam@[my domain]
for manual checking whilst I experiment with the spamassassin levels. Im using 'high' with no false positives yet.
The second recipe
#:0
#* ^X-Spam-Status: Yes
#$MAILDIR/;junkmail/
is disabled by use of the "#" at the start of the line. Removing the # in itself is not enough to activate the recipe though. If the condition is met in the first recipe i.e. the X-Spam-Status is yes then the first recipe sends it to spam@domain.com and that would stop procmail using any further recipes on the .procmailrc script.
If you want the spam to be sent remote to the remote address,that is what you will achieve with your script as it is. If you want it to move it to the ;junkmail folder of the user then change your recipes to
#:0
#* ^X-Spam-Status: Yes
#! spam@domain.com
ignores the first recipe
:0
* ^X-Spam-Status: Yes
$MAILDIR/;junkmail/
uses the second
If you want more than 1 recipe to be used, like I did today when I wanted to send non-spam mail to a remote address and deliver locally then put a 'c' after the :0 which in script terms generates a copy of your mail to be passed along to the next condition.
:0c
* ^X-Spam-Status: Yes
! spam@domain.com
:0
* ^X-Spam-Status: Yes
$MAILDIR/;junkmail/
This sends spam mail to a remote and to the local junkmail folder.
...
"rocmail: Skipped "
The missing 'P' at the start of the line, could be a clue.
Did you edit the .procmailrc in a DOS enviroment? This can cause problems with how DOS ends lines.
I used WinSCP to browse to the file and edit it, with no problems.
...
/dev/null
Sending your mail here is like lending your TV Tray to Homer Simpson - you are never gonna see it again - Just ask Ned Flanders
Regards
SteveB