2022 Developer Survey is open! Take survey.

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
1 answer
18 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 ...
user avatar
  • 1,076
0 votes
0 answers
14 views

How to test the built in spamassassin auto update feature on Ubuntu server 20.02

I am running an Ubuntu 20.04 based LEMP server, and I have properly set up an email system and added spamassassin to it. Prior to this post, spamassassin was sending me the following email ...
user avatar
  • 103
0 votes
0 answers
31 views

Postfix - Spamassassin Autoresponse coexistence and Disclaimer [closed]

this is my first Postfix project and i have documented a lot, i have read several guides and the system (still in the test phase) works. I have implemented Spamassassin together with Amavis and ClamAV,...
user avatar
0 votes
0 answers
42 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 ...
user avatar
  • 329
0 votes
0 answers
14 views

Errors in "working" spamassassin - when restadrding spamd: server socket setup failed

I have Spamassassin installed on Centos 7. It seems to work fine, emails headers are being updated accordingly. However when I manually restart spamd I get the following messages: # spamd restart ...
user avatar
  • 329
0 votes
1 answer
33 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 ...
user avatar
  • 121
0 votes
0 answers
19 views

I need help removing spamassassin completely

I've got an AWS EC2 instance running Xenial which has Postfix installed and at some point in the past I was messing around with settings and spamassassin. I (used to) use it to forward all emails to ...
user avatar
  • 131
0 votes
0 answers
20 views

Reject messages containing an attachment with particular file size and extension on Postfix

How to reject or add spam score for incoming messages containing an attachment with particular file size and extension on Postfix or using SpamAssassin / Amavis. For example blocking .xls file with ...
user avatar
  • 171
0 votes
0 answers
31 views

Postfix: Too many Hops when integrating SpamAssassin

I want to configure Postfix to work with SpamAssassin. I have the issue, that the Mail will be bounced internally between Postfix and SpamAssassin until I recieve the Error of "Too many Hops"...
user avatar
0 votes
0 answers
62 views

SpamAssassin flagging FREEMAIL_FORGED_REPLYTO even when the addresses are the same

It seems that the FREEMAIL_FORGED_REPLYTO is being applied to emails from GMail, even though they are the same: Reply-To: foo@gmail.com From: Andy Newby <foo@gmail.com> Obviously, the "...
user avatar
0 votes
1 answer
39 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 "...
user avatar
0 votes
1 answer
80 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 ...
user avatar
  • 103
0 votes
1 answer
135 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 ...
user avatar
  • 239
0 votes
0 answers
68 views

Spamassassin unintentionally honoring user_prefs

Postfix is configured to use Spamassassin as a milter, and spamd runs as user debian_spamd (homedir: /var/lib/spamassassin) with no per-user configuration. All mail is forwarded to a remote server. ...
user avatar
  • 239
0 votes
0 answers
58 views

Amavis error in /var/log/mail.err "mail amavis[2768]: (02768-01) (!!)AV: ALL VIRUS SCANNERS FAILED"

I am running an Ubuntu LEMP server with postfix/dovecot, as well as clamscan, amavis, and spamassassin. As of now, everything is working just fine. However, I am glancing over my mail error logs ...
user avatar
  • 103
1 vote
0 answers
51 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 ...
user avatar
  • 466
0 votes
0 answers
39 views

Postfix configuration with Dovecot, SpamAssasin default values not working

I got the below log when receiving the mail Fri Oct 22 19:06:24 2021 [3327677] info: spamd: connection from ::1 [::1]:41218 to port 783, fd 5 Fri Oct 22 19:06:24 2021 [3327677] info: spamd: using ...
user avatar
0 votes
0 answers
44 views

Low volume workaround for Spam Assassin reporting URIBL_BLOCKED

If this is a duplicate, just point me to the answer and I'll remove this. I have a locally hosted email server using the ISP for the nameserver. In the email headers I get the Spam Assassin message ...
user avatar
0 votes
0 answers
57 views

SpamAssassin attach report to mail

I've set up a Postfix mail server with SpamAssassin and spamass-milter for SPAM detection. Everyhting so far seems to work well. My mails are getting tagged as SPAM within the subject and are ...
user avatar
2 votes
1 answer
210 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 ...
user avatar
1 vote
1 answer
135 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 ...
user avatar
  • 13
0 votes
1 answer
290 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 ...
user avatar
  • 41
0 votes
0 answers
130 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 ...
user avatar
0 votes
1 answer
67 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:...
user avatar
0 votes
1 answer
544 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[...
user avatar
  • 101
0 votes
0 answers
39 views

Custom spamassassin rule to target mail sent to BCC

I need to target some mails with these patterns : They have some keyword that trigger, let's say the keyword is KWRD They are sent to me using BCC. Either the To: Field is not present, of the To: ...
user avatar
  • 13
5 votes
1 answer
379 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. ...
user avatar
  • 466
0 votes
2 answers
431 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 ...
user avatar
5 votes
2 answers
17k 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 ...
user avatar
  • 263
0 votes
1 answer
608 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 ...
user avatar
-1 votes
2 answers
132 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 ...
user avatar
  • 1
0 votes
1 answer
87 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 ...
user avatar
  • 1
1 vote
0 answers
127 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 ...
user avatar
0 votes
1 answer
127 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 ...
user avatar
0 votes
1 answer
58 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?
user avatar
0 votes
0 answers
259 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?
user avatar
0 votes
1 answer
233 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 ...
user avatar
1 vote
0 answers
32 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 ...
user avatar
  • 776
2 votes
1 answer
884 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 ...
user avatar
1 vote
0 answers
79 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 ***...
user avatar
1 vote
1 answer
137 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 ...
user avatar
2 votes
1 answer
843 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 ...
user avatar
  • 379
0 votes
1 answer
478 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....
user avatar
  • 379
0 votes
1 answer
32 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 ...
user avatar
2 votes
0 answers
326 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 ...
user avatar
0 votes
1 answer
38 views

Spamassasin disable Email from external to all groups except

I would like to have a spamassasin rule that by default disables all external Emails to groups with exclusion of only a few groups. Thus someone@external.example should not be able to users@internal....
user avatar
  • 115
0 votes
0 answers
365 views

SpamAssassin doesn't flag any e-mails; no spam headers in e-mail

We use Amavis between Postfix and Spamassassin. Emails that contain GTUBE pass clean through Amavis even though they should be marked with their corresponding headers. Sep 24 20:11:09 mail amavis[955]:...
user avatar
3 votes
1 answer
2k views

How to find a reason why a email is marked 3.5 BAYES_99 BODY

I am trying to find out why my messages getting marked in http://isnotspam.com with a 3.5 BAYES_99 BODY score. It is nice that the report shows "SpamAssassin Check : ham (non-spam)" However, ...
user avatar
  • 31
0 votes
1 answer
218 views

How to address spam bounce on exceeded quota issue?

I'm investigating a mail server blacklist issue. Our mail server had a user over quota, which resulted in emails being bounced back to senders with a"user over quota" message. Some of these ...
user avatar
  • 545
1 vote
1 answer
710 views

OpenDMARC RFC5322 requirement error: not exactly one Date field

I've set up an email server for my business, and everything is working fine as long as the email addresses are accessed through Thunderbird. I've got an employee that has a license for Outlook that ...
user avatar

1
2 3 4 5
9