All,
I would like to use fetchmail + procmail + spamassassin in odre to tag all incoming spams on my server for all users.
Content of my /etc/fecthmailrc
Code:
[root@localhost etc]# more fetchmailrc
poll mail.zzzz.com
user "xxxxx"
pass "yyyyyy"
is vincent
poll pop.aaaa.net
user "bbbbb"
pass "fffff"
is vincent
the mail is correctly retrieved from the various ISP and is correcty written in /var/spool/mail/vincent.
This seems OK.
Content of /etc/procmailrc
Code:
[root@localhost etc]# more procmailrc
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| /usr/bin/spamc
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e '1s/^/F/'
}
Code of /etc/mail/spamassassin/local.cf
Code:
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
###########################################################################
#
rewrite_subject 1
report_safe 1
# trusted_networks 212.17.35.
auto_whitelist_path /var/spool/spamassassin/auto-whitelist
auto_whitelist_file_mode 0666
required_hits 1.5
use_bayes 1
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
report_header 1
detailed_phrase_score 1
I would like to update the header of my email and set the Spam status to yet when needed. Unfortunately, it is not updated.
When I run
it detects well spams.
What do I have to do to effectively uppdate header of spam ???
Thanks in advance for your help,
Regards,
Vincent