There must be a way to add a rule in the Procmail rules that delivers locally AND forwards AND checks for Spam ...
I needed to do the same thing on my system, I use WINSCP to browse to /home/e-smith/files/users/***** where ***** is the user you wish to modify.In this folder you will find a .procmailrc file, edit this file using your preferred text editor, I use the one in WINSCP but avoid using Notepad in Windows as it can cause problems.
At the end of the file after all the processing recipes, you will see
# --------------------------
# all else goes to the inbox
# --------------------------
:0
$DEFAULT
Just before this insert the following recipe
# --------------------------
# all else copied to remote
# --------------------------
:0c
! user@domain.com
This will copy anything that has passed through your previous recipes (and would be delevered to your inbox) to be copied to the email address in the ! line.
There is an incredible amount you can do with procmail, for example you can set up rules to forward mail only if its from a specific email address:
# -------------------------------------------------------------------------
# All mail from root@domain.com is diverted to remote@home.net
# -------------------------------------------------------------------------
:0
* ^From:.*root@domain.com
! remote@home.net
You can add as many recipes as you need, but run tests after each change until you are confident with procmail.
The :0 line in simple terms means that if the message meets the condition it will process the last line in that recipe and be finished with. Adding a c to make :0c in simple terms processes the recipe and then moves a 'copy' to the next recipe. The * line is a condition line, if the condition is met then the following line is processed, if the condition is not met, then procmail moves on to the next recipe.
Hope this helps, Regards, Steve.
Note * = asterix