No, because spamc does not has this option. spamc reads the user preferences from the homedir of the user. This should work in 2.2.16 for all users except of the administrators of the website.
Hi Till, So where is this pref file that will be used automatically, do i have to tweak it myself or will the preferences in ISPConfig (remove/mark as SPAM) be read...? At the moment, as i said it seems like all the users get all their spam delivered... Thanx again Sascha
hm... i have /srv/www/web41/user/web41_user/.spamassassin/user_prefs or /srv/www/web41/user/web41_user/user_prefs neither of them changes when i change the settings through ispconfig following is in both files, both commented out # rewrite_header Subject ***SPAM*** allthough in ispconfig i have chosen to remove spam ! The story continues
ok, ok...i found out they're both changed when i change the spamhits-level from 5 to e.g. 4 so i guess the config files are written ok... but where is the spam-strategy written in? i cannot find it in those files Thanx Sascha
ok...i found something in the spamassassin.rc file of the user saying: :0: * ^X-Spam-Status: Yes /dev/null But nevertheless...spam is sent normally to the user...
And i have this in /var/log/mail.err Sep 12 13:20:02 whitespace spamd[5588]: Day '0' out of range 1..31 at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Util.pm line 445 the line in question is: my $time; eval { # could croak $time = timegm($ss, $mm, $hh, $dd, $mmm-1, $yyyy); Sascha
I found something out now: If i choose to "accept" Spam-Mails in ISPConfig and let it rewrite the Subject, the Spam-Mail is perfectly marked as "***SPAM***". But it doesnt delete Spam-messages if i choose "delete" as my Spam-Strategy in ISPConfig instead. It simply just sends them to the user then. What can be wrong here ? We are really in need of help, because our users are flooded with Spam right now... Any idea ? Many thanx again in advance, you're doing an awsome job !!! Sascha
Please post the complete content of the spamassassin.rc file of a user, where the deletion of spam does not work.
here you go (i removed all the remarks) : :0fw * < 256000 | /usr/bin/spamc :0: * ^X-Spam-Status: Yes /dev/null :0 * ^^rom[ ] { LOG="*** Dropped F off From_ header! Fixing up. " :0 fhw | sed -e '1s/^/F/' } And again....great to know you want to help us !!!
Please check if the messages that come through have a header line: X-Spam-Status: Yes If not, you might have to change your spamassassin configuration file so that spamassassin sets the headers correctly when a message is spam.
that was a good hint... seems like the mail passing through have 4-5 points, and the required is 5 ! Strange though, because the mail looked like the most spam a spammail can look like.... well... I will try to set it to 4... or do you have another idea....actually before changing to spamd 5 seemed a good choice...maybe i would to train spamd a bit ? Thanx Sascha
You should consider to install razor, pyzor and DCC on your server. Spamd will use them automatically after a restart.
razor was easy.... smart install razor and everything was good pyzor & dcc are a bit more of a challenge ;-) i will probably get pyzor to run...but can you even tell me where to FIND dcc ? thank you ! Sascha
DCC: http://www.rhyolite.com/anti-spam/dcc/ Debian has a dcc pacakge and I gues some other distributions will have pacakges too. If not, you might have to get the software from the dcc site.
all three are installed now... i restarted spamd and hoped it would better things a bit out... but it really doesnt seem to.... perfect spam mails get a 3.5 or a 4....that wasnt the case before switching to spamd. Do i have to configure spamd, razor, pyzor or dcc ? Do i have to run razor, pyzor or dcc somehow (or are they just started by spamd, wich of course is running) I am a bit stuck....i didn't expect it to be this hard :-( switch to clamd was so easy... Well...i will stop whining and hope Till or someone else again will point me to the right direction. Sascha
hm... The problem still persists. spamc -L spam /folder/to/a/lot/of/spam/* doesnt seem to do anything. sa-learn --spam /folder/to/a/lot/of/spam/* is running now, and obviously doing something. But will that also result in spamd learning, or does that command only work for the perl-spamassassin script ? Or am i totally thinking in the wrong direction ? Thanx Sascha
I have this pretty often in my mail.err: spamd[4739]: Day '50' out of range 1..28 at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Util.pm line 445 sometimes i can see this also: spamc[21381]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#1 of 3): Connection refused But i guess the second one is not too much of importance. what do think...does sa-learn have an impact on spamd or does it only work with spamassassin...? I now have an sa-learn script which i run through cron every 20 minutes.... the hope is that it HAS an impact on spamd.... Thanx Sascha