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
2 answers
141 views

postfix + spamassassin check SPF from the email headers

I have postfix + spamassassin. Spamassassin suppose to check the SPF of the sender, but I received following spam: [email protected] = this is the email on my postfix Return-Path: <leonah@betterway....
Nick's user avatar
  • 852
0 votes
0 answers
274 views

How to upgrade postfix/dovecot/spamassassin/postscreen email server from Ubuntu 20.04 to Ubuntu 22.04?

I am running an Ubuntu 20.04 based LEMP Email server running Postfix, Dovecot, Postscreen, and SpamAssassin. I built the server using this Linuxbabe Guide, and followed the instructions and every ...
DanRan's user avatar
  • 123
0 votes
1 answer
52 views

Spamassassin How to stop domain email containing only numbers?

There are more and more spams coming from domain containing only number like 23821.com. You can see an example in the message header below. Received: from hmdablm ([116.186.123.166]) by 23821.com with ...
PatriceJ's user avatar
0 votes
0 answers
33 views

How to integrate a python script with amavis or spamassasin?

I have an MTA setup with postfix acting as MTA and Amavis acting as content filter; Amavis is configured for using SpamAssassin and Clamav. I have written a Python script that basically analyses an ...
SUNITA GUPTA's user avatar
0 votes
1 answer
136 views

Spamassassin not adding X-SPAM header

I've spent hours on websites, checked config files etc. But can't find the problem. Debian server, with spamassassin and postfix. Spamassassin is enabled (checked it on command line). In the mail.log, ...
Recif's user avatar
  • 153
0 votes
0 answers
44 views

"mail spamd[495361]: internal error, python traceback seen in response" on Ubuntu 20.04 when receiving email from gmail. How to debug and fix?

I am running Ubuntu Server 20.04 on a Raspberry Pi. It is set up as a web/email LEMP server. When I send an email from my gmail account to a an email address on my LEMP server, I get an error from ...
DanRan's user avatar
  • 123
1 vote
1 answer
96 views

Postfix permit_sasl_authenticated before content_filter

I have a postfix + dovecot + spamassassin setup which works great, but I would like to bypass all outgoing messages (sasl authenticated) from spam filtering. I must do something wrong, because I ...
Darwick's user avatar
  • 121
0 votes
0 answers
148 views

Moving Spam to Spam folder ( postfix-courier imap, spamassassin)

I've a mail server that supports virtual-users on mysql with ( courier-imap , postfix , spamassassin, amavis) For every new user my server creats dirs like (inbox, drafts, sent, trash) In /home/...
Mailserveradmin's user avatar
0 votes
1 answer
300 views

Where can i find explanation of a SpamAssasin scores like SPOOFED_FREEMAIL?

I can define custom scores for SpamAssasin, default one seems to be zero and it makes me wonder if i should raise it, but before doing so, where can i find detailed information on how these particular ...
16851556's user avatar
  • 496
0 votes
0 answers
52 views

How disable Postfix do not sent auto answer email to sender if the mail is spam?

Debian, Postfix, Spamassassin. When postfix receive spam, postfix sent answer: 550 5.7.1 Blocked by SpamAssassin. I can't disable it. How to not reject, but silently drop spam message? I don't want ...
Marvin's user avatar
  • 71
1 vote
0 answers
295 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
71 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
  • 163
0 votes
0 answers
72 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
121 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,242
1 vote
1 answer
573 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
564 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
161 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
  • 123
1 vote
0 answers
147 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
1 vote
1 answer
311 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
  • 179
0 votes
1 answer
645 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,154
0 votes
1 answer
138 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
74 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
2 votes
1 answer
425 views

spamhaus sbl error 3.64.1.98 — blocked using sbl.spamhaus.org; Error: open resolver

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
580 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
143 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
  • 289
0 votes
1 answer
78 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
2 votes
1 answer
1k 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
  • 123
0 votes
1 answer
402 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,226
0 votes
0 answers
2k 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
  • 349
0 votes
1 answer
105 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
299 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,154
0 votes
2 answers
5k 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
  • 123
0 votes
1 answer
1k 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
  • 257
1 vote
0 answers
106 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
  • 469
2 votes
1 answer
2k 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
955 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
1k 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
  • 51
0 votes
1 answer
626 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
241 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 [email protected] To:[email protected] error:...
user3265051's user avatar
0 votes
1 answer
2k 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
546 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
  • 469
0 votes
2 answers
2k 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
11 votes
2 answers
44k 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
  • 430
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
332 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
402 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
290 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
361 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
143 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
663 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

1
2 3 4 5
10