Questions tagged [spamassassin]

SpamAssassin is an open source server daemon used to examine and mark email that it identifies as spam.

SpamAssassin is an open source server daemon used to examine and mark email that it identifies as spam. SpamAssassin does nothing but mark the email as spam; it is up to the mail client to setup rules to filter the marked emails out.

If you are having a problem which is unrelated to programming SpamAssassin, you should likely not be posting to Stack Overflow.

143 questions
0
votes
2 answers

Perl Regex to Exclude Certain TLDs for Spamassassin

I am not at all able to code in Perl; so, what seems like a simple thing -- writing a regex to score all URIs that are not for "com" or "net" or "org" TLDs -- is apparently beyond my skills. Could someone kindly enlighten me? As an example I want…
justinzane
  • 1,829
  • 1
  • 25
  • 36
0
votes
1 answer

Sieve not filtering email

I setup Postfix with Spamassassin and Dovecot with Sieve. Spamassassin will tag the email as spam. I am trying to get Sieve to move mail tagged as "Spam" by SpamAssassin into the Junk folder. However, it is not doing so. I have no idea what I am…
Farhan Yusufzai
  • 135
  • 2
  • 18
0
votes
1 answer

Using SpamAssassin to analyse existing emails before installation

I'm using SpamAssassin to analyse existing emails, so I have an archive folder on my file system that contains a large amount of (already read, old) emails. Among those emails there are quite a lot of spam emails that have not been analysed by…
LaDude
  • 1,221
  • 1
  • 11
  • 24
0
votes
2 answers

How to whitelist recipients before mail goes to spamassassin?

I've been looking everywhere for a solution but didn't find. What I need is to whitelist some recipient addresses so they won't ever go to the spamassassin filtering. In my master.cf in postfix I have this: spamassassin unix - n n - …
Rikudou_Sennin
  • 1,189
  • 9
  • 23
0
votes
1 answer

Remote SpamAssassin network protocol (spamc) returns empty response

I am using a basic PHP class to run the SpamAssassin Network Protocol commands on a remote server. I installed SpamAssassin following a guide, just skipping the PostFix part. No matter what command I run (CHECK, REPORT, PING, etc), I only get a…
Luke Shaheen
  • 4,046
  • 11
  • 47
  • 78
0
votes
1 answer

plesk spamassassin & spamdyke

I have spamassassin installed and integrated into qmail on plesk dedicated server. Now i have installed spamdyke, all are working fine except they do not work together. Wheen I add in etc/xinet.d/smtp_psa line /usr/bin/spamdyke -f…
Cameleon
  • 59
  • 10
0
votes
0 answers

sa-learn.sh not deleting spam after running cron job

I have a small script that seems to be running,according to the logs, but it is not removing the the emails in the folder, as instructed, after processing. I've searched and searched, but don't know how to troubleshoot any further. Can anyone…
0
votes
1 answer

Wrong return-path with postfix, spamassassin on debian

i currently set up an new Server running the latest Debian. Running postfix and spamassassin. Spamassassin works as expected. But with outgoing mail i have the problem that Spamassassin is modifing the "return-path". Instead of the sender address it…
0
votes
1 answer

Block emails with large number of recipients of same domain

I have a mailserver with exim4 and spamassassin installed. We have a problem of (internal) spam to a large number of mailinglists, coming from a few users (which we cannot just educate or block for multiple reasons) Is there a way to block emails…
dtech
  • 12,458
  • 11
  • 42
  • 67
0
votes
1 answer

spam check, spam score how to?

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…
Dejan.S
  • 16,281
  • 21
  • 64
  • 104
0
votes
1 answer

spamassassin filter for custom expression

I would like to add a rule that blocks all incoming e-mails that contain a certain expression. Ex: 'Test Phrase'. I have added the line rawbody NO_SPAMW /Test" *"Phrase/i but it seems it doesn't work. Can you tell me what is the correct…
Alex
  • 264
  • 2
  • 8
  • 16
0
votes
1 answer

php restart process in the background spamassassin

I use popen and ssh. In one script, i need to restart the service spamassassin with : $spamassassin = "service spamassassin restart &"; $spamassmilter = "service spamass-milter restart &"; shell_exec($spamassassin); shell_exec($spamassmilter); I…
mpgn
  • 6,649
  • 8
  • 61
  • 97
0
votes
1 answer

WEKA Preprocessing using SpamAssassin Dataset using stringtowordvector

I am currently working on a project in which I will use the naive Bayes classification method to classify email as spam or clean. I am using WEKA and the well-known SpamAssassin dataset for this. (The dataset can be found here:…
0
votes
1 answer

What is the invalid URI error from SpamAssassin actually matching?

I'm trying to debug some emails that are getting sent to the Spam Folder by SpamAssassin and I encountered an error that I'm having trouble fixing. The problem seems to be that there's an invalid URI somewhere in the email, but I'm not sure how to…
Swift
  • 12,489
  • 5
  • 50
  • 78
0
votes
2 answers

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…
kman99
  • 6,565
  • 4
  • 21
  • 20
1 2 3
9
10