Spam not being delivered to spam folder

evil_smurf

Verified User
Joined
Mar 3, 2006
Messages
112
For some reason spam on literally just one of my email accounts on a domain is not being delivered to my spam folder, but instead my inbox.

Literally its just one email account, the other email accounts on this same domain are working as expected, and all spam to it is being delivered to their appropriate spam folders.

What could I look at as to the culprit for why it is acting this way? SpamAssassin on this domain is enabled, and the option "Send the spam to the appropriate users's spam folder." is checked.

Thanks!
 
You could try deleting the email account and then recreate it. You would loose all mail in the mailbox with this solution, so make sure you save anything important.
 
Thanks, but thats not very feasible. The account having issues is mine, and I have several gigs of email =)


Any other ideas? Configuration I could be looking at?
 
Is this a system or virtual account? (is the email part of a DA user or just an email account?).

Check that /etc/virtual/domain.example/filter.conf has "where=userspamfolder", and this should be in /etc/virtual/domain.example/filter:
Code:
[...]
    if
        $local_part is "username"
    then

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

    endif
[...]
 
Thanks for your help!

This email account is part of a DA user.

Here are the files in question. They look okay to me, I changed my username go hidden and put some stars in some email addresses that are blacklisted, but other than that nothing was changed:


# Exim Filter

# created by DirectAdmin, version 1.32.3
# Do not modify this file as any changes will be
# overwritten when the user makes a change.
# (data is only written to this file, not read)

if error_message then finish endif


if
$h_X-Spam-Level: contains "**********"
then
seen finish
endif


if
$header_from: contains "kaldiscoffeehouse@g***l.com"
then
seen finish
endif





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

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

endif
finish
endif


#end filter

0=type=email&value=kaldiscoffeehouse@g***l.com
action=action=drop
adult=OFF
high_score=10
high_score_block=yes
where=userspamfolder


I don't know what the heck it could be. Here is some headers from an email that was marked *****SPAM***** but dropped in my inbox instead of my spam folder:

From - Sun Feb 15 17:10:15 2009
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-path: <>
Envelope-to: [email protected]
Delivery-date: Sun, 15 Feb 2009 17:11:21 -0600
Received: from mail by mail.hidden.com with spam-scanned (Exim 4.67)
id 1LYq8v-000550-L0
for [email protected]; Sun, 15 Feb 2009 17:11:21 -0600
Received: from localhost by server1.hidden.com
with SpamAssassin (version 3.2.4);
Sun, 15 Feb 2009 17:11:21 -0600
From: "Tobias" <[email protected]>
To: <[email protected]>
Subject: *****SPAM***** l want to share A Valentine's Day Greeting with you
Date: Fri, 13 Feb 2009 23:55:19 +0100
Message-Id: <002301c98e2e$509631b0$6ba987cd@homefa0c67d147vabb>
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on server1.hidden.com
X-Spam-Level: ********
X-Spam-Status: Yes, score=9.0 required=3.0 tests=BAYES_20,RCVD_IN_PBL,
RDNS_NONE,STOX_REPLY_TYPE,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,
URIBL_PH_SURBL,URIBL_SC_SURBL,URIBL_WS_SURBL autolearn=spam version=3.2.4
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_4998A119.B40A729D"

This is a multi-part message in MIME format.

------------=_4998A119.B40A729D
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Spam detection software, running on the system "server1.hidden.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: Tobias has mailed to you a Valentine's Day ecard and wrote:
"I think about you always!" You can access this service at: http://kvho.dont-click-on-this.com/?code=37487d89793d53b339b87ba0191159
Your eCard will be available for the next 20 days. [...]

Content analysis details: (9.0 points, 3.0 required)
 
Ok, I have a problem with spam and spam filter.

It should be for each domain :
Code:
[...]
    if
        $local_part is "username"
    then

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

    endif
[...]

but it is :
Code:
[...]
   if
	$header_subject: contains "casino" or $message_headers contains "casino" or $message_body: contains "casino"
then
	save /home/username/Maildir/.INBOX.spam/new/ 660
	finish
endif

[...]

So how to change it for each domain ? And what to do to have the good code in new domains I create.
Because actually, spam detected by spam filters are not readable for users, because not send in the good directory.

Thanks for your help
 
I reply to myself...

I try to change it by hand, but as it his written in the filter file, DA rewrite file when I add word in spam filter...

So I have to find the file that DA used to overwrite filter and filter.conf files

Thanks for your help
 
Hello,

Go to:
User Level -> SpamAssassin Setup

Select:
Send the spam to the appropriate users's spam folder

right now, you would have this selected:
Redirect it to the catch-all ~/.spamassassin/spam folder.(or whatever the text for Maildir is)

John
 
Thanks !
It was very easy to solve... So much time lost for that...

But I was working on a french panel, and the translation wasn't so clear ! With english version, that's clear.

Thanks again :)
 
Back
Top