As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [spamassassin]

SpamAssassin is a computer program released under the Apache License 2.0 used for e-mail spam filtering based on content-matching rules.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Most Incoming Emails are not being processed by SpamAssassin

Incoming emails are mostly unchecked by SpamAssassin, although we can see in the headers that they were checked with Amavisd-new for viruses. We've tried many things to fix it, including asking ...
Peter White's user avatar
0 votes
0 answers
37 views

Multi-message anti-SPAM filter in SpamAssassin

My vendor's database has been stolen and I started to receive spam messages in a huge amount. It is being sent by spambots / spam scripts, so sender and recipient email addresses are always fake. The ...
trejder's user avatar
  • 143
0 votes
0 answers
32 views

migrate learned ham/spam from rspamd to SpamAssassin

As whitelisting by sender domain is very unreliable in rspamd and the developer on GitHub doesn't give a damn (the post in discussion is only being ignored, opening an issue for it since it clearly ...
Richard Rosner's user avatar
0 votes
1 answer
41 views

procmail's logging helped me get one account's .procmailrc working, but two other accounts don't work and don't log); having difficulty diagnosing

As a site that has a number of users who are "technologically challenged", and as the system mangler, it's fallen on me to solve the spam problem for us all. So, SpamAssassin's doing a fine ...
Richard T's user avatar
  • 1,212
0 votes
0 answers
83 views

Using spamassassin + dovecot/postfix, how do you block messages from a blacklisted address instead of route to junk folder?

I have set up an email server using a wizard tool, although I was hoping to alter the default behavior configuration such that when I receive emails from addresses I explicitly blacklist, those ...
T. Zack Crawford's user avatar
1 vote
1 answer
173 views

Postfix/Spamassassin/Milter error

I set up a postfix email server following an article series from the linux babe for my company and it seems to be working fine with a couple of exceptions. In the maillog I am seeing the following ...
phyre's user avatar
  • 11
0 votes
1 answer
164 views

Spamassassin not scoring correctly

I have Spamassassin running on a Ubuntu/Plesk server. It was working relatively well until recently but now seems to be letting through random spam messages. These messages seem to trigger plenty of ...
Chris Leather's user avatar
0 votes
0 answers
61 views

Ubuntu 20.04 Server spamassassin/spamd "internal error, python traceback seen in response." No additional info. How to debug and fix?

On Ubuntu server 20.04, I am running spammassassin/spamd, postfix/dovecot. In my mail logs at /var/log/mail.log I am getting a spamd internal error, python traceback seen in response error as shown ...
DanRan's user avatar
  • 113
1 vote
0 answers
68 views

How to disabled X-Spam header rewrite in WHM?

I need some help with the settings on my cpanel WHM. I want to disable the options to stop rewriting the X-Spam in the header. When I send the spam emails for a test, I'm getting this: X-Spam-Subject: ...
chris oojer's user avatar
0 votes
1 answer
111 views

How to whitelist our own outgoing emails from being blocked in amavis/spamassassin using Spamhaus' block lists?

Just after we implemented spam filtering on our Postfix server using spamassassin-dqs through amavisd-new we drastically reduced received spam, but to our surprise our own outgoing e-mails are being ...
Claudio's user avatar
  • 159
0 votes
1 answer
218 views

RCVD_IN_DNSWL_BLOCKED in SpamAssassin as it doesn't use local DNS

I'm not sure what I have wrong here. It used to work on Ubuntu 18.04, but doesn't on 20.04 it seems. I have unbound DNS server setup: unbound-control status version: 1.9.4 verbosity: 1 threads: 1 ...
Andrew Newby's user avatar
  • 1,102
0 votes
1 answer
67 views

spamassassin complaining twice a week: cannot open file

Our postfix/spamssassin complains irregularly but at lease twice a week via mail with the following message: /etc/cron.daily/spamassassin: Cannot open file /var/lib/spamassassin/3.004002/...
Heiner's user avatar
  • 15
0 votes
1 answer
41 views

Spamassassin ignores spam in multi-part email

Sometimes my email server gets multi-part emails where the embedded email is detected as spam, but the containing email gets a score of 0. So the message is marked as SPAM but not moved to the ...
Chris's user avatar
  • 1
1 vote
1 answer
127 views

spamhaus sbl error 3.64.1.98 — configuration/replacement?

For I don't know how long — maybe a decade — I've had the following in my postfix configuration: smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes....
philolegein's user avatar
0 votes
1 answer
305 views

Email goes to spam even with valid SPF, DKIM and DMARC records, dynamic rDNS on AWS instance

I have an instance on AWS and fighting with sending emails through cPanel. All records are OK (checked on MX toolbox): SPF, DKIM, DMARC at the cPanel level and the WHM level (hostname). Even rDNS is ...
Adrian P.'s user avatar
  • 101
0 votes
0 answers
102 views

Prevent Exim from sending spam

I have an Exim server for our application and I noticed malicious users registering with our app to send bulk spam. I know that Exim has the ability to integrate with SpamAssassin to prevent the ...
Tom's user avatar
  • 269
0 votes
0 answers
35 views

How to tell if spamc in .procmailrc is reading user_prefs?

I have some mail accounts on a Postfix server on Ubuntu 18.04 that have the following in the .procmailrc files in their home directories: # LOGFILE=$HOME/procmail.log SHELL=/bin/sh :0fw | spamc :0 * ...
TommyPeanuts's user avatar
1 vote
1 answer
655 views

spamass-milter[1403]: Could not retrieve sendmail macro "i"!. Please add it to confMILTER_MACROS_ENVFROM for better spamassassin results

I am running an Ubuntu 20.04 based LEMP server on a Raspberry Pi. Installed on it is postfix/dovecot/amavis/spamassassin. When I look at my mail.err logs by running the following command: cat /var/log/...
DanRan's user avatar
  • 113
0 votes
1 answer
280 views

Using both SpamAssassin and postscreen in Postfix

I'm trying to set up an MX server using Postfix, postscreen and SpamAssassin. According to the SpamAssassin documentation, I have to add -o content_filter to the smtp service in master.cf. This works ...
jornane's user avatar
  • 1,136
0 votes
0 answers
1k views

DKIM_INVALID in Spamassassin only for emails sent from other emails in the same server

I have postfix/dovecot running with spamassassin on Centos. PROBLEM: The VPS acts as a mail server Spamassassin edits the email subject and adds [SPAM} Ms. Outlook on Windows moves those emails to ...
Pikk's user avatar
  • 339
0 votes
1 answer
86 views

Qmail bounce using spamassassin

I have a qmail / spamd / clamd server and it’s recently started bouncing emails with a code 553. Spamhaus is sayings it’s an open relay problem on their message to the user. Has anyone come across ...
MB.'s user avatar
  • 121
0 votes
1 answer
238 views

SpamAssassin rule for emails with multiple TO email addresses?

I'm getting pummelled my spammers who are sending emails that don't really score for some reason: X-Spam-Score: 5 X-Spam-Bar: / X-Spam-Report: Spam detection software, running on the system "...
Andrew Newby's user avatar
  • 1,102
0 votes
2 answers
2k views

unknown domain "pl.d.sender-sib.com" and "gmail.com" under /var/vmail/ on ubuntu server 20.04 running postfix/dovecot/spamassassin/amavis

I am running postfix/dovecot with spamassasin and amavis on Ubuntu server 20.04. I am also using this server as an LEMP Wordpress server. I have configured everything (email wise) according to ...
DanRan's user avatar
  • 113
0 votes
1 answer
811 views

SMTP relay with FQDN, but SpamAssassin marks FSL_HELO_NON_FQDN_1 and HELO_NO_DOMAIN

my mail provider (posteo.de) offers an FQDN during the HELO/EHLO exchange (e.g. mout2.posteo.de) – which is seen by policyd-spf (s. below) – but SpamAssassin on a receiving server marks the relay as ...
janeden's user avatar
  • 237
1 vote
0 answers
90 views

spamassasin unable to read Japanese when it is html encoded

I would like to block some emails which contains certain Japanese words, but spamassassin fails to detect such words when the email is HTML encoded, for example: This is a multi-part message in MIME ...
lepe's user avatar
  • 467
2 votes
1 answer
1k views

SpamAssassin: custom rules and score

For my mailserver, i want do add some custom rules and scores for spamasassin DKIM and SPF checks. Currently i use following custom settings: score DKIM_SIGNED 0 score DKIM_VALID -1 score ...
Tim Altgeld's user avatar
1 vote
1 answer
645 views

Postfix not accepting recipient address: connect to private/policy: Connection refused

I thought I'd be clever and add amavis/spamassassin/clamav to my working Postfix installation. I got it working and then made a change. Walked away, had a beer, then found out I'd mucked up. This is ...
Mike M's user avatar
  • 13
0 votes
1 answer
804 views

How it works content_filter in Postfix using spamassassin and clamav ( filtering order )?

How it works content_filter in case where is used spamassassin and clamav ? Here is example for one content_filter: http://www.postfix.org/FILTER_README.html And I see that sendmail command cant use ...
Macsurf's user avatar
  • 41
0 votes
1 answer
454 views

Rule to deal with fake "reply-to" field

It would be impossible to be anymore of a newbie than I am dealing with SA and rules etc..etc.. I am having an issue and have searched high and low on the net and I get some info that sort of seems to ...
BKKcanuck's user avatar
0 votes
1 answer
156 views

sendmail /etc/mail/access REJECT based off of keyword and TO: field

someone placed my email to a weird list and i get 100s of messages each day. I want to block the word "Unsubscribe" in all body emails address to me@example.com To:me@example.com error:...
user3265051's user avatar
0 votes
1 answer
1k views

Amavis and Spamassassin error with '.pre' files (using iRedMail)

I installed iRedMail which would install amavis and spamassassin. When I test sending and receiving email, I have an error in the /var/log/mail.log, I see this line of error: postfix/amavis/smtp[...
Mahsa's user avatar
  • 111
5 votes
1 answer
469 views

How to match Japanese in spamassassin?

I live in Japan. Recently there has been a lot of spam coming from China with messages written in Chinese. As spamassassin does not contain rules for Chinese, most of those emails pass with low score. ...
lepe's user avatar
  • 467
0 votes
2 answers
1k views

Wouldn't setting the DNS server to 127.0.0.1 prevent my system from actually resolving remote hosts? I found this answer

Wouldn't setting the DNS server to 127.0.0.1 prevent my system from actually resolving remote hosts? My business email server has the DNS set to the ISP given DNS servers. My Spamassassin is giving ...
Altimus Prime's user avatar
7 votes
2 answers
32k views

How do I prevent the SPF_HELO_NONE warning when sending from Postfix?

When using a tool like https://dkimvalidator.com/ to verify configuration of DKIM, SPF, DMARC, etc. for sending mail from a web server, I get a warning like this: 0.0 SPF_HELO_NONE SPF: HELO does not ...
Walf's user avatar
  • 322
0 votes
1 answer
1k views

"FORGED_RELAY_MUA_TO_MX" how to fix it?

We using exchange 2013 for are long time, but someday I try test my mail server (at https://www.mail-tester.com/) and fond some errors, most of it I fix, but left some. Most what I do not ...
Monolithys's user avatar
-1 votes
2 answers
267 views

Postfix, Dovecot and Spamassassin unexpectedely fill-ups my disk usage

I am on VPS using CentOS 7, LAMP using Postfix, Dovecot and Spamassassin with Rainloop as my email client. When I have started Postfix using: systemctl enable postfix systemctl restart postfix ...
Emilia's user avatar
  • 1
0 votes
1 answer
256 views

sa-compile update error with rule compilation

I have an install of Ubuntu 18.04.5 and I'm trying to update the sa-compile (version 3.4.2) package because I have a file server set up on it which uses spamassassin (version 3.4.2). Every time I try ...
Ertain's user avatar
  • 1
1 vote
1 answer
244 views

How to disable SoughtRules in SpamAssassin

I'm running SpamAssassin 3.4 via Amavisd 2.12, installed with yum from EPEL on Amazon Linux 2. According to the SpamAssassin Confluence wiki (here and here), SoughtRules should be disabled, but ... I ...
philolegein's user avatar
0 votes
1 answer
244 views

Postfix/spamassassin not delivering to alias when specifying user executing spamc

I have installed SpamAssassin and configured it to read preferences from sql. I realised that it wasn't reading the user's preferences, and checking the logs I saw that all requests sent by the spamc ...
francisaugusto's user avatar
0 votes
1 answer
83 views

Compare url link and url text in email body and reject as SPAM

Email body: ... <a href="url">text</a> ... Is it possible check if text is url in email body, then compare url and text and reject as SPAM if they differ?
user1855805's user avatar
0 votes
0 answers
558 views

Enabling X-Spam-Report in SpamAssassin

I tried to enable header X-Spam-Report in local.cf: report_safe 0 Per instructions this should cause adding this header to emails. Yet the header is not there. How can I fix that?
LetMeSOThat4U's user avatar
0 votes
1 answer
503 views

Postfix: How to malware & spam scan outgoing SMTP SASL auth users?

Although I have found two answers to this, I can't work out how to actually implement them, and at least one of them doesn't actually answer the question. So if anyone has any experience to share I'd ...
TommyPeanuts's user avatar
1 vote
0 answers
41 views

postfix + spamasassin on outgoing email

For domain company.com, I have server with postfix + dovecot + spamassassin. Currently spamassassin works just before dovecot: dovecot unix - n n - - pipe flags=DRhu ...
Nick's user avatar
  • 804
3 votes
1 answer
2k views

Spamassassin working but not learning? Bayes-filter accuracy is not improving

I have a mailserver with a working spamassassin installation (postfix, dovecot, amavis, clamav, spamassassin on debian). Everything is working great. Spamassassin is filting out Spams and I get the ...
Esprit1st's user avatar
1 vote
0 answers
159 views

Spamassassin keeps marking as spam despite low score

I have postfix with Spamassassin and spamass-milter configured. E-mails with score higher than 4.0 are supposed to be treated as a spam and be rejected. Here is my local.conf rewrite_header Subject ***...
LightFelicis's user avatar
1 vote
1 answer
230 views

Postfix to Spamassassin, then to PHP script

Explanation I have been using a pipe as follows to pipe incoming mail to my laravel app, but check if for spam first. The following is being used as a virtual transport myhook unix - n n - - pipe ...
Corby Jurgens's user avatar
2 votes
1 answer
2k views

Amavis adding SPAM marker in Subject, but mail is not spam

I have a Debian 10 server with posfix, amavis and spamassassin. Another server managed by me sends every day a mail containing no content and only a gif as attachment. I have whitelisted the from ...
chmike's user avatar
  • 429
0 votes
1 answer
731 views

Mails filtered twice by spamassassin

I have a server with postfix, amavis and spamassassin. In the spamassassin local.cf file, I changed the default header subject marker for spam from *****SPAM****** to [SPAM] because it is more compact....
chmike's user avatar
  • 429
0 votes
1 answer
51 views

Strange permission issue for SpamAssassin in LXC container

My mailserver set-up is quite old, but did its job for many years. With the last major update from Debian 9 to 10, SpamAssassin stopped working. Today I took the time to search for reasons, and I do ...
Lars Hanke's user avatar
2 votes
0 answers
561 views

Setting SpamAssassin's Bayes_path per user and dovecot

I have dovecot, Spamassassin and postfix running. I started to use sa-learn to get better and more precise spam identification and filtering. I have not set the Bayes_path preference on my local.cf ...
francisaugusto's user avatar

1
2 3 4 5
9