Skip to main content
Share Your Experience: Take the 2024 Developer Survey
7 votes

Amavis / spamassassin setup, how to disable quarantine and get default spamassassin behavior back?

The best solution I found was simply to put this in /etc/amavis/conf.d/50-user: $final_spam_destiny=D_PASS; $final_virus_destiny=D_PASS; This way bad e-mails are either marked SPAM or INFECTED, but ...
user1604240's user avatar
7 votes
Accepted

What to do with SpamAssassin after installing Amavis?

According to Ubuntu 14.04 Server Guide Mail Filtering: Amavisd-new is a wrapper program that can call any number of content filtering programs for spam detection, antivirus, etc. You still need ...
Esa Jokinen's user avatar
  • 50.1k
5 votes

Postfix - Rspamd + amavis

You should not use smtpd_proxy_filter and smtpd_milter together. To run Amavis and Rspamd side-by-side consider integrating Amavis with amavisd-milter. smtpd_milter can call different milters, one ...
Mario's user avatar
  • 51
4 votes

clamav error: mpool_malloc(): Attempt to allocate 8388608 bytes

Yeah, it hit me too, here is the bug report: https://bugzilla.clamav.net/show_bug.cgi?id=11647 Upgrade to a new version. I guess you have 0.97 version.
Vex's user avatar
  • 41
4 votes
Accepted

Amavis / Spamassassin - FORGED_SPF_HELO and SPF_HELO_PASS

The rule FORGED_SPF_HELO came from Spamassassin updates. By grepping your configuration folder (/var/lib/spamassassin at least on Debianoids) you'll see the definition: meta FORGED_SPF_HELO ...
Piotr P. Karwasz's user avatar
4 votes
Accepted

OpenDKIM won't start: "opendkim: milter socket must be specified"

As the error says, you should specify the socket. The mandatory configuration parameter can be found on opendkim.conf documentation: Socket (string) Specifies the socket that should be established by ...
Esa Jokinen's user avatar
  • 50.1k
3 votes

Postfix - Rspamd + amavis

Been in similar situation a few years ago. You can actually remove unnecessary Received: header by adding via master.cf -o header_checks=pcre:/etc/postfix/remove_received.pcre to your smtpd that is ...
Peter Zhabin's user avatar
  • 2,861
3 votes

Error with clamd amavisd CentOS 7

tl;dr: setsebool -P antivirus_can_scan_system 1 setsebool -P clamd_use_jit on yum install clamav-scanner-systemd cd /usr/lib/systemd/system cp clamd\@scan.service clamd\@amavisd.service systemctl ...
J Griffiths's user avatar
3 votes

Problems whitelisting senders in Amavis-new

It seems it is not possible to do this in amavis alone. An alternative would be to use a separate policy bank where checking for banned file names is disabled, and let Postfix direct emails from ...
roelvanmeer's user avatar
  • 1,796
3 votes

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

You cannot inspect the Bayes database of a recipient that does not share this data with you. This is deliberately not public, otherwise it would be even simpler to construct spam messages that defeat ...
anx's user avatar
  • 9,811
2 votes

Connection refused by AMAVISD-NEW

Looks like you have a typo here. Looks at the error message warning: connect to transport private/amavis: Connection refused You instruct postfix to send email via transport amavis, but in your ...
masegaloeh's user avatar
  • 18.4k
2 votes

amavisd-new rescans quarantined mails

I guess i found it out: Whitelisting Virus and Spam Recipients works with the following configuration for amavisd-new: @bypass_spam_checks_acl = qw( [email protected] [email protected] ); @...
Ex1v0r's user avatar
  • 51
2 votes

How to Remove UNCHECKED Term Attached in Email Subject Area When Received

The problem of receiving emails having UNCHECKED in the subject can be resolved in two fashions. The first solution is a temporary and quick fix which can lead to other unwanted problems since mails ...
user480559's user avatar
2 votes

clamav error: mpool_malloc(): Attempt to allocate 8388608 bytes

I have the same errors on 8 Servers since yesterday. All Server are Zimbra servers. I have fixed the problems with updating the Zimbra to new release. But at one i do not have the option to update. ...
Alexander Ebner's user avatar
2 votes
Accepted

Postfix before-queue spam reject with amavis without sending out a bounce on OS X Server

The problem here is that it's amavis, not postfix, that's rejecting the message. Here's the standard flow for incoming messages: postfix receives the message from the sending MTA (or spambot) postfix ...
Gordon Davisson's user avatar
2 votes

Postfix with Amavis returns "name=localhost type=A: Host not found" in mail.log

You have an error in /etc/hosts. You've defined 10.0.7.4 localhost, which is a great way to break localhost. This should not be present and should be removed immediately.
Michael Hampton's user avatar
2 votes

how to whitelist domain on amavis?

Please note that depending on your distribution of amavisd-new, the files below may be within /etc/amavisd/ parent folder instead of /etc/amavis/ per below. Make sure you note the location in case it'...
B. Shea's user avatar
  • 1,029
2 votes
Accepted

Posftwd is double counting emails when used with Posftix and amavis

But... you already discovered almost everything! You have an additional smtpd service which is usually set up in master.cf like this: smtp:10025 inet n - n - - ...
Nikita Kipriyanov's user avatar
2 votes
Accepted

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

Postfix cannot process mail because your smtpd_recipient_restrictions configuration instructs to check_policy_service, but the referenced policy service cannot be queried (likely, because it is no ...
anx's user avatar
  • 9,811
2 votes

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

Stop permanently (554) rejecting mail because of transient errors (should be 4XX), right now. Think about further changes if and when you expect they are worth it. querying public resolvers The ...
anx's user avatar
  • 9,811
1 vote

Debug DKIM on MacOS X

I was able to get this working awhile ago on Server 5.3.1. Using your terminal command, I get: TESTING#1 example.com: default._domainkey.example.com => pass Here's what I have to set it up in ...
wdkelper's user avatar
1 vote
Accepted

Postfix/Amavis : send group messages separately and do not fail if one recipient fails

I had the exact same issue. I was able to resolve by adding a warn_if_reject in front of reject_unknown_recipient_domain in my smtpd_recipient_restrictions
Norman's user avatar
  • 26
1 vote
Accepted

Amavis : Can't connect to socket 127.0.0.1:* using module IO::Socket::IP: Connection refused

In your main.cf of Postfix you have the following line: content_filter = amavis:[127.0.0.1]:10024 Not a fault, just a side note of what I use to practice to avoid mix-ups: Use an unique identifier ...
cora's user avatar
  • 182
1 vote
Accepted

Amavis won't start on systemctl

Usually this message comes from a broken install / upgrade of the OS / a package. Your best bet is to run some commands and see if they fix the situation: apt update --fix-missing sudo apt install -...
Dario Fumagalli's user avatar
1 vote
Accepted

Configure Amavis with custom spamassassin rules

Amavis should read the standard configuration of spamassassin, so you can put your custom configuration in "/etc/mail/spamassassin/local.cf" (or similar) and it should just work.
SimoneLazzaris's user avatar
1 vote

In mac OS Server, why don't virus & filtering settings seem to have any effect?

Apparently the server team at Apple hasn't actually tested their filtering configuration in the real world, because the amavis settings do not actually stop any spam...they just tag it. Sometimes. To ...
JLG's user avatar
  • 21
1 vote
Accepted

Amavis crashing for unknown reason

To follow up with this question, I believe that the issue was indeed a shortage of memory. We doubled the memory for our server and the issue has yet to arise again. I'm surprised, however, that none ...
Wes Cossick's user avatar
1 vote

Postfix before-queue spam reject with amavis without sending out a bounce on OS X Server

The solution to enabling before-queue filtering with amavisd-new on OS X 10.11 is quite simple as most of the work has already been done by Apple, so here it is in case anyone wants to implement it on ...
Захар Joe's user avatar
1 vote

clamav error: mpool_malloc(): Attempt to allocate 8388608 bytes

In our case (Debian Wheezy) we also had to update the package clamav-freshclam. Maybe the mismatch between clamAV and freshclam had something to do with the error. sudo apt-get update && ...
martintama's user avatar
1 vote

clamav error: mpool_malloc(): Attempt to allocate 8388608 bytes

Same problem with me too. I upgraded the clamav package and restarted the clamd and postfix service. It worked for me.
Pratik 's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible