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
2 votes
2 answers
10k views

Error with clamd amavisd CentOS 7

I am getting issue with clamd and amavisd please see error message below I am running an email server on CentOS 7.3..... amavisd and clamd seems working fine, but they keep jump up with errors every ...
0 votes
0 answers
21 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 ...
2 votes
2 answers
639 views

email server: refuse old emails and emails in the future

I use postfix, dovecot 2.1 and amavis for my emails. How can I refuse emails (from other email servers) that date are to old (e.g. >=1 month) or to new (eg. >=1d in the future)?
0 votes
0 answers
23 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 ...
0 votes
0 answers
35 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 ...
2 votes
1 answer
467 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....
0 votes
0 answers
166 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/...
0 votes
0 answers
99 views

Amavis: No decoder for .F/No ext program for .F, tried: unfreeze, freeze -d, melt, fcat

I am using amavis for my Debian 11 mailserver. I managed to set almost all configs correct but there is a problem scanning .F files because no decoder is found. Starting amavis tells me: Jun 17 10:31:...
1 vote
0 answers
318 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 ...
1 vote
1 answer
303 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 ...
2 votes
0 answers
404 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 ...
1 vote
0 answers
187 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 ...
-1 votes
1 answer
645 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 ...
0 votes
1 answer
77 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 ...
1 vote
1 answer
338 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 ...
1 vote
1 answer
2k views

amavis/spamassassin not processing URIBL_DBL_SPAM or RCVD_IN_SBL_CSS - SOMETIMES

I have a mail server set up using iRedMail, which uses postfix, mysql for virtual domains, amavis-new, spamassassin, and a few other tools. There is a lot of spam that is getting through the spam ...
1 vote
1 answer
2k views

Ubuntu server not using localhost IP for internal communication

I am using Ubuntu Server 13.04 on my mail system. I am just setting the Postfix and Amavis. In every config for communication I am using 127.0.0.1 as IP address to pass mails to amavis. When I look to ...
0 votes
1 answer
3k views

Zimbra 8.6 sends some mail into black hole

I have a Zimbra installation running on Centos 6.6: Release 8.6.0_GA_1153.RHEL6_64_20141215151155 RHEL6_64 FOSS edition. I have one account on the server that receives mail forwarded from another ...
0 votes
2 answers
10k views

CLAMAV on Centos Mail Server: Can't connect to UNIX socket clamd.sock

In my Centos 6.4 server, I am using Postfix and Dovecot with Amavis/ClamAV filter. Lately I have been trying to solve my spam problem(only occurs in Gmail and Hotmail) so I've been tailing logs. ...
0 votes
1 answer
346 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: ...
9 votes
3 answers
19k views

AMaViS: missing X-Spam-Status header

I set up a mail server with Dovecot, Postfix and AMaViS on Debian Squeeze following the tutorial on workaround.org (ISPmail tutorial for Debian Squeeze). It uses virtual domains and stores the domains,...
0 votes
1 answer
371 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 ...
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[...
2 votes
1 answer
10k 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 ...
0 votes
0 answers
650 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/...
1 vote
2 answers
2k views

Spamassassin - add every header

I am using spamassassin via Amavisd-new. I have amavisd set to include headers on spam and ham messages via "$sa_tag_level_deflt = -9999.0;" 2 questions... a) I want to be sure I am configured to ...
4 votes
1 answer
5k 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, ...
8 votes
2 answers
14k views

Optimal parameters set for Postfix "smtpd_recipient_restrictions"

we've inherited the DNS from another ISP and now our mail server is bombed by about 1000 emails per minute, 99.99% of these emails are just spam. We're trying to optimize the filtering/rejecting the ...
1 vote
1 answer
996 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 ...
0 votes
1 answer
218 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 ...
0 votes
1 answer
464 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 ...
3 votes
1 answer
384 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 ...
7 votes
2 answers
12k views

DKIM on postfix relay server

I have a postfix/amavis relay server, with the domain name mail.example.com. It will be a relay for dozens of VPS's, which will have domains like hostname.example.net. So i have actually two ...
1 vote
1 answer
360 views

route all spam to a specific account with amavisd-new and SpamAssassin

I've just set up an MTA using postfix, amavisd-new and SpamAssassin (and ClamAV but not relevant for this question). This MTA sits in front of our mail server and handles scanning of mail for spam and ...
1 vote
1 answer
4k views

Connection refused by AMAVISD-NEW

I found here many information to set a AWS server on my own. I installed the DKIM patch and it's work great, but now I can't send mails. I had already problems sending mails, but now are deeper. Some ...
0 votes
1 answer
410 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) ...
0 votes
1 answer
744 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 ...
-1 votes
2 answers
5k views

run_av (ClamAV-clamd) and ClamAV-clamd av-scanner FAILED - unexpected

I get a strange error when scanning email. Sep 17 15:13:26 mail amavis[616]: (00616-02) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/lib/amavis/tmp/amavis-20140917T141903-00616-...
0 votes
1 answer
846 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 ...
0 votes
1 answer
356 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 ...
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: # ...
1 vote
2 answers
463 views

/usr/sbin/amavisd-new - why is pcmd/regex not working for this command in csf.pignore?

For some reason I cannot get CSF's LFD (/etc/csf/csf.pignore) to ignore amavisd-new running via perl. The daemon runs via /usr/bin/perl /usr/sbin/amavisd-new (some mode) however it seems that when I ...
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 ...
1 vote
1 answer
414 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 + ...
2 votes
1 answer
2k views

Amavis and SpamAssassin won't mark junk email as spam in second domain

I'm currently setting up amavis and spamassassin with postfix. So far SpamAssassin blocks and bounces Spam. If I set $final_spam_destiny to D_PASS the mail gets through, but the $sa_spam_subject_tag ...
0 votes
0 answers
654 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]:...
3 votes
1 answer
6k 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 ...
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 ...
0 votes
1 answer
393 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 ...
8 votes
2 answers
16k views

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

How do I turn off "UNCHECKED contents in mail FROM" mails sent by Amavis to the postmaster of the domain every time a user sends an encrypted mail. The setup is a Debian 7 with postfix and amavisd.