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 Report has extra newlines

Discussion in 'E-mail Discussions' started by Mango45, Apr 15, 2012.

  1. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    We did a upcp on April 5, and since then our Spam/Ham Report has extra newlines in it. This results in the user seeing everything in the report after the first double newline, because the mail program thinks that's where the message starts.

    I'd be delighted to know how to do one of the following:

    1) Return the report to its original format
    2) Disable the Ham Report, but not the Spam report
    3) If neither 1) or 2) are possible, disable both the Ham and Spam report

    Thanks :)
    Mango
     
  2. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
  3. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Solved it with instructions here: /http://divyakp.wordpress.com/2012/01/19/x-ham-report-in-cpanel/
     
  4. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    I'd like to bump this thread in case anyone has a better solution. Sometimes the Subject: header is below the spam headers, isn't recognized by the email client, and the filters that work based on the Subject: header don't work.

    If anyone could tell me how to return the Spam Report to the correct format, I would be delighted to know. For reference, this is what it looks like now. I need to remove the blank lines.

     
    #4 Mango45, Jun 3, 2012
    Last edited by a moderator: Jun 4, 2012
  5. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Bump :)

    Is this issue isolated to my specific server, or are others experiencing the same thing?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Instead of bumping this thread for 2 months, why not put in a ticket to cPanel Support?

    From in WHM, top right corner of any page, click the Support menu. On it, click Contact cPanel.


    GL!
     
  7. openaccess

    openaccess Active Member

    Joined:
    Jan 22, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    We are experiencing the same thing. Only two users from different domains have reported the issue. The latest one was using MS Outlook 2010. We opened a ticket recently, and this was the response we got,

    "I tested this in both Mail.app and Thunderbird and, while there is a new line in the x-ham header, the message did display correctly."
     
  8. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    That is a very good idea. Unfortunately, the two cPanel techs I dealt with, as well as a tech from my datacentre, did not know how to solve the problem.

    I also had users with Outlook that reported the problem. I noticed the AVG Email Scanner doesn't correctly handle the headers, so if you use AVG Email Scanner in conjunction with any other mail program (such as Thunderbird), you will have issues.

    I did find the solution on my own, and made it work with a hack via postupcp. I'll write it up later when I get the chance. It would be better if this was fixed permanently though.
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you please post the ticket # here?

    Thanks!
     
  10. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Do you work for cPanel? The subject of the ticket is "SPAM/HAM report has extra newlines"; if you work for cPanel you can probably find it from that.

    Here's the postupcp hack:
    /http://www.toao.net/506-fixing-spamassassin-spamham-reports-on-cpanel-servers
     
    #10 Mango45, Jul 5, 2012
    Last edited: Jul 5, 2012
  11. openaccess

    openaccess Active Member

    Joined:
    Jan 22, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Mango, so that script attaches the original message to avoid including the buggy lines of the HAM report?
     
  12. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    The script doesn't attach anything; it corrects the report to remove the lines that are causing the problem. The end result is you should see the message normally in your mail program, and you can check the headers of the email if you do wish to see the report.

    I hope it helps!
     
  13. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I do. I've located your ticket. In that ticket you asked how roll back and were provided instructions on how to do that, to LTS tier. You closed the ticket after that.

    I saw no indication of not knowing how to solve the issue though.
     
  14. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    That may have solved the problem; I didn't try it. I thought downgrading everything on the server was an extreme solution.
     
  15. gkgcpanel

    gkgcpanel Well-Known Member

    Joined:
    Jun 6, 2007
    Messages:
    217
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    FYI, I had a similar problem, but it would only effect users who were running AVG as their anti-spam/anti-virus program. Apparently AVG inserted an extra blank line before adding additional spam header information (IE: X-SPAM: AVG), this then caused email clients to display the extra spam header information.

    Took me a few days to figure out it was AVG, and an AVG support person on one of their forums confirmed the problem and said it would be fixed in a future release.
     
  16. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    In fact, AVG is actually performing as per the RFC. It isn't inserting the extra blank line; the blank line already exists. RFC2822 states "folding continuation lines cannot contain only white space" so AVG is assuming the blank line is the start of the message body. If AVG changed the behaviour, it wouldn't be to spec, so it will be interesting to see what they end up doing.

    This means my post earlier in the thread where I said "AVG Email Scanner doesn't correctly handle the headers" was probably incorrect. In spite of the fact that the results aren't as expected, my interpretation is that AVG is working as it should be.
     
    #16 Mango45, Jul 10, 2012
    Last edited: Jul 10, 2012
  17. gkgcpanel

    gkgcpanel Well-Known Member

    Joined:
    Jun 6, 2007
    Messages:
    217
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page