Spambox problem

Peter Verrill

Verified User
Joined
Nov 19, 2003
Messages
46
Hey,

If an email is sent to an forwarded address (alias) and is caught by the filter, instead of being put in the spambox of the address it is forwarded to, it stores it in the name of the alias:
/home/user/.spamassassin/user_spam/alias@domain

How can this be corrected to:
/home/user/.spamassassin/user_spam/forwardedto@domain ?

Peter Verrill
 
You'll probably need to put this logic into the spamfolder filter. Something like:
Code:
if "${if exists {|HOME|/.spamassassin/user_spam/$local_part@$domain} {true}}" is true then
      save  /|HOME|/.spamassassin/user_spam/$local_part@$domain 660
    else
      save  |HOME|/.spamassassin/spam 660
endif
This may not be exactly what you want, but you get the idea... You'll probably want to do an lsearch on the aliases file to determine if the $local_part is a forwarder and if so determine what to do with the message. For example, if you're forwarding offsite, do you really want to forward spam? Or would you rather save it in the owner's spambox?
 
I was thinking that changing the order in the DIRECTORS CONFIGURATION part of the exim.conf file would work would work?

However I'm not sure exactly what needs changing or if it will work.

Your code could easily be changed to provide exactly what I am after however I need a more permanent solution that would work over all accounts.

Peter Verrill
 
I don't think you can change the directors... you really want the spam director to be first, and that's what catching the message.

The change to the filter applies sitewide, you just need to change it in the template and then apply the template to all users (which I don't think you can do automatically with that particular template).

You might also check with DA support... Technically, I'd call that a bug in the implementation.
 
Back
Top