How do I get Spamassassin to delete mail instead of just tagging it as **SPAM**?

I checked SPAMDOPTIONS but there doesn't seem to be any options on what to do with the mail if its SPAM.  I'm on CentOS 5.  Config files are:

cat /etc/sysconfig/spamassassin
# Options to spamd
SPAMDOPTIONS="-d -c -m5 -H"


 cat /etc/mail/spamassassin/local.cf
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)

# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

#required_hits 5
#report_safe 0
#rewrite_header Subject [SPAM]

# dcc
use_dcc 1
dcc_path /usr/local/bin/dccproc

#pyzor
use_pyzor 1
pyzor_path /usr/bin/pyzor

#razor
use_razor2 1
razor_config /var/spool/amavisd/razor-agent.conf

#bayes
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 1


cat /var/spool/amavisd/razor-agent.conf
#
# Razor2 config file
#
# Autogenerated by Razor-Agents v2.84
# Mon Mar 24 09:34:58 2008
# Created with all default values
#
# see razor-agent.conf(5) man page
#

debuglevel             = 3
identity               = identity
ignorelist             = 0
listfile_catalogue     = servers.catalogue.lst
listfile_discovery     = servers.discovery.lst
listfile_nomination    = servers.nomination.lst
logfile                = razor-agent.log
logic_method           = 4
min_cf                 = ac
razordiscovery         = discovery.razor.cloudmark.com
rediscovery_wait       = 172800
report_headers         = 1
turn_off_discovery     = 0
use_engines            = 4,8
whitelist              = razor-whitelist
[root@sixers etc]# cat /var/spool/amavisd/razor-agent.conf
#
# Razor2 config file
#
# Autogenerated by Razor-Agents v2.84
# Mon Mar 24 09:34:58 2008
# Created with all default values
#
# see razor-agent.conf(5) man page
#

debuglevel             = 3
identity               = identity
ignorelist             = 0
listfile_catalogue     = servers.catalogue.lst
listfile_discovery     = servers.discovery.lst
listfile_nomination    = servers.nomination.lst
logfile                = razor-agent.log
logic_method           = 4
min_cf                 = ac
razordiscovery         = discovery.razor.cloudmark.com
rediscovery_wait       = 172800
report_headers         = 1
turn_off_discovery     = 0
use_engines            = 4,8
whitelist              = razor-whitelist




Thanks,
LVL 1
burnsj2Asked:
Who is Participating?
 
medveddCommented:
Spamassassin will not delete mail. You can use procmail to do it:

http://wiki.apache.org/spamassassin/DeletingAllMailsMarkedSpam
0
 
burnsj2Author Commented:
Thanks, I found out we are using amavis to do the mail deleting, but it needed to be configured to do so after a recent update.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.