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.

Spamassassin headers in all mails

Discussion in 'E-mail Discussions' started by Fbarajas, Apr 12, 2017.

Tags:
  1. Fbarajas

    Fbarajas Active Member

    Joined:
    Jul 15, 2004
    Messages:
    42
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Playa del Carmen, Mexico
    Hi!

    Is there a way to include spamassassin headers in ALL mails and not just in some? I found this article, but it's 2009: Exim, Apache SpamAssassin and X-Spam-Status Header

    Any suggestions?

    One customer is getting spam mails, but some come without spamassassin headers.

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide an example of the information you'd like to see in the header of every email? For instance, which lines are added to the header on some messages, but not others?

    Thank you.
     
  3. Fbarajas

    Fbarajas Active Member

    Joined:
    Jul 15, 2004
    Messages:
    42
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Playa del Carmen, Mexico
    I mean the usual "spamassassin" headers, for example:

    X-Spam-Status: No, score=-0.5
    X-Spam-Score: -4
    X-Spam-Bar: /
    X-Ham-Report: Spam detection software, running on the system "servidor.muchoespacio.net",
    has NOT identified this incoming email as spam. The original
    message has been attached to this so you can view it or label
    similar future email. If you have any questions, see
    root\@localhost for details.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That should appear in the header of any message as long as SpamAssassin is enabled for the account. Could you let us know the output from /var/log/exim_mainlog for one of the messages that doesn't include this information in the message header? EX:

    Code:
    exigrep MSGID /var/log/exim_mainlog
    Replace MSGID with the message ID found in the header of an affected message.

    Thank you.
     
  5. Fbarajas

    Fbarajas Active Member

    Joined:
    Jul 15, 2004
    Messages:
    42
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Playa del Carmen, Mexico
    Here you are:

    Code:
    root@servidor [~]# exigrep 1cyIQ9-003lsZ-JB /var/log/exim_mainlog
    2017-04-12 08:34:54 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1cyIQ9-003lsZ-JB
    
    2017-04-12 08:34:54 1cyIQ9-003lsZ-JB H=mail-oln040092002090.outbound.protection.outlook.com (NAM01-SN1-obe.outbound.protection.outlook.com) [40.92.2.90]:23328 Warning: Message has been scanned: no virus or other harmful content was found
    2017-04-12 08:34:54 1cyIQ9-003lsZ-JB <= someusr@hotmail.com H=mail-oln040092002090.outbound.protection.outlook.com (NAM01-SN1-obe.outbound.protection.outlook.com) [40.92.2.90]:23328 P=esmtps X=TLSv1.2:ECDHE-RSA-AES256-SHA384:256 CV=no S=38387 id=CY4PR15MB1254564E3E69F5C416D50EF6C7030@CY4PR15MB1254.namprd15.prod.outlook.com T="Re: MENU \"ANTOJITOS EL PARAISO\"" for someusr@example.com.mx
    2017-04-12 08:34:55 1cyIQ9-003lsZ-JB => someusr (someusr@example.com.mx) <someusr@example.com.mx> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <someusr@domain.mx> 6SB5Lf4s7lhLsA0Awi/dpA Saved"
    2017-04-12 08:34:55 1cyIQ9-003lsZ-JB Completed
    
    I checked, and Spamassassin is activated on the account "someusr"

    Maybe the problem is that the sender's mail is on the same server?
     
    #5 Fbarajas, Apr 12, 2017
    Last edited by a moderator: Apr 12, 2017
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To confirm, is this an email sent to an email account that's hosted on the same server? If so, SpamAssassin will automatically allow these emails to pass through.

    Thank you.
     
Loading...

Share This Page