It really depends at which level you want to delete the spam:
At the mail client level, using Email client rules (like the ones available in Thunderbird) is easy: just set a rule that delete any email marked as SPAM in the subject.
At the user level, if mail is received automatically by the machine, you could set some cron job that periodically inspect the local mailbox and again delete mails marked as SPAM.
It's easy if your local store uses maildir
since each email is just a file, as opposed to the mbox
format which would require some more work since it's a single file.
Setting up maildir
for postfix is trivial.
At the server level, using Amavisd
will allow you to have more control over how mail is handled.
Amavisd
has threshold settings where you can define an evasive action depending on the spam score given by spamassassin.
For instance, anything above 15 points is put in quarantine and anything above 30 points is deleted.
There are some instructions for installing Amavisd on Ubuntu.
The point is, as far as I know, spamassassin
's job is to identify and give spam points to emails. How you want these to be handled is not up to spamassassin
but the other modules down the chain.