spamassassin

How can I find out what triggered the TRACKER_ID rule in spamassassin?

I recently received an email from my girlfriend that spamassassin marked as spam, mostly because spamassassin detected a tracker ID... except there wasn't one. I'd like to know what triggered it, so that I can report a sensible bug. ...

What's the most straightforward way to delete emails marked as spam by SpamAssassin?

I'm on Ubuntu Intrepid, using Postfix and SpamAssassin. I've seen approaches using procmail (like the one suggested @ Apache), but I'm looking for a solution that does not use procmail. This is a programming question because the correct answer will be some form of code that accomplishes the task at hand (my response to the negative vote...

Postfix / Spamassassin: Undelivered Mail Returned to Sender

I'm having an issue with a newly configured mailserver where spam emails that are spoofed to come from the local domain are actually accepted by the mailserver, the mail isnt delivered as is though, the spamassassin tags it as spam and then send an email "Undelivered Mail Returned to Sender" to the spoofed local user. I know there is a ...

How do I sudo environment?

I am using spamassassin in a php script, but when I train spamassassin as my user the php script's exec command to call spamassassin get the untrained version because of the user specific nature of sa-learn. So I need to sudo to my user in the exec command and get the environment of my user along with the premissions ...

How can I get a full Mail::SpamAssassin::MailMessage object from text?

I use the following code to generate a spam report using SpamAssassin: use Mail::SpamAssassin; my $sa = Mail::SpamAssassin->new(); open FILE, "<", "mail.txt"; my @lines = <FILE>; my $mail = $sa->parse(@lines); my $status = $sa->check($mail); my $report = $status->get_report(); $report =~ s/\n/\n<br>/g; print "<h1>Spam Report</h1>";...

local.cf spamassassin

actually i am trying to write one rule in local.cf spamassassin what i need is to block all Viagra emails. as you know in these emails some time thay write Viagra,VIAGRA,VIAGRA(c) and some time it is in Subject, some time Name, some time Body of message can you please tell me what will be rule exactly to stop all these emails. Thank...

spam check, spam score how to?

Hi. I am doing a app that is sending email and need to have a spam checker on the outgoing email. I have been looking for this a while now, I can not seem to find a good solution. I would like to use something like the spamassassin. Do you guys got any examples how to do the spamassassin with asp.net (coding example, not example to setup...

spamassassin setup how to make sure X-Spam-Status is allways written.

Hi, I just found out that spamassassin skips checking for email bigger than 250KB by default. Due to a coding bug, I check for the X-Spam-Status header in incoming emails and did not take into account the fact that it might be null. I know that I can increase the size of the limit by configuration but it may cause a load issue on my ser...

How to get a detailed report of scans performed by spam-assassin?

Hi, I am planning to setup spam-assassin in my mail server for filtering out spam mails. I would like to get a detailed report of spam checks performed on incoming mails. This will help me in creating custom rules , so that legitimate mails wont be labeled as spam. Please tell me how to configure spam-assassin so that i get a detailed...

List of bank domains to stop phish

I'm looking for a full list of bank domain names to include in an anti-phish routine I'm planning, does anyone have a list/URL? ...

Spam Assassin giving invalid output

Hi, I want to use Spam-Assassin for scoring mails for spam before sending them to the users. I'm using PHP for executing it as a process using the exec. exec("/usr/bin/spamc -R < {$fname}",$score,$rr); The problem is that the result being returned is always 0/0. I took the PHP code from PHP Classes website. The demo message being us...

Not able to read return value from spamassassin when launched from C# console

Hi! I have a windows server 2008 with a mail server installed. For every emails that comes in, a C# application is launched that pipes the message through a set of optional filters and then decides whether or not to let it throught. I have alrealdy a couple of "homemade" filters implemented but I would like to add one to take advantag...

How can I query Spamhaus's SBL with a domain name?

I want to query Spamhaus's SBL using a domain name. I know this is possible to do because this form (Find SBL Listings by ISP Domain Name) does it and SpamAssassin does it, but I can only seem to get it to work with IP addresses. I took a quick look at the SpamAssassin code, but it has been so generalized that I could probably spend a ...