This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Spam header

Heya all,

I'm currently quarantining spam as the filter does pick up the occasional business related message, and I'll go through what's in there every few days to see if there's anything that should be allowed through.

The annoying thing is, once you release the message from quarantine it arrives with a big **SPAM** text appended to the messages subject. 

Is there a way to release quarantined messages so that it arrives normal, without additons to the subject? It really freaks the users out when they see it and instinctively they reach for the delete key...!

Thanks!
Mateo.  


This thread was automatically locked due to age.
Parents
  • Can you get around on the Linux command line?

    Edit the following file (using the mighty joe editor):

    /var/chroot-smtp/spamassassin/conf/mail/spamassassin/local.cf

    Remove the # comment character from the line that has rewrite_subject 0

    then you can restart SMTP (and transitively spamassassin) by doing an:

    /sbin/init.d/smtp restart

    P.S. I LOVE reading somebody else's Perl code; Not!
         
Reply
  • Can you get around on the Linux command line?

    Edit the following file (using the mighty joe editor):

    /var/chroot-smtp/spamassassin/conf/mail/spamassassin/local.cf

    Remove the # comment character from the line that has rewrite_subject 0

    then you can restart SMTP (and transitively spamassassin) by doing an:

    /sbin/init.d/smtp restart

    P.S. I LOVE reading somebody else's Perl code; Not!
         
Children
  • Hmmm, that directory doesn't appear to exist on my ASL box...

    /var/chroot-smtp is a link to /var/chroot-mail/smtp. There's a spamassassin directory in here, but there's only a share directory and a spamd.exe  executable in there, no conf. 

    Although, under share there is another spamassassin directory that contains a bunch of .cf files. No local.cf though. Editing one of these files has a commented header saying to change settings in the /etc/mail/spamassassin/local.cf, which doesn't actually exist. 

    So I don't know where this local.cf files is. Is there a way to search for files in Astaro? 

    Thanks,
    Mateo/   
  • what about /var/chroot-mail/smtp/etc/exim.system_filter ?

    read u
    o|iver

      
  • And the Linux way to search for files is find / -name whatever; you can replace / with wherever you want to start looking.

    I guess our 4X versions are different...
      
  • SecApp,

    yep - seems that you are on an older patch level. We have merged /var/chroot-pop3 and /var/chroot-smtp to /var/chroot-mail, think it was Up2Date 4.009. Many changes were applied to the pop and smtp proxy.

    Don't want to be picky but 'find' as a single command  wouldn't have been helpful in this case but a 'find . -type f | xargs grep -i *SPAM* ' does the trick.

    read u
    o|iver  
  • Oliver,

    > 'find . -type f | xargs grep -i *SPAM* '

    from /var/chroot-mail/smtp this is useful, but from / not: after about one minute I just got some binary code (av patterns) etc.  
  • it would be even more useful in /var/chroot-mail/smtp/etc 
    O.K. this command would be an overkill since there are no 
    subdirectories [;)]

    Agree
    o|iver  
  • My oversight about the file not being in the same spot; I wasn't expecting such a radical change for mere patching, and my lab machine wasn't patched because I don't have it on the 'net and am frequently reinstalling it.

    As for voluminous find results, I did say that you can pick where you want to start the finding from by replacing the /...
       
  • Cool, /var/chroot-mail/smtp/etc/exim.system_filter is where it changes the subject. I've commented it out, restarted smtp, and now just have to wait for some spam to get caught and see if it works.

    Thanks all!! [:)]

    Mateo