Spam e-mails originating from 'cpanel' userid


Well-Known Member
Jul 26, 2003

Recently several of our servers have started sending spam using the 'cpanel' userid. This makes it close to impossible to track who is actually sending spam. Is this a new exploit?


Well-Known Member
Jul 26, 2003
Here is a header:

Return-Path: <[email protected]>

Received: from ( []) by (v114.2) with ESMTP id MAILINYC13-1b6455a110157; Tue, 14 Nov 2006 13:55:25 -0500

Received: from ( [xx.xx.xx.xx]) by (v114.2) with ESMTP id MAILRELAYINYC18-1b6455a110157; Tue, 14 Nov 2006 13:55:02 -0500

Received: from cpanel by with local (Exim 4.52)

id 1Gk3QG-00089R-V5; Tue, 14 Nov 2006 10:54:16 -0800

Received: from ([]) by

(Horde MIME library) with HTTP; Tue, 14 Nov 2006 10:54:13 -0800

Message-ID: <[email protected]>

Date: Tue, 14 Nov 2006 10:54:13 -0800

From: Mrs Mary Collins <[email protected]>

To: <Undisclosed Recipients>

Subject: Dear beloved

MIME-Version: 1.0

Content-Type: text/plain;




Content-Disposition: inline

Content-Transfer-Encoding: quoted-printable

User-Agent: Internet Messaging Program (IMP) H3 (4.1.3)

X-AntiAbuse: This header was added to track abuse, please include it with any abuse report

X-AntiAbuse: Primary Hostname - myserver

X-AntiAbuse: Original Domain -

X-AntiAbuse: Originator/Caller UID/GID - [32001 32001] / [47 12]

X-AntiAbuse: Sender Address Domain -




This was happening on another server of mine as well but I wasn't able to track down the spammer cause the e-mails in the queue manager only pointed toward 'cpanel' username.


Well-Known Member
Jul 26, 2003
This is actually getting quiet serious. Im watching spam go through exim but I can't stop it because its originating from cpanel.

Is there a way to force exim to stop delivering mail for a specific user? I've looked at top logs and everything else but I can't find out how these e-mails are being originated. They are however being sent with the userid 'cpanel' though.


Well-Known Member
Aug 10, 2002
cPanel Access Level
Root Administrator
It looks like someone from the IP address is logging into webmail on your server ( but doesn't necessarily mean that its someone from that domain) and sending this message.

To find out exactly who is sending it, you would need to grep the cpanel access logs for the time period around this time and see who was logged into webmail and sending messages:

cat /usr/local/cpanel/logs/access_log | grep 14/Nov/2006:10:54

This will show you all the log entries made into cPanel, WHM, and Webmail on November 14th, 2006 at 10:54 (I would exclude the seconds because then you are getting too specific and the logs may not show anything).

Since you are pretty sure this user was using Horde, you can further narrow the search by searching only for Horde accesses:

cat /usr/local/cpanel/logs/access_log | grep 14/Nov/2006:10:54 | grep horde

This may result in a lot of lines, and since you are only interested in the specific webmail user that was logged in at this time, use awk to only give you that information and only display uniq entries:

cat /usr/local/cpanel/logs/access_log | grep 14/Nov/2006:10:54 | grep horde | awk '{print $3}' | sort | uniq

This last command will show you the usernames that were logged into webmail (actually just clicked something) on November 14, 2006 at 10:54.

Hope this helps.