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.

147 questions
1
vote
2 answers

spamassassin stop fowrwarding spam

i have an ubuntu VPS with spamassassin configured however I still get the spam emails as an attachment and with subject label "SPAM". what I would like instead is to drop those email completely instead of getting them marked as spam.
1
vote
1 answer

How in perl to pass string to a CLI program that expects file input

I am trying to build a SpamAssassin test that uses ClamAV's CLI tool, sigtool, to detect when an attached MS Office legacy file like an .xls or .doc that MAY have a macro, actually has an executable macro. It is easy enough to call sigtool in perl…
Andy Dorman
  • 121
  • 2
1
vote
0 answers

Emails Delivering To Spam Folder | SpamAssassin "HTML: images with 800-1200 bytes of words"

I'm using PHPMailer to send my emails via SMTP. I have a class where once initialized it automatically connects to my server through it's I.P address and logs into my email account. Snippet from class, function __construct() { …
Jack Trowbridge
  • 3,175
  • 9
  • 32
  • 56
1
vote
1 answer

Integrating SpamAssassin with my PHP application

I've build a web app using PHP which gets a number of posts containing a keyword like 'pizza' from Instagram and loads them up with some other data to MongoDB. One of the modules is Python's NLTK and here's how I invoke it (yes, I am switching…
James Pond
  • 267
  • 1
  • 4
  • 18
1
vote
1 answer

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

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…
jdecuyper
  • 3,934
  • 9
  • 39
  • 51
1
vote
1 answer

Detect a URL with a regular expression

I want to use regular expressions to detect a URL via SpamAssassin. I've found that the following works great in various methods I use: http(s)?://([a-zA-Z0-9.])+.[a-zA-Z]{2,3} However, this does not work in SpamAssassin. I get the following error…
skrilled
  • 5,350
  • 2
  • 26
  • 48
1
vote
3 answers

How to avoid being marked as spam with custom mail server?

As of late, maybe during the past few months, Googlemail started flagging/marking mails coming from my domain as spam. I am running a postfix/amavisd (clamav and spamassassin) combination that is configured quite rigidly so I hardly see any spam in…
1
vote
1 answer

SpamAssassin Regular Expression not matching

I have read similar questions here, but being that all regular expressions are not created equal, I was not able to find a solution to my problem. I am working on a rule for SpamAssassin that will tell if the recipient's e-mail username is contained…
dub stylee
  • 3,252
  • 5
  • 38
  • 59
1
vote
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,897
  • 1
  • 26
  • 38
1
vote
3 answers

JavaMail JamesServer: Email is marked as spam

Email sent from JamesServer are marked as spam. I am using JavaMail to connect to JamesServer to send emails. To test spam, I am using the mail-tester.com site. This site tells me the email are marked as spam with a negative threshold for below: …
User12111111
  • 1,179
  • 1
  • 19
  • 41
1
vote
1 answer

Documentation for SpamAssassin rules (HTML_30_40)

I'd like to refine the password reset mails which are sent by my web application to avoid them to be mistaken as spam; a customer forwarded a mail header to me which contains several SpamAssassin rule names. Some of the rules I could find, e.g.…
Tobias
  • 2,481
  • 3
  • 26
  • 38
1
vote
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,357
  • 10
  • 27
1
vote
1 answer

define header rule for x-spam-flag in SpamAssassin

I try to define a rule for the header field "X-Spam-Flag" in the incoming rule to check whether this e-mail already has been checked. I created a little test-email with the following headers: X-SPAM-FLAG: YES X-SPOM-FLAG: YES The rules are: header …
NobsWare
  • 21
  • 6
1
vote
1 answer

Error from amavisd-new-cronjob sa-sync

My Amavis which i run in a Ubuntu 14.04.1 LTS sends me every day about 4 Mails with following content: "pyzor: check failed: internal error, python traceback seen in response" Well since i didnt see any traceback and wasnt able to find it, i…
BlueM00n
  • 25
  • 8
1
vote
2 answers

SpamAssassin custom rule that runs shell command

I've been reading on SpamAssassin for some time now and learned a lot but I cannot seem to figure out a way I cannot find a way to create a rule where a 3rd party script can be executed to for a custom rule. THis would have to be something user…
transilvlad
  • 13,974
  • 13
  • 45
  • 80