spam mails not going to spamfolder

enginaar

Verified User
Joined
May 20, 2004
Messages
158
Location
Turkiye
Hello,

I've configured spamassassin to send spam mails to users spamfolder but some mails are going to inbox although its labeled as spam. How can it be happen?

It has a header like below

From: [email protected]ital (Mail Delivery System)
Date: Mon, 12 Jul 2010 11:09:54
To: <[email protected]>
Subject: *****SPAM***** Undelivered Mail Returned to Sender

Spam detection software, running on the system "name.server34.com", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.

Content preview: This is the mail system at host endian.blhospital. I'm sorry
to have to inform you that your message could not be delivered to one or
more recipients. It's attached below. For further assistance, please send
mail to <postmaster> [...]

Content analysis details: (9.7 points, 3.1 required)

pts rule name description
---- ---------------------- --------------------------------------------------
1.3 RCVD_IN_RP_RNBL RBL: Relay in RNBL,
https://senderscore.org/blacklistlookup/
[61.19.152.110 listed in bl.score.senderscore.com]
1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT
[61.19.152.110 listed in bb.barracudacentral.org]
1.7 URIBL_DBL_SPAM Contains an URL listed in the DBL blocklist
[URIs: misterplan.ru]
0.0 HTML_MESSAGE BODY: HTML included in message
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
3.4 HTML_SHORT_CENTER HTML is very short with CENTER tag
0.3 AWL AWL: From: address is in the auto white-list
 
We see this from time to time as well, but we've never been able to discover a reason. It's erratic, and as such is hard to find/fix.

What we've done is manage it with local (client-side) filtering.

Jeff
 
This is indeed erratic issue.

I wonder, is there a way to set up some sort of filter to send messages with specific subject (i.e all of my spam messages are automatically marked with ** SPAM **) to the spam folder? This way perhaps messages would end up in the spam folder.
 
My understanding is that's what we're doing.

Perhaps DirectAdmin staff can help us understand this better.

Jeff
 
Hello,

Based on the fact that the headers are being changed, spamd is in fact working correct. The issue would be with the email filter file:
/etc/virtual/domain.com/filter

where exim may not be calling it or using it correctly.

If it's random, then my only guess right now would be the exim binaries.
Try a source recompile of exim:
http://help.directadmin.com/item.php?id=125

John
 
I have reinstalled exim form the source as suggested but it still did not resolve the issue (yes, I restarted it after the install). E-mails are still ending up in inbox folder.

The /filter file is the following:


Code:
if error_message then finish endif


if
    $h_X-Spam-Status: contains "Yes,"
then
    if
        $local_part is "admin"
    then

        save /home/admin/Maildir/.INBOX.spam/new/ 660
    else
        save /home/admin/imap/$domain/$local_part/Maildir/.INBOX.spam/new/ 660

    endif
    finish
endif
 
Back
Top