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
2
votes
2 answers

regex to capture any several words in a sentence

I wanted to build a spamassassin URL that matches: "inform that the security key has expired" and variations, where there can be 1 to 3 words before the word "has" and it still has to match. I keep trying and testing in online regex tool. I used…
2
votes
1 answer

What does Spamd "Tell: Did nothing for (unknown):0 in 0.0 seconds" mean?

I'm hooking spamd up to my email program, and when I use the "TELL" command to send it a known SPAM email, the log shows: spamd: Tell: Did nothing for (unknown):0 in 0.1 seconds, 13194 bytes Is this normal? Or am I screwing something up?
CasaDelGato
  • 327
  • 3
  • 14
2
votes
1 answer

Need to scan email contents for spam before sending to users

I have a PHP application which is used by clients to send emails to their customers. There is a page that lets client user build email templates to send to their customers. I want to add a functionality called 'Spam check'. This will allow client…
Aniruddha Shival
  • 113
  • 2
  • 10
1
vote
2 answers

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.
Simon
  • 24,010
  • 36
  • 139
  • 249
1
vote
1 answer

Cannot match spamassassin custom regex rule

I want to match this pattern in my spamassassin's filtering rules: Password archivio: 666 Per conto di: There is a space after di: and the number can be of undefined digits. in my custom.cf I have created this rule body CUSTOM_SPAM_RULE …
silvered.dragon
  • 167
  • 2
  • 13
1
vote
1 answer

Spamassassin - score by time of day sent

Is there a way to assign a score for mail sent between certain hours. I find a lot of spam is sent in the middle of the night so would like to give anything between say 2am and 5am a score of 2 or 3.
1
vote
1 answer

Spamassassin's custom rule (for subject line filtering) doesn't work

I'm setting up Spamassassin to use along isbg to filter mail in my IMAP mail account. My ISP already has a pretty good spam filter that adds "[SPAM]" in front of the subject line of each message it detects; thus, I'm setting up a custom rule in…
PaulJ
  • 1,410
  • 4
  • 25
  • 43
1
vote
3 answers

Unable to get SpamAssassin subject rule to work

I'm trying to catch the hoax domain name invoices I receive for my various websites. These emails have the subject line: [domain] Final Notice. I've added this rule to local.cf (other rules I've added are OK) --- header LOCAL_DOMAINSCAM Subject =~…
1
vote
1 answer

After downloading a mail through IMAP, before parsing I want to check if its spam!

I have a ticket system in PHP. People report tickets over email. A mail parser connects to the mailbox using IMAP, downloads the email and parses it to create a ticket which can be viewed/updated over the web interface. Now I want my application to…
Varun
  • 3,166
  • 6
  • 28
  • 51
1
vote
1 answer

Email header with multiple received fields: How can this happen and can this be used to fight SPAM

I often receive fishing /SPAM emails with multiple received fields. First, I'd like to understand how one email header can have more than one received field. Second, I'd like to know if I can use this to fight SPAM. Here is an example: …
1
vote
0 answers

How to fix PHP contact-form errors: HTML_MIME_NO_HTML_TAG, MIME_HTML_ONLY, MISSING_DATE

I'm not good at PHP so please be patient and understandable. The e-mails from my contact-form always go into the spam folder. I ran a test on this site and it tells me that there is no HTML tag in my HTML-only message (HTML_MIME_NO_HTML_TAG) my…
1
vote
0 answers

spamd fails to remove bayes.lock file

I have a problem with the /.spamassassin/bayes.lock This is the error I'm seeing : Oct 23 15:12:14 server spamd[18073]: bayes: cannot open bayes databases /.spamassassin/bayes_* R/W: lock failed: File exists Oct 23 15:12:14 server spamd[18157]:…
1
vote
1 answer

Converting Spamassassin rules to rspamd

I set up a new mail server using rspamd. I have sets of rules from spamassasin. I would like to import/convert them to rspamd. What I did: Created file with rules on /etc/rspamd/custom/spamassasin.map Added config in…
Pyton
  • 1,264
  • 8
  • 18
1
vote
1 answer

Despite X-Spam-Status Scores above Required Spam isn't sorted out of mbox

I'm trying to run my mbox file through spamassassin with: formail -s procmail ~/procmail.rc < mbox Despite what I think looks like a proper procmail rc file & an ok spamassassin local.cf the mail that gets scored higher than my 'required' is not…
ComfortMoose
  • 113
  • 6
1
vote
0 answers

Python mail headers

I have an automated messaging system that sends emails with the three standard parameters, those being: To, destination and subject. The message is immediately sent after an error has been detected. The message is being sent over Python, it receives…
Melanchole
  • 35
  • 10
1 2
3
9 10