cPanel & SpamCop - how to make it work?

D

Deleted member 828611

Guest
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
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.
 
D

Deleted member 828611

Guest
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.
Thanks so much for your message!

Emails are forwarded via Forwarders>>add forwarder.

Is there a different way to do it?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
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.
 
D

Deleted member 828611

Guest
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.
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
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.
 
D

Deleted member 828611

Guest
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.
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
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.