Send to spambox ?

ErikR

Verified User
Joined
Aug 18, 2005
Messages
20
In 'SPAM Filters' can I choice for 'Drop Email' or 'Send to spambox' (DA v1.24.3).
Who knows what 'Send to spambox' means? Where can I find the spambox?

regards, Eric
 
Spam gets saved in ~/.spamassasin/user_spam/accountname
This is not available through IMAP?
 
Wish that was true.

That file only contains internal data.
See ~/imap/example.com/user/mail/spam

Spam is filling up in ~/.spamassasin/user_spam/[email protected] and this is not read by IMAP, at least not here.

Checked that already, as the latter has spam in it.
 
The options you have in DA for spam are:

1: Send the spam to it's intended recipient.
2: Send the spam to the ~/.spamassassin/spam folder.
3: Send the spam to the specified account's spam folder.
4: Delete the spam.


You should specify the 3th option to throw it to the "imap"/account spam folder.

It looks like you specified the 2nd option as that will send it to the mentioned folder.
 
Again, this is set like it should.
Is there a config file to verify the working of those options? Like if it's setting correctly?
 
/etc/virtual/[domain]/filter

PHP:
if
    $h_X-Spam-Status: contains "Yes,"
then
    if
        $local_part: is "[user]"
    then
        save /home/[user]/.spamassassin/spam 660
    else
        save /home/[user]/.spamassassin/user_spam/$local_part@$domain 660
    endif
    finish
endif

Guess you probably already know what's going wrong :)

$local_part: is "[user]"

As far as I can tell from the logs it should show it is for account [user] if it's not it's going to /user_spam/

forwarders ?
 
Last edited:
There are forwarders set to that address as well. Though from what I can see that is not the case.

My only guess is that changing this to
save /home/[user]/imap/$domain/$local_part/mail/spam 660

would solve it, but being merely a guess I don't have the guts to put it live :)

Anything else? When changing that option, where is the actual result stored?
 
When you set the CORRECT spamassassin option in DA the filter would change to:

if
$h_X-Spam-Status: contains "Yes,"
then
if
$local_part: is "[user]"
then
save /home/[user]/.spamassassin/spam 660
else
save /home/[user]/.spamassassin/user_spam/$local_part@$domain 660
endif
finish
endif

You could try to set the other one to the same :) YES :)

save /home/[user]/.spamassassin/user_spam/$local_part@$domain 660 >> save /home/[user]/.spamassassin/spam 660
 
Sorry, got it all wrong.
Though this was exactly my point.

/home/[user]/.spamassassin/user_spam/$local_part@$domain

Is not accessable by IMAP as it's using the folder:
/home/[user]/imap/$domain/$local_part/mail/spam

I don't quite fancy hacking into config files which can be overwritten easilly. A temporary solution is no solution at all.
 
Last edited:
You could try it and if it works you can replace the template probably.

If you could send yourself the GTUBE as email:

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

Just mail yourself this and it will be marked as spam and post your exim maillog info about this message.
 
Created a symlink to solve it.
This account had been moved from a cPanel server so there might've gone something wrong.

Haven't check it with other accounts, but at least it works now.
 
Back
Top