amavis-new X-Spam-Status question
Dino Edwards
dino.edwards at mydirectmail.net
Fri Apr 27 10:07:23 CEST 2018
Amavisd-new does not use spamd. It calls SA directly through perl.
Does your /etc/postfix/master.cf contain an extra smtp listener for amavis to re-inject email back to postfix?:
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
Does /etc/postfix/main.cf have a content filter line in order for postfix to inject email to amavis (assuming amavis is listening on port 10026):
content_filter = smtp-amavis:[127.0.0.1]:10026
From: amavis-users [mailto:amavis-users-bounces+dino.edwards=mydirectmail.net at amavis.org] On Behalf Of Computer Bob
Sent: Thursday, April 26, 2018 5:31 PM
To: amavis-users at amavis.org
Subject: amavis-new X-Spam-Status question
Greetings,
I have an Ubuntu 16.04 server running Postfix, Dovecot, Clamav, Amavis-new, Spamassassin.
Mails are passing spam checks and the headers do not show Razor and other settings that are in the spamassassin configs and used by spamassassin.
If I run the mail through spamassassin as user amavis, spamd, recipient, or the virtual mail folder owner, I get the following all the same:
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on (Redacted)
X-Spam-Flag: YES
X-Spam-Level: ********************
X-Spam-Status: Yes, score=20.1 required=4.0 tests=KAM_ASCII_DIVIDERS,
MISSING_DATE,MISSING_FROM,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,
NO_HEADERS_MESSAGE,NO_RECEIVED,NO_RELAYS,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,
SHARK_TANK_BODY,URIBL_DBL_SPAM,URIBL_RED,URIBL_SBL_A autolearn=spam
autolearn_force=no version=3.4.1
Content analysis details: (20.1 points, 4.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
2.5 URIBL_DBL_SPAM Contains a spam URL listed in the Spamhaus DBL
blocklist
[URIs: nourishingmomsnaturally.com]
0.0 URIBL_RED Contains an URL listed in the URIBL redlist
[URIs: nourishingmomsnaturally.com]
1.2 MISSING_HEADERS Missing To: header
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
7.0 SHARK_TANK_BODY BODY: No description available.
2.4 RAZOR2_CF_RANGE_51_100 Razor2 gives confidence level above 50%
[cf: 100]
1.7 RAZOR2_CHECK Listed in Razor2 (http://razor.sf.net/)
0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL
blocklist
[URIs: candybars.nourishingmomsnaturally.com]
-0.0 NO_RECEIVED Informational: message has no Received headers
0.1 MISSING_MID Missing Message-Id: header
1.8 MISSING_SUBJECT Missing Subject: header
0.8 KAM_ASCII_DIVIDERS Spam that uses ascii formatting tricks
1.0 MISSING_FROM Missing From: header
1.4 MISSING_DATE Missing Date: header
0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822 headers
Yet the mail headers as received are all showing as similar to this:
X-Virus-Scanned: Debian amavisd-new at (Redacted)
X-Spam-Flag: NO
X-Spam-Score: 0.01
X-Spam-Level:
X-Spam-Status: No, score=0.01 required=4 tests=[HTML_MESSAGE=0.001,
SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01,
URIBL_RED=0.001] autolearn=unavailable autolearn_force=no
It does not appear that the same checks are being run, for instance no Razor.
Could someone explain in detail how spamd or spamassassin is being called vi amavis and the associated configs so I can troubleshoot ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20180427/4efe44e6/attachment.html>
More information about the amavis-users
mailing list