The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Spam Assassin subject rewrite stopped working

Discussion in 'General Discussion' started by verdon, Sep 23, 2004.

  1. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Hi,

    Spam Assassin auto-updated for me and subject re-writing is no longer working. Spam Assassin is running and the report is in the email body, just no subject re-writing. It still seems to be enabled in the domain cpanels, just not happening though. Has anyone else noticed this? Any thoughts?

    Thanks,

    WHM 9.4.0 cPanel 9.4.1-S65**
    RedHat 8.0 - WHM X v3.1.0
     
  2. AQHost

    AQHost Active Member

    Joined:
    Apr 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    6
    Same here. If you read the release notes for SA 3.0 you'll see that the format of the subject rewrite tags in the user_prefs file has changed from:

    rewrite_subject 1
    subject_tag *****SPAM*****

    To:

    rewrite_header Subject *****SPAM*****

    Unfortunately when cPanel installs the latest version of SA nothing is done to update the user_prefs files on the server. The SA interface within your users' control panels still writes the old format too. Hopefully cPanel will put a fix in place for this eventually, but otherwise feel free to manually adjust every single user_prefs file on your server and warn every customer not to update their SA settings :eek:

    Simon.
     
    #2 AQHost, Sep 23, 2004
    Last edited: Sep 23, 2004
  3. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Thanks Simon :)

    I can manually correct them for now... not too too many domains and no users have cpanel access so I can be assured it shouldn't get over-written that way. Silly and obvious newb question... after I correct the user_prefs, do I need to restart the service, or are the user_prefs read at each request?

    Thanks again,
     
  4. AQHost

    AQHost Active Member

    Joined:
    Apr 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    6
    AFAIK the user_prefs files are read on a per-request basis. If you changed the main /etc/mail/spamassassin/local.cf file then you would need to restart spamd, but for your purposes it shouldn't be necessary.

    Simon.
     
  5. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Thanks again Simon :)
     
  6. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Changed local.cf and it works perfectly. Is it likely this file will be overwritten by cPanel during nightly updates though?
     
  7. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    Same problem for me as well..

    lets hope there is a cpanel fix soon so there's no chance of over-writes and so on..

    HURRY, this error/issue breaks the 'spam' filter in my outlook as it looks for the re-written subject, and i get way too much spam...
    *changes local user_prefs file as needed*
     
  8. AQHost

    AQHost Active Member

    Joined:
    Apr 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    6
    A cPanel solution to this would be good, but in the meantime happily a good friend of mine came up with a scripted solution that will automatically rewrite all user_prefs files on the server with the new format:

    http://www.cpguru.com/content/view/38/37/

    I've used this on multiple production servers and can verify it works perfectly. Set it to run via cron every few hours (in case users change their settings) and you're all set.

    Simon.
     
  9. zim01

    zim01 Member

    Joined:
    Sep 27, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    same problem

    Hi All,

    All od sudden I'm tons of spam...found out now running SA 3.0

    changed all the local user_pref files to

    required_score 5.0
    rewrite_header Subject ****SPAM(_SCORE_)****

    Headers are being rewritten, but spam isn't being deleted?

    Help
     
  10. Scott Greczkows

    Scott Greczkows Well-Known Member

    Joined:
    Feb 5, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Do you remove the line rewrite_subject 1 ?

    Or just add the new line after rewrite_subject 1?

    Thanks
     
  11. twrs

    twrs Member

    Joined:
    Nov 12, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    I had the same problem and fixed it by this command:
    replace "subject_tag *****SPAM*****" "rewrite_header Subject *****SPAM*****" -- /home/*/.spamassassin/user_prefs

    Hope this helps! :)
     
  12. zim01

    zim01 Member

    Joined:
    Sep 27, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    removed....still got spam resorted to a exim filter to fix
     
  13. rboudrie

    rboudrie Registered

    Joined:
    Jul 27, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Spamassassing 3.0 problems

    There are are more problems that just the rewrite_subject directive with the Cpanel 3.0 spamassassin install. For example, the file in /usr/spare/spamassassin are not being upgraded to 3.0; still contain a "require_version 2.55" directive in my case - which prevents the spam assassin from using these rules.

    The problems are sufficiently widespread that Cpanel really needs to get on this. I submitted a ticket to Cpanel and am optomistic about a response.
     
  14. Christleo

    Christleo Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Need that to be fix asap!

    My spam is coming in again

    -bad bad bad-
     
  15. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16

    I tried your script, but all it did was go through and make all of my user_prefs blank.....
     
  16. gemininetcom

    gemininetcom Active Member

    Joined:
    Nov 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    SA3 :: found fix

    We encountered same problem since SA3 was installed. Actually we found 2nd bug, but could be that 2nd bug is linked with cPanel:

    -- Every time one accesses the SA conf file in cPanel, an additional line "rewrite_header *****SPAM*****" is added

    Solution found: in SA conf file, change rewrite_header "*****SPAM*****" into ""Subject *****SPAM(_SCORE_)****"
     
  17. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    There is a file on the server to fix them!

    /usr/local/cpanel/bin/spamassassin3update


    Also just to note I found today that a problem that was going on was that when the spamassassin upgrade took place exim was not restarted to load the new spamd. This basically means that headers were reading as still using 2.64 even though spamassassin on the sever had been upgraded to 3.0. Since the rewrite subjest is different between the two, the setting was missing to enable it for 2.64 as the user_prefs had already been updated for 3.0. Just to note if you are seeing 2.64 in your mail headers still try restarting exim (service exim restart) from shell.

    Oh just to note there is a bugzilla report on this as well which was brought to my attention by Dan @ Cpanel Tech support. Here is the link...

    http://bugzilla.cpanel.net/show_bug.cgi?id=1309
     
  18. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16

    I did this update, and everything seemed to be working for a few days....then yesterday it just stopped working again....this time no spam headers at all....?
     
  19. rboudrie

    rboudrie Registered

    Joined:
    Jul 27, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Same Problem

    I also had the same problem - the spam filter just stopped working, even though I have the corrected rewrite_header in my user_prefs files.

    Cpanel really needs to get this fixed once and for all.
     
  20. marius

    marius Well-Known Member
    PartnerNOC

    Joined:
    Jun 10, 2002
    Messages:
    157
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest

    same thing here
     
Loading...

Share This Page