Training spamassassin using sa-learn

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

e1kosau
Posts: 30
Joined: Fri Mar 03, 2006 3:52 am
Location: california SF

Postby e1kosau » Mon Mar 20, 2006 4:15 pm

the 550 error that you are getting means that spamass-milter is redirecting the emails back to the sender. Since the email is not a valid email account, I suggest you to discard or have it redirected to another email address (Scalix user called Spam or whatever) spam@localhost and then use this mailbox for sa-learn.

you can add options to you spamass-milter by adding the following flags/options

-B spam@localhost.localdomain -- the spam email will be sent to the original user plus a copy to the spam@localhost.localdomain

-b spam@localhost.localdomain - the spam email will only be sent to the original user

-r nn -- means to reject all emails with nn score. I had mine lowered to 7 instead of the 15 default value.

mephisto

Postby mephisto » Mon Mar 20, 2006 4:26 pm

e1kosau wrote:the 550 error that you are getting means that spamass-milter is redirecting the emails back to the sender.

I want to discard those mails, i.e. silently drop them, but spamass-milter only seems to support the "reject" method. This way a warning message is sent to the faked "From" adress in the spam.

e1kosau wrote:-b spam@localhost.localdomain - the spam email will only be sent to the original user
Shouldn't this say "will only be sent to the spam mailbox"?

e1kosau wrote:-r nn -- means to reject all emails with nn score. I had mine lowered to 7 instead of the 15 default value.
I actually raised this number to have less rejected messages and hence less error messages. I'm having spamassassin tag the messages based on user policies and a personal bayes store using MySQL as described in the spamassassin documentation. I'll think about sending the spam messages to a spambox user, but I'll have to check if autolearn will still work then.

Tobias
Posts: 57
Joined: Wed Aug 08, 2007 9:50 am

Postby Tobias » Mon Sep 10, 2007 3:23 am

Just want to say thank you. Great script. Was my point to go ahead this topic! Just customized it to my needs and everything works fine! GREAT!

tomster
Posts: 42
Joined: Mon Apr 23, 2007 8:15 am
Location: Munich

Postby tomster » Fri Nov 28, 2008 8:43 am

e1kosau wrote:-B spam@localhost.localdomain -- the spam email will be sent to the original user plus a copy to the spam@localhost.localdomain

This will cause that every spam message will be sent to spam@localhost and I will also have numerous emails from MAILER-DAEMON@mydomain.com in that mbox from delivery failures. But I guess it'd be better not to have mydomain.com blacklisted...

--edit--
OOPS, my fault.

There was a message looping around here, that's why I had some MAILER-DAEMON messages also moved to the spam mbox. Now they're gone.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 2 guests

cron