Skip to main content

Questions tagged [amavis]

Amavis is an open source content filter for electronic mail, implementing mail message transfer, decoding, some processing and checking, and interfacing with external content filters to provide protection against spam, viruses and other malware. It can be considered an interface between a mailer (MTA, Mail Transfer Agent) and one or more content filters.

Filter by
Sorted by
Tagged with
1 vote
2 answers
133 views

How can I mitigate a flood of inbound emails that look legitimate to filters?

I have a mail server - postfix, amavis, dovecot. Currently one of my inboxes is being flooded with random email from all over the globe. It's like someone signed me up to 10,000 newsletters all at ...
Nick Wiltshire's user avatar
0 votes
0 answers
76 views

Postfix / Courier / Amavis - Move spam to junk folder

Running Postfix / Courier / Amavis / Spamassassin on my Debian 12 server. Using this setup for quite some time now. Everything is configured and works well (DMARC, DKIM SPF, MTA-STS etc.). Incoming ...
andy's user avatar
  • 101
0 votes
0 answers
37 views

Amavisd on OpenSUSE Leap 15.5 - use with exim - Can't connect to TCP port 10024 on 127.0.0.1 [Permission denied]

Like many amateur sysadmins, I'm taking advantage of the festive period to upgrade my mail server. Having battled with the vagaries of the HP Gen8 microserver to get Leap 15.5 up and running, all ...
GraceCourt's user avatar
0 votes
0 answers
55 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
0 answers
288 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
1 vote
0 answers
436 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
1 vote
0 answers
230 views

What are my server-side options for scanning email attachments for words and phrases?

I currently run an email system with Postfix/Dovecot and I am looking for a way to scan the contents of attachments (mainly doc(x) and pdf) for certain words and bounce the email back to the user with ...
Mark's user avatar
  • 11
1 vote
1 answer
450 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
93 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
734 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
402 views

Amavis + Monit: "Error receiving data from the mailserver -- Resource temporarily unavailable "

Good morning folks, I'm often getting these monit alerts, about once or twice a day: Connection failed Service amavisd Date: Wed, 20 Jul 2022 09:04:58 Action: restart Host: (hidden).com Description: ...
Michael Heuberger's user avatar
0 votes
1 answer
434 views

Why does status says it's dead and subsys locked, but it still running without issue?

Whenever I start Amavisd, the reports starting OK, but a status check says it's dead. $ service amavisd start Starting amavisd: [ OK ] $ service amavisd ...
dandan's user avatar
  • 158
0 votes
0 answers
768 views

Amavis Configuration on Ubuntu 20.04 / Port 10025 already in use

i try to configure amavis on my ubuntu 20.04 with working postfix and kopano. Postfix crashes with the following error: Jan 10 11:23:52 mail postfix/postfix-script[143585]: fatal: cannot execute /usr/...
nils50122's user avatar
1 vote
1 answer
1k 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
248 views

Where is the definitive home for amavisd-new-2.12?

I have amavis installed from epel, and it reports # systemctl status amavisd ● amavisd.service - Amavis mail content checker Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor ...
philolegein'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
3 votes
1 answer
415 views

Posftwd is double counting emails when used with Posftix and amavis

Our Postfix mail server uses Amavis with spam assassin for spam and virus scanning. We have it setup in a way , postfix forwards mail to amavis and amavis then re queue the email back to postfix to ...
Sreehari Nair's user avatar
1 vote
1 answer
323 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
522 views

xlsx extension file blocked in zimbra

So the issue is that i have been trying to send a mail from my server with xlsx file extension attachment but zimbra rejects the mail giving a message content is band BANNED CONTENTS ALERT Our ...
ram khanal's user avatar
0 votes
1 answer
439 views

AMAVIS discarding emails instead of tagging them or moving them to quarantine

I'm seeing many emails being discarded from my system. I'm per-user policies and have the following options set: spam_tag_level = -9999 spam_tag2_level = 7 (roughly - it changes on a per-user basis) ...
JVOD's user avatar
  • 1
0 votes
1 answer
795 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 votes
1 answer
833 views

Postfix removes "friendly" Email

I'm running Postfix, Dovecot and Amavis on Debian. Somehow an email from a colleague wasn't delivered and I started to search the logs. Here is what I've found. I don't know where the problem is. My ...
Marcel's user avatar
  • 1
0 votes
1 answer
969 views

multipart/mixed content type and boundary refused by Amavis

I'm writing a Ruby script that send SMTP email. The email is divided onto 3 parts: headers, body and attachment. Unfortunatly, I'm struggling to satisfy an Amavis requirement: properly writing the ...
Sumak's user avatar
  • 121
0 votes
1 answer
372 views

Postfix checks the message in Amavis even for non-existent mailboxes

Here is my problem: My email address is for example [email protected]. Everything is ok when Postfix receives email for address [email protected]. But spammers often use random mailboxes, for ...
user avatar
0 votes
0 answers
2k views

Setting UMask in systemd override.conf is ignored

I'm using amavisd on fedora33 and trying to change the file permissions on the socket it creates so nagios and nrpe can read the file in the amavis group. The file permissions currently are as such: # ...
Alex Regan'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
  • 458
1 vote
1 answer
468 views

Notifications from Amavis don't have addresses mapped by Postfix

After Amavis sends a message to $spam_admin, how do I get Postfix to apply the address rewriting in virtual_alias_maps before handing the message off to my local delivery agent? I've had Amavis + ...
Neil Smith's user avatar
0 votes
0 answers
713 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]:...
UnlegitApple's user avatar
4 votes
1 answer
6k 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, ...
Thom's user avatar
  • 41
3 votes
1 answer
7k views

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

I'm trying to setup a server using postfix, dovecot, amavis and opendkim for signing. OpenDKIM won't start, here is the output of journalctl -xe, after stopping and starting opendkim: Jul 21 21:54:17 ...
UnlegitApple's user avatar
1 vote
1 answer
1k views

How to speed up clamd@amavisd launch / get it to "start" on Amazon Linux 2

I recently upgraded clamav from I'm not sure which version, but whatever was current on EPEL on February 13th, to 0.102.3. Under the previous version, I had to set TimeoutStartSec in the systemd conf ...
philolegein's user avatar
2 votes
0 answers
435 views

E-mail body changed after DKIM signing

I've got a postfix e-mail server which uses amavisd-new for virus scanning, spam checking, DKIM checking and DKIM signing. I'm having issues with the DKIM signing in particular. Amavisd-new signs the ...
Yuusou's user avatar
  • 21
1 vote
0 answers
303 views

Mail going missing with Spamassassin, Postfix and Dovecot

I am setting up a new Centos8 server with Spamassassin, Postfix and Dovecot, ClamAV and Amavis. All was going well until I added a third domain, the first two worked fine for receiving and sending e-...
Imag1ne's user avatar
  • 235
3 votes
0 answers
557 views

Trusting "networks" (IPs) in SpamAssassin by DNS?

I have an IPv6-only server that runs Postfix with SpamAssassin (via Amavisd). I use a trusted relay service so that I can still receive emails from IPv4-only servers. It adds SPF headers for me and I'...
IBBoard's user avatar
  • 175
0 votes
1 answer
2k views

SOLVED: Amavis and dkim signature on incoming mails: header.s ignored

I am a little bit confused with how amavis process incoming mails. The Postfix service on my Zimbra server is configured to sign outgoing mails. And it works like a charm. Problem is mails sent to ...
MaxAuray's user avatar
  • 121
3 votes
1 answer
9k views

Amavis / Spamassassin - FORGED_SPF_HELO and SPF_HELO_PASS

I have a web server that sends out webform type emails via Postfix 3.3.0. No inbound. No extras. Receiving mail server is running same Postfix (but with amavis-new/spamassassin + dovecot/etc). These ...
B. Shea's user avatar
  • 1,049
0 votes
1 answer
1k views

Amavis release uses UNIX socket instead of inet tcp socket

I try to release an email out of the quarantine with Amavis-new using: sudo /usr/sbin/amavisd-release MAIL_ID SECRET_ID where MAIL_ID and SECRET_ID are ids found in the database table 'quarantine'. ...
Coanda's user avatar
  • 141
0 votes
0 answers
67 views

Enable spamassassin only for certain domains

I have a postfix/dovecot/spamassassin mail server with virtual users on mysql. The server have more than one domain. I need a way to leave disabled spammassassin by default and enable it only for ...
David's user avatar
  • 101
3 votes
1 answer
1k views

Postfix does not pass mails to Amavis, when received from Z-push

Im kind of staring myself blind in how get ActiveSync to work correctly with my mailserver, so maybe anybody here have an idea? The deal is mailserver is hosting four domains and I want that all sent ...
Lasse Michael Mølgaard's user avatar
0 votes
1 answer
1k views

How to cut-off spam (postfix+amavis-new)

I'm using postfix+dovecot+amavis-new+clamav+spamassassin+postgrey on my Ubuntu based VPS. Since some days i'm receiving a lot of spam, with a low level of spam score in headers. Common for all spam ...
msc3's user avatar
  • 1
0 votes
1 answer
169 views

Postfix (Maia Mailguard) relayhost update ignored

I have a postfix mail server used in conjunction with Maia Mailguard, Amavis, and clamav for spam. I've upgraded the primary mail server and it has a new IP address. I change main.cf and transport to ...
W.Jackson's user avatar
  • 113
0 votes
1 answer
607 views

Debug DKIM on MacOS X

I am setting up DKIM on MacOS X/Server using Amavis-new. Everything seems ok, by when I try to test it using sudo -u _amavisd -H amavisd -c /Library/Server/Mail/Config/amavisd/amavisd.conf testkeys ...
Janis's user avatar
  • 1
0 votes
1 answer
405 views

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

Background: We have a online shop which is using a SMTP server to send messages. When a customer place an order, the system sends the confirmation to the customer's address (A), and a copy to other ...
lepe's user avatar
  • 469
0 votes
2 answers
2k views

clamd socket error in conjunction with amavisd (used for postfix) on CentOS 7

I can't seem to figure out a problem after a few hours of trouble-shooting and looking for similar cases. Like ohter email servers in the exact same configuration, the affected one is based on CentOS ...
cora's user avatar
  • 192
0 votes
1 answer
3k views

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

Trying to debug mail server, now I get this error which I feel should be the cause of the server not working : Mar 17 15:06:24 ks4000003 amavis[2001]: (02001-01) (!)connect to 127.0.0.1:* failed, ...
guylabbe.ca's user avatar
0 votes
0 answers
858 views

Postfix defers mails - Amavis not running on port 10024

I recently upgraded from Debian Squeeze (6) to Jessie (8) and the mail server seems to be broken. I did not change anything in the Postfix config and everything was working fine before. From what I ...
guylabbe.ca's user avatar
0 votes
0 answers
1k views

Amavis decide_mail_destiny crash

After upgrading to FreeBSD 12 I'm experiencing issues with amavis from time to time. The reason for the crash in unclear for now. A simple kill -9 $amavispid && service amavids start does ...
Daywalker's user avatar
  • 495
0 votes
1 answer
140 views

How to interpret the debug output from Amavis->Spamassassin?

Could please someone explain how Spamassassin build the following strings: Oct 17 14:00:30 server amavis[29497]: (29497-02) SA dbg: uridnsbl: domain amazonaws.com in skip list, host sns.eu-central-1....
kbu's user avatar
  • 255
2 votes
1 answer
11k views

how to whitelist domain on amavis?

i have some troubles recieving mails from specific domains. My server recieves mails from gmail for example no problem. Tried a bunch of guides to whitelist sender domain but still get the same ...
zimbraproblems's user avatar
2 votes
2 answers
3k views

Postfix - Rspamd + amavis

Currently I have Postfix with Amavis, Spamassassin, Clamav and all the bells and whistles up and running. I would like to add RSpamd to the configuration, I don't want to replace Amavis, just keep ...
InToSSH's user avatar
  • 45