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.

Reason why SpamAssassin detected message as spam?

Discussion in 'E-mail Discussions' started by jmginer, Feb 22, 2017.

Tags:
  1. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Benifato, Spain
    Hello, in order to improve the content of the e-mail and reduce the spam score, it's possible to see the values that SpainAssasin has taken to determine that a e-mail is considered as spam?

    In /var/log/exim_mainlog I only see:

    "SpamAssassin as xxx detected message as spam (5.4)"

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can view the header of an individual email in your email or webmail client to see information about how SpamAssassin scored a message.

    Thank you.
     
  3. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Benifato, Spain
    Sorry, I forgot to say that I mean on outgoing messages.

    On Exim config, I have:

    Code:
    Scan outgoing messages for spam and reject based on defined Apache SpamAssassin™ score = 5
    So, the message is not sent.

    Is for this reason that I want to know how spamassasin has scored the message, to know what I need to modify to ensure that it will delivered.

    There is some option to show SpamAssasin logs? or add more verbosity on exim_mainlog?

    Thanks!
     
  4. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    172
    Likes Received:
    8
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hi,

    I can't think of an easier way than calling spamassassin directly and see the score printed on console, just save the message source (headers and body) somewhere in your server and run:

    /usr/local/cpanel/3rdparty/bin/spamassassin -D < /path/to/the/spam.mail
     
    cPanelMichael likes this.
  5. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Benifato, Spain
    How? if the mail is refused by the server...
     
  6. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    172
    Likes Received:
    8
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    You can retrieve the email you tried to send by going to your Sent folder for either POP3/Webmail, it should be there despite the mail server refusing it from sending.
     
  7. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Benifato, Spain
    That depends if the aplication used to send the e-mail it's configured to store a copy of the e-mail in the "Sent" folder. Wich is not my case, because my customer is using some strange application based in Windows with a SMTP configuration and don't stores any copy in the Sent folder.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You could check future messages by enabling the "Archive" feature in cPanel for the account facing the issue to ensure a copy of one of the affected messages is stored on the account:

    Archive - Documentation - cPanel Documentation

    Thank you.
     
  9. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Benifato, Spain
    The e-mail message never appears in the archive, because is refused by the server.
    This is the reason that I opened this post...
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you for clarifying the issue. As I understand, you are seeking the data that's typically included in the message header of an email that is scanned by SpamAssassin. Exim doesn't include this information in the message header if it's rejected at SMTP time. However, you can view the general message header information (e.g. subject, user-agent, content type) for messages that Exim rejects in the following log file:

    /var/log/exim_rejectlog

    Thank you.
     
Loading...

Share This Page