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.

cPanel & SpamCop - how to make it work?

Discussion in 'E-mail Discussions' started by lisali, Sep 20, 2016.

  1. lisali

    lisali Registered

    Joined:
    Sep 20, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Hi all!

    I have a number of email addresses that have been compromised, so I'm automatically forwarding them to SpamCop. However, it seems that cPanel forwarding does not play nice with SpamCop, and I often get these errors:

    "SpamCop encountered errors while saving spam for processing:
    Message forwarded in html wrapper.
    When forwarding spam, use a MIME attachment or text-type message with
    the spam enclosed. Do not send spam in HTML format. Sometimes this
    error is caused by using a "resend" feature to forward spam.
    HTML spam should be sent in text (source code) format."

    OR

    "SpamCop encountered errors while saving spam for processing:
    SpamCop could not find your spam message in this email"

    How can I make this work?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know how you are automatically forwarding these emails to SpamCop? You may need to use a different method to ensure you are not forwarding messages in HTML format, based on that output.

    Thank you.
     
  3. lisali

    lisali Registered

    Joined:
    Sep 20, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Thanks so much for your message!

    Emails are forwarded via Forwarders>>add forwarder.

    Is there a different way to do it?

    Thanks!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    That's a valid method of forwarding emails, but SpamCop is advising to not include HTML in the forwarded messages. There's no native option in cPanel to automatically do this, but you could create a custom script, and setup an email filter to pipe the message to that script to handle the forwarding:

    How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation

    The following third-party URL should help you get started if you want to utilize a custom script for this purpose:

    parsing raw email in php

    Thank you.
     
  5. lisali

    lisali Registered

    Joined:
    Sep 20, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Thanks so much for your message. Yikes! Both of those seem quite complicated and I'm not a programmer. I guess there's not an easy way to do this?

    Many thanks!
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can find a list of system administration services at:

    System Administration Services | cPanel Forums

    However, you may also simply want to utilize the SpamCop RBL without forwarding the emails, as you should still receive the same level of protection.

    Thank you.
     
  7. lisali

    lisali Registered

    Joined:
    Sep 20, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Thanks for your message!

    This would not work in the same way. We use email forwarding in cPanel to forward anything sent to any of our email addresses that have been compromised directly to SpamCop. The SpamCop RBL is an IP block list, and a lot of spam uses different IPs.

    Is there any chance of cPanel adding an option to forward certain email addresses in the format that would be accepted by SpamCop?

    Thank you!
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The "Pipe" option exists for the purpose of using custom scripts in cases like this. I was able to find an example script that SpamCop offers at:

    https://www.spamcop.net/reporter.pl

    However, it's likely to still require additional modification. Also, it looks like SpamCop does offer a "POP" alternative to forwarding at:

    SpamCop.net

    Thank you.
     
Loading...

Share This Page