Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting

Advertisements: & have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for

CPanel + Exim + User Level Filtering

whether our webhost has their configuration messed up, or if this is not genuinely possible with cpanel + exim + shared hosting.

Our email server is hosted with the web host, and what we want to do is to not allow certain users to be able to receive (And send) outgoing email to non-local domains e.g. they should only be able send and receive within our hosted domain, .

Now, we've tried doing this using cpanel's user level filters and have setup the following:

If Field To does not contain OR
If Field From does not contain


Fail with message.

We've tested these filters using combinations and they seem to be working as far as we can see on cpanel (it has the filter testing feature)

Now this works for people sending emails into our domain e.g. someone from hotmail tries sending emails to a user, and it bounces back.

But people from inside the domain can send emails to other domains even when they give valid results on the cpanel filter tester.

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Exim Filtering Options In Cpanel
more specific filtering options in cpanel exactly:

if header from contains 'example' and also header from contains 'example2' then discard

in cpanel it just has one word or phrase i need the filter to check for 2 words in any order in the from field

View Replies!   View Related
Exim/Cpanel No Such User Here
I'm having an issue with email generated from a website contact form. The email is being sent from the website via php. The issue is that the email address that it is being sent to is a domain/website that is also on cpanel. It is trying to deliver it to a local account, but the email is acutally on a third party system outside of cpanel. Does anyone know anyway for exim to not try and deliver locally?

View Replies!   View Related
Exim Filtering
I would like to filter some special mails of mine through an external PHP script. Is this possible? I would like to call the php file everytime a mail arrives, and the php file will make changes to that mail text and save in inbox.

My PHP file is ready but i need to make this work in Exim.

View Replies!   View Related
Exim Filtering Jpg Attachments
Exim logs:

2007-04-05 15:07:45 1HZYFE-0003DC-Rr <= H=( []:42573 I=[]:25 P=esmtp S=9925 id=000801c777be$11815a50$34840ef0$@com T="test" from <> for
2007-04-05 15:07:45 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1HZYFE-0003DC-Rr
2007-04-05 15:07:45 1HZYFE-0003DC-Rr => discarded (system filter)
2007-04-05 15:07:45 1HZYFE-0003DC-Rr Completed QT=1s

This only happens when a 4kb jpeg/jpg attachment is sent. Not sure where its getting caught.

My antivirus.exim file attached

I searched for "jpg" and "jpeg" in that file, nothing showed up.

# Exim filter
## Version: 0.17
#$Id: system_filter.exim,v 1.11 2001/09/19 11:27:56 nigel Exp $

## Exim system filter to refuse potentially harmful payloads in
## mail messages
## (c) 2000-2001 Nigel Metheringham <>
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
## -A copy of the GNU General Public License is distributed with exim itself

## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
## If you haven't worked with exim filters before, read
## the install notes at the end of this file.
## The install notes are not a replacement for the exim documentation
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

## -----------------------------------------------------------------------
# Only run any of this stuff on the first pass through the
# filter - this is an optomisation for messages that get
# queued and have several delivery attempts
# we express this in reverse so we can just bail out
# on inappropriate messages
if not first_delivery

## -----------------------------------------------------------------------
# Check for MS buffer overruns as per BUGTRAQ.
# [url]
# This could happen in error messages, hence its placing
# here...
# We substract the first n characters of the date header
# and test if its the same as the date header... which
# is a lousy way of checking if the date is longer than
# n chars long
if ${length_80:$header_date:} is not $header_date:
fail text "This message has been rejected because it has

an overlength date field which can be used

to subvert Microsoft mail programs

The following URL has further information
seen finish

## -----------------------------------------------------------------------
# These messages are now being sent with a <> envelope sender, but
# blocking all error messages that pattern match prevents
# bounces getting back.... so we fudge it somewhat and check for known
# header signatures. Other bounces are allowed through.
if $header_from: contains ""
fail text "This message has been rejected since it has

the signature of a known virus in the header."
seen finish
if error_message and $header_from: contains "Mailer-Daemon@"
# looks like a real error message - just ignore it

## -----------------------------------------------------------------------
# Look for single part MIME messages with suspicious name extensions
# Check Content-Type header using quoted filename [content_type_quoted_fn_match]
if $header_content-type: matches "(?:file)?name=("[^"]+\.(?:ad[ep]|ba[st]|chm|cmd|com|cpl|crt|eml|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|ws[fhc])")"
fail text "This message has been rejected because it has

potentially executable content $1

This form of attachment has been used by

recent viruses or other malware.

If you meant to send this file then please

package it up as a zip file and resend it."
seen finish
# same again using unquoted filename [content_type_unquoted_fn_match]
if $header_content-type: matches "(?:file)?name=(\S+\.(?:ad[ep]|ba[st]|chm|cmd|com|cpl|crt|eml|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|ws[fhc]))"
fail text "This message has been rejected because it has

potentially executable content $1

This form of attachment has been used by

recent viruses or other malware.

If you meant to send this file then please

package it up as a zip file and resend it."
seen finish

## -----------------------------------------------------------------------
# Attempt to catch embedded VBS attachments
# in emails. These were used as the basis for
# the ILOVEYOU virus and its variants - many many varients
# Quoted filename - [body_quoted_fn_match]
if $message_body matches "(?:Content-(?:Type:(?>\s*)[\w-]+/[\w-]+|Disposition:(?>\s*)attachment);(?>\s*)(?:file)?name=|begin(?>\s+)[0-7]{3,4}(?>\s+))("[^"]+\.(?:ad[ep]|ba[st]|chm|cmd|com|cpl|crt|eml|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|ws[fhc])")[\s;]"
fail text "This message has been rejected because it has

a potentially executable attachment $1

This form of attachment has been used by

recent viruses or other malware.

If you meant to send this file then please

package it up as a zip file and resend it."
seen finish
# same again using unquoted filename [body_unquoted_fn_match]
if $message_body matches "(?:Content-(?:Type:(?>\s*)[\w-]+/[\w-]+|Disposition:(?>\s*)attachment);(?>\s*)(?:file)?name=|begin(?>\s+)[0-7]{3,4}(?>\s+))(\S+\.(?:ad[ep]|ba[st]|chm|cmd|com|cpl|crt|eml|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|ws[fhc]))[\s;]"
fail text "This message has been rejected because it has

a potentially executable attachment $1

This form of attachment has been used by

recent viruses or other malware.

If you meant to send this file then please

package it up as a zip file and resend it."
seen finish
## -----------------------------------------------------------------------

#### Version history
# 0.01 5 May 2000
#Initial release
# 0.02 8 May 2000
#Widened list of content-types accepted, added WSF extension
# 0.03 8 May 2000
#Embedded the install notes in for those that don't do manuals
# 0.04 9 May 2000
#Check global content-type header. Efficiency mods to REs
# 0.05 9 May 2000
#More minor efficiency mods, doc changes
# 0.06 20 June 2000
#Added extension handling - thx to Douglas Gray Stephens & Jeff Carnahan
# 0.07 19 July 2000
#Latest MS Outhouse bug catching
# 0.08 19 July 2000
#Changed trigger length to 80 chars, fixed some spelling
# 0.09 29 September 2000
#More extensions... its getting so we should just allow 2 or 3 through
# 0.10 18 January 2001
#Removed exclusion for error messages - this is a little nasty
#since it has other side effects, hence we do still exclude
#on unix like error messages
# 0.11 20 March, 2001
#Added CMD extension, tidied docs slightly, added RCS tag
#** Missed changing version number at top of file :-(
# 0.12 10 May, 2001
#Added HTA extension
# 0.13 22 May, 2001
#Reformatted regexps and code to build them so that they are
#shorter than the limits on pre exim 3.20 filters. This will
#make them significantly less efficient, but I am getting so
#many queries about this that requiring 3.2x appears unsupportable.
# 0.14 15 August,2001
#Added .lnk extension - most requested item :-)
#Reformatted everything so its now built from a set of short
#library files, cutting down on manual duplication.
#Changed w in filename detection to . - dodges locale problems
#Explicit application of GPL after queries on license status
# 0.15 17 August, 2001
#Changed the . in filename detect to S (stops it going mad)
# 0.16 19 September, 2001
#Pile of new extensions including the eml in current use
# 0.17 19 September, 2001
#Syntax fix

View Replies!   View Related
Difference Between Level 1, Level 2 And Level 3 Tech Support
Is there any preset criteria for it like Level 1 includes a, b & c, Level 2 includes d, e & f and level includes x, y & z?

I know the difference in General but, I wanted a specific answer.

View Replies!   View Related
Email Filtering - Cpanel
My provider is using mailfoundry for spam filtering.. but I used IMAP (stored on server) for email.. my problem is that I'm also using a catch-all address and I make up random email names for sites I go to, to check for spam on the incoming side..

I setup filters in Cpanel to remove the selected spam or emails I don't wish to recieve.. but they don't seem to remove themselves.. it could just be a setup problem or it could be the mailfoundry.. not sure..

Here's the settings I have in cpanel (I just altered the name) is this the right setting.. or does it go elsewhere?

View Replies!   View Related
Hosted Third-party Spam Filtering For CPanel
Can anyone recommend a hosted third-party spam filtering service for cPanel servers?

Most of the servers are reseller based, and I don't see myself or my team having to enter each individual email address into the service.

With that said, is there any service where you can just point the MX records to it, it would scan the email, and then deliver it?

View Replies!   View Related
Parking An External 3rd Level Domain In CPanel
How to add an external third level domain to cPanel?

For example, my main domain at cPanel is, so I can easily add subdomains like, etc.

But what I need is to point to my hosting.

I'm a customer, not the server administrator.

A owner has already configured my server's IP in the zone file for that subdomain.

But how to configure that external 3rd level domain in my cPanel?

View Replies!   View Related
Exim: User Unknown (domain Forward)
One of my clients has 2 accounts:

-, with a mail account
-, with domain forwarding to

Sending an email message to works.

Sending an email message to doesn't work. When using the ZoneEdit SMTP test utility I get the following error message:

> RCPT TO:<>
< 550 5.1.1 User unknown:
I checked "/etc/vdomainaliases/" and "/etc/localdomains", they are configured properly.

Any suggestions?

View Replies!   View Related
Exim :: Catch The User Sending Spam With Mailnull?
i have a vps but there is too much process called mailnull
after that the data centre closed my server for being sent spam

so how i can catch the user sending spam with mailnull?

View Replies!   View Related
Cpanel: Spam Assassin Deleting Mail At Server Level Possible
Rather than just tagging the subject with ***SPAM***. Am I going to have to recompile spam assassin in order to get that working? I have a client of mine who wants all spam just removed before it hits his inbox. Is there a setting somewhere in cpanel that I am missing for this? Possible just to apply it to one domain name?

View Replies!   View Related
Exim Sda7: Write Failed, User Block Limit Reached
i have run exim -qff from SSH then i got below error let me know what to do

root@web [~]# exim -qff
sda7: write failed, user block limit reached.
sda7: write failed, user block limit reached.
sda7: write failed, user block limit reached.

View Replies!   View Related
Exim/Cpanel SPF
How do you get Exim to rewrite/remove

Received: from ([])
by with esmtpa (Exim 4.69)

I'm trying to avoid the error

Received-SPF: softfail ( domain of transitioning does not designate as permitted sender) client-ip=;

Basically, any email thats sent through should look like it was sent directly.

View Replies!   View Related
Hardware Level Virtualization Or Software Level Virtualization
Which virtualization technology is better? Hardware level or software level? My friend suggested me to go for software level virtualization. However, I am still concerned about the technology as to which I should choose?

View Replies!   View Related
Hardware Level Virtualization Or Software Level Virtualization ...?
Which virtualization technology is better? Hardware level or software level? My friend suggested me to go for software level virtualization. However, I am still concerned about the technology as to which I should choose?

View Replies!   View Related
Reliable RBL For Use In Exim On Cpanel?
What are some good and reliable RBL for use in Exim on Cpanel? Please provide full urls.

View Replies!   View Related
CPanel/WHM (Exim) SPF Records
I seem to be experiencing some difficulty adding SPF records via "Edit DNS Zone". When adding these records and checking them with several SPF record checkers, it always reports a record such as the following:


Which turns out to be invalid, and definitely not the record I had specified. The record I specified looks like the following:

"v=spf1 a mx ip4:XXX.XXX.XXX.XXX ~all"

XXX.XXX.XXX.XXX being a valid IP, of course.

Is there known issues when adding these types of records via WHM?

And to make it clear, I have added these records as TXT type, with and without the quotes.

View Replies!   View Related
Cpanel > Exim > Domainkeys
Wondered if anyone out there would like to share their experience, if any, of setting up cpanel to work with domainkeys via exim.

Hopefully anyone reading this thread will know by now what domainkeys are and how it affects the delivering of email to most major email providers inboxes rather than spam/bulk folders.

The domainkeys support for exim is now in the 'experimental' phase:
(page allegedly updated on 30th Oct, 06)

However cpanel themselves seem to be dragging their feet a little with implementing it:

This is understandable considering support for domainkeys is not yet part of the main exim core code, and thus is likely to change. From what I've been reading elsewhere, re-compiling and upgrading exim is not advisable with cpanel.

My knowledge of exim (and cpanel TBH) is limited however, and I was wondering what might be the implications of *ahem* hacking it a little in order to enable domainkeys.

SPF records alone just don't seem to cut it anymore.

View Replies!   View Related
Backing Up A All My CPanel User's
How do I backup all my cPanel users? Like there files, settings, emails, mysql, everything.

View Replies!   View Related
Cpanel Master User
Logging in to cpanel using root password warned you that you had logged in using root privs and you got a nice drop down where you could jump to any account's cpanel.

After changing my root password, the first domain set up on that server gets the nice drop down, and indeed full rights, despite using it's normal password. I also don't see the warning message about using root privs.

So, somehow, the domain's account has gained ROOT cpanel privs. Where is this set?

View Replies!   View Related
CPanel: Change Exim.conf
change some variables in exim.conf so that they will not be modified next time cPanel will update exim.

Basically I need to modify this:

smtp_banner and rfc1413_query_timeout.

View Replies!   View Related
Exim + Cpanel + Dspam Howto
I found a handful of howto's for dspam, but none of them catered for exim with virtual users. After hunting around, I eventually have it working on a cPanel server, with user authentication for mail users.

My setup:
dspam version 3.6.8, using mysql driver.
exim version 4.
mysql 4.1
CentOS (2.6.9-023stab033.9-enterprise)
cPanel / WHM - latest RELEASE version.

Download the source, configure and compile:

# cd /usr/local/src
# wget
# tar -zxf dspam-3.6.8.tar.gz
# cd dspam-3.6.8
Configure, replacing user/groups with your web-server user (web / apache / nobody), and use your mysql-include / library paths (will need mysql-devel on rh based systems).

# ./configure --prefix=/opt/dspam-3.6.8 --with-local-delivery-agent=/usr/sbin/exim --with-storage-driver=mysql_drv --with-userdir=/var/spool/mail/dspam --with-userdir-owner=nobody --with-userdir-group=nobody --with-dspam-mode=none --with-dspam-owner=nobody --with-dspam-group=nobody --enable-whitelist --enable-spam-delivery --enable-alternative-bayesian --disable-dependency-tracking --enable-virtual-users --with-mysql-includes=/usr/include/mysql --with-mysql-libraries=/usr/lib/mysql/ --with-dspam-home=/opt/dspam-3.6.8/var/dspam
# make && make install
Set up mysql

# mysqladmin -p create dspamdb
# mysql -p
>grant all privileges on dspamdb.* to dspamuser@localhost identified by dspampass;
>flush privileges;
Create tables:

mysql -p dspamdb < /usr/local/src/dspam-3.6.8/src/tools.mysql_drv/mysql_objects_speed.sql
mysql -p dspamdb < /usr/local/src/dspam-3.6.8/src/tools.mysql_drv/virtual_users.sql
Link dspam in opt for easy versioning:

ln -s dspam-3.6.8 /opt/dspam
Copy the web interface files to a web directory:

# cp webui/cgi-bin /opt/dspam -r
# cp webui/htdocs /opt/dspam/

This next step is required for pop3 authentication.
Install perl module Apache::AuthPOP3 - which does apache pop3 authorisation:

perl -MCPAN -e shell
install Apache::AuthPOP3
Next, apache will need mod_perl installed - WHM -> Apache Update will allow you to enable the perl module (I am running it alongside php with no issues).

Then in /usr/local/apache/conf/httpd.conf:

ScriptAlias /dspam/ /opt/dspam/cgi-bin/
Alias /dspam_files/ /opt/dspam/htdocs/
<Directory /opt/dspam/cgi-bin>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
Create .htaccess in /opt/dspam/cgi-bin as follows:

AuthName "Dspam"
AuthType Basic
PerlAuthenHandler Apache::AuthPOP3
PerlSetVar MailHost localhost
Require valid-user
#PerlSetVar UserMap pop3user1=>realname1,pop3user2=>realname2
#Require user pop3user1 pop3user2 pop3user3 pop3user4
there are 2 commented parameters you can set when using POP3 auth - sure its pretty self-explanatory.

Set up admin user (the admin_user must be able to authenticate as a pop user):

#echo "admin_user" >> /opt/dspam/cgi-bin/admins
Create a queuesize script for web user - so dspam can determine how many messages in the queue.

vi /usr/local/bin/eximqsize

/usr/bin/find /var/spool/exim/input/ -type f | wc -l | cut -d" " -f1-

# chmod 4755 /usr/local/bin/eximqsize
# chown nobody /usr/local/bin/eximqsize
Configure web ui, edit /opt/dspam/cgi-bin/

$CONFIG{'MAIL_QUEUE'} = "/usr/local/bin/eximqsize";
$CONFIG{'WEB_ROOT'} = "/dspam_files";
$CONFIG{'LOCAL_DOMAIN'} = "FQDN"; #your servers fully qualified domain name - e.g.
Next, set the default preferences for the system (you need /opt/dspam/bin in your path if you copy and paste this...):

dspam_admin ch pref default trainingMode TEFT
dspam_admin ch pref default spamAction quarantine
dspam_admin ch pref default spamSubject "[SPAM]"
dspam_admin ch pref default enableWhitelist on
dspam_admin ch pref default showFactors off
I would suggest reading the README over dspam to get a full understanding of the permissions required for running of dspam. My permissions were:

# chown nobody:mail /opt/dspam/var/dspam -R
# chown nobody:mail /opt/dspam/etc/ -R

Edit dspam.conf (in /opt/dspam/etc/. I have only listed the parameters I changed here...):

TrustedDeliveryAgent "/usr/sbin/exim -oMr spam-scanned"

Trust: root
Trust: mail
Trust: nobody / httpd #choose 1 - what ever your webserver runs as - `ps axu | grep httpd` to find out

#Use the same details as you did for the "grant all privileges on...." statement in mysql.
MySQLServer /var/lib/mysql/mysql.sock
MySQLUser dspamuser
MySQLPass dspampass
MySQLDb dspamdb
MySQLCompress true

MySQLVirtualTable dspam_virtual_uids
MySQLVirtualUIDField uid
MySQLVirtualUsernameField username
Almost there....
Confirm that mysql is configure to listen on a socket in /etc/my.cnf (or whereever your config file is):

# cat /etc/my.cnf
Now the final step - exim configuration. This is the part that took the longest, hopefully it works for you. Just as I read in the howto's I used for this, please please please dont just copy and paste - you stand a good chance of breaking your mail server if you make changes without understanding. Be warned.

My config file is /etc/exim.conf. This should be edited using the WHM -> Exim Configuration Editor -> Advanced.

#Routers - Add these in the box before virtual_user delivery / user delivery router).
#uncomment the next line to disable dspam for virtual users.
# check_local_user
condition = "${if and {
{!eq {$sender_address_domain}{$domain}}
{!eq {$received_protocol}{local}}
{!eq {$received_protocol}{spam-scanned}}
} }"
headers_add = "X-FILTER-DSPAM: by $primary_hostname on $tod_full"
driver = accept
transport = dspam_spamcheck

## The next 2 routers allow you to forward spam / non-spam to dspam for training (e.g.
# spam-username
driver = accept
local_part_prefix = spam-
transport = dspam_addspam

# nospam-username
driver = accept
local_part_prefix = notspam-
transport = dspam_falsepositive

##Transports - can be added anywhere:
#this adds the spam-scanned protocol header, so when it is passed back to exim after being processed by dspam, it doesnt get stuck in a loop.
driver = pipe
command = "/usr/sbin/exim -oMr spam-scanned -bS"
transport_filter = "/opt/dspam/bin/dspam --stdout --deliver=innocent,spam --user $local_part@$domain"
use_bsmtp = true
home_directory = "/tmp"
current_directory = "/tmp"
user = nobody
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =

driver = pipe
command = "/opt/dspam/bin/dspam --user $local_part@$domain --class=spam --source=error"
home_directory = "/tmp"
current_directory = "/tmp"
user = nobody
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =

driver = pipe
command = "/opt/dspam/bin/dspam --user $local_part@$domain --class=innocent --source=error"
home_directory = "/tmp"
current_directory = "/tmp"
user = nobody
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =

If you have set up authentication correctly as well, then you should be able to open [url] and log in - if you add your login details to the "admins" file, you can configure defaults, etc. It also allows ALL users (with 1 user being an email account) to log in, using

This will not work with suexec enabled!! This is because dspam needs specific permissions, and it is expecting user nobody to access it. If suexec is enabled, you will need to use the default host, and NOT virtual hosts (and even this may not work - testing still required).

Watch exim_mainlog after this - you should pick up what transports and routers are being used.

Dspam can really hammer a system - mysql, cpu and memory usage will go up a bit, especially on busy production servers. Monitor your servers performance.

Other settings: add /opt/dspam/man to MANPATH in /etc/man.config or move dspam man directory to an existing man directory.

This dspam.cgi hack will do a lookup in the cpanel config file to find the domain for any username without a domain, and append it on match (or leave just the username part if nothing is found). This requires unsecuring your system a bit - your http user will need to be able to read /etc/trueuserdomains (either chmod 644 or chown nobody):

#add this just after $CURRENT_USER is set.
if ($CURRENT_USER !~ /@.+./) {
open(TUD, "</etc/trueuserdomains");
while(<TUD>) {
my ($domain, $user) = split(/:/,$_);
$user =~ s/^s*//g;
if ($user eq $CURRENT_USER) {

That should do it

dspam will allow all messages through by default, and will require some training. With this config, users can train using email commands - all they need to do is forward any spam that hits their mailbox to (their own email address with spam- prepended). Unfortunately this does not allow handling of false positives if you are using a "quarantine" policy instead of subject. the web interface comes in handy for this.

I am busy testing a combination of dspam with assp, which seems to be working well - I especially like the greylisting feature of assp and ProtectionBox... Will add to this howto when testing is finish.

View Replies!   View Related
Clean Old Accounts From Exim / CPanel
We are having trouble with disk space on some of our shared hosting servers and we are wondering if anyone have a script to clean e-mails from exim not checked in the last 60 days ?

View Replies!   View Related
Exim Maxing Out After V 11 Upgrade - Cpanel
Are there others that are having a problem with exim getting slammed with the max allowed connections after updating to cpanel 11?

I have upgraded perl to 5.8.8 and upgraded cpanel. Now, all day yesterday, last night, and now.. pstree is showing exim maxed out.

Clients are complaining that they can't send email due to the "too many connections" error.

I have bumped up the max to 300 for now to hopefully get more clients able to send, but it is quickly working its way over 200 as I type this.

I have tried every setting in the exim configuration editor, on and off, I have a data center techs working on it since yesterday...

View Replies!   View Related
Find User Bandwidth From SSH (CPanel)
Does anyone happen to know how to find the current bandwidth usage for users in CPanel via SSH? I found disk space, which is /scripts/dumpquota, but I can't find the bandwidth.

View Replies!   View Related
Email Notifications Whenever User Log's In FTP (CPanel)
Server configuration:
CENTOS 5.3 x86_64
cPanel 11.24.4-C35075 - WHM 11.24.2 - X 3.9

Is it possible to write a script that will be sending notifications on user e-mail, that is already pre-configured in their account, whenver user will log in to FTP.

Are there any pre-made scripts or if not, any hint's on writing something like that?

View Replies!   View Related
Tracking Down Web Process User In Cpanel
Recently, there are a lot of "apache" processes hogging my Cpanel server with the default owner "nobody". How could I track the apache process back to which user is using it?

View Replies!   View Related
User Nobody Using All System Memory Cpanel
I tracked down another issue that I am having with this same server. I login and look at the system and 100% of the swap is used and 99% of the Ram. I look to see who's using it, and the user name is Nobody. What role does this user play in cpanel? Can I disable the user?

UPDATE: It is actually apache doing it.

7044 nobody 0


8.3 /usr/local/apache/bin/httpd -DSSL
2836 nobody 0


0.2 /usr/local/apache/bin/httpd -DSSL
2835 nobody 0


1.8 /usr/local/apache/bin/httpd -DSSL
2838 nobody 0


0.5 /usr/local/apache/bin/httpd -DSSL
2854 nobody 0


0.2 /usr/local/apache/bin/httpd -DSSL
7934 nobody 0


22.8 /usr/local/apache/bin/httpd -DSSL
2839 nobody 0


0.2 /usr/local/apache/bin/httpd -DSSL
2887 nobody 0


24.5 /usr/local/apache/bin/httpd -DSSL
2848 nobody 0


2.7 /usr/local/apache/bin/httpd -DSSL

View Replies!   View Related
CPanel - Limiting IO Mem CPU Per User? Hostgator Like
I was reading up a thread where hostgator cpanel servers seem to be limiting IO activity per user/account/domain. How can that be achieved?

Any special limitations on a per account basis that I am not aware of?

View Replies!   View Related
Exim Can`t Send E-mails After Cpanel Upgrade
we have a freebsd/cpanel box what seems to be trouble prone combination, specially for exim.

After cpanel upgrade, exim simple has stopped. Somehow I managed receiving on this way:

# /etc/init.d/exim start
/libexec/ Shared object "" not found, required by "sendmail"

I checked which perl version is running: perl -v
This is perl, v5.10.0 built for i386-freebsd-64int

then applied:

unix1# ln -s /usr/local/lib/perl5/5.10.*/mach/CORE/ /usr/local/lib
unix1# /etc/init.d/exim start
exim exim antirelaydunix1#

but this solved only half of a problem, now we can receive e-mails, but not send them, what is really frustrating.

Here is the error which cpanel sends on each 5 min:

exim failed @ Fri May 1 16:06:15 2009. A restart was attempted automatically.
Service Check Method: [tcp connect]

Failure Reason: TCP Transaction Log:
<< 220-xxxxxxxxxx.xxxx ESMTP Exim 4.69 #3 Fri, 01 May 2009 16:06:41 +0200 << <<
>> EHLO localhost
<< Hello localhost [] << << << << <<
>> AF9fY3BhbmVsX19zZXJ2aWNlX19hdXRoX19leGltX19Nd2NxU1pyUng1S3R5YTl2enZaV
>> UWXM1WnU=
exim: ** [ != 2]

and I can not find the solution for this almost two days (!), no help for host support either. Closest what I have found on net is this topic:


View Replies!   View Related
DKIM W/ CPanel/Exim Linux Server
Does anyone know if it is possible to implement DKIM (DomainKeys Identified Mail) on a Linux server that uses cPanel/Exim? I am interested in getting this implemented but not sure how, or if it's even possible yet on my setup.

View Replies!   View Related
Frozen Emails Dissapearing Too [Exim On Cpanel]
I have noticed on my two dedicated servers logs that some emails just dissapear after being frozen for days in queue and there is no notice or warning sent to the sender.

Please check your logs and tell me if I am wrong, just check for non-zero on your exim_mainlog

grep non-zero /var/log/exim_mainlog

and then grep your messageId

grep 1K17WW-0002so-Sn /var/log/exim_mainlog
2008-05-24 17:34:23 1K17WW-0002so-Sn == R=lookuphost T=remote_smtp defer (-1): smtp transport process returned non-zero status 0x000e: terminated by signal 14
2008-05-24 17:34:23 1K17WW-0002so-Sn Frozen
2008-05-25 18:02:27 1K17WW-0002so-Sn Message is frozen
2008-05-26 22:08:47 1K17WW-0002so-Sn Message is frozen
2008-05-27 15:00:31 1K17WW-0002so-Sn Message is frozen
? Dissapeared

View Replies!   View Related
How To Make Central EXIM Server With CPanel
Anybody done this like one or two email server running especially Exim and all other cPanel servers are using them as email proxies to send email?

View Replies!   View Related
Exim.conf Missing (cpanel Server)
Broadcast message from root (Sat Jan 6 15:52:08 2007):

cPanel Layer 2 Update Commencing

Broadcast message from root (Sat Jan 6 16:01:09 2007):

cPanel Layer 2 Install Complete

I got this message while leaving my computer on over the weekend. And suddenly find that my mail server aint' working. So i tried to restart exim

root@kuching [~]# service exim restart
Shutting down exim: [FAILED]
Shutting down antirelayd: [ OK ]
Shutting down spamd: [ OK ]
Starting exim: 2007-01-07 20:47:43 non-existent configuration file(s): /etc/exim.conf
Starting exim-smtps: 2007-01-07 20:47:43 non-existent configuration file(s): /etc/exim.conf
Starting antirelayd: [ OK ]
Starting spamd: [ OK ]

I tried to reinstall exim by # /scripts/exim4 --force

It doesn't work again, so I tried to update again # /scripts/upcp --force

View Replies!   View Related
Sub Domain On Different Server Exim Unroutable Address - WHM/cPanel
I have two servers running cPanel/WHM, with BIND and Exim. I have my main domain running on one server ( and wish to host a seperate helpdesk on a subdomain (on a second server,

The subdomain mail account works fine with hotmail, i can send and reveive between my server and hotmail without any issue.

The problem is when i try and send mails from accounts hosted on, to the subdomain server, i get the following unroutable address error fired back by the local exim process:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
Unrouteable address

------ This is a copy of the message, including all the headers. ------


View Replies!   View Related
Exim In Cpanel :: 2000 Mails In Queue Everyday
We have running exim mail service in cpanel web server. Exim consumed some CPU% memory and lots of threads are opening. More than 2000 mails in queue everyday. How can we optimize the exim mail service?

top - 06:33:12 up 23:12, 1 user, load average: 0.03, 0.08, 0.08

4777 mailnull 15 0 1 0:00.02 0.2 9324 3936 2680 S exim
1809 mailnull 16 0 0 0:00.09 0.1 8192 1156 808 S exim
1815 mailnull 24 0 0 0:00.00 0.1 8428 1100 764 S exim
4779 mailnull 16 0 0 0:00.00 0.0 8200 684 336 S exim

View Replies!   View Related
Cpanel Not Allowing Access To User Accounts
On a new server we have running CPanel, we have manually created a user account and when i try and log into with that username/password it doesn't let me.

Now my second thought is that I should be logging into rather than but I get a 404 for /cpanel.

If i'm logged in as root, i cannot transfer into the user account cpanel either...

View Replies!   View Related
How To Limit Apache Clients On One User On The Cpanel
i have 2 questions

1 ) iwant limit one user on the cpanel limit on the apache conections?

2 ) i want limit one user not use download manager for site clients

View Replies!   View Related
Mysql User Privilege Changed By Cpanel Or What
I am using Cpanel. One Cpanel account is backup. I use it to backup my database.

Under mysql, I gave this account ( backup ) many priviledges. But when the backup script ran, error said that backup account can not 'lock table'.

I gave "lock table' priviledge again and run the script, it is ok.
But after a while, when the script ran autmatically on daily basis, it lost the 'lock table' priviledge again.

I wonder if Cpanel is messing me up? What can I do about it? anyone knows?

View Replies!   View Related
How To Edit FTP User Permissions On A CPanel Account
My Pink Floyd website has a photo section of rare concert pictures that our members upload. We have about 3,000 of these pictures, that our members upload via an FTP server that is hosted on a simple cPanel web hosting account. Someone logged into the account and not only deleted all the pictures, but uploaded obscene pictures and index.html files to some really nasty stuff.

We delete all the obscene stuff, but before we re-upload all the pictures I need to know...

On a cPanel account is there a way to have the FTP User only able to upload files and not edit/delete/change? Somehow we can edit their permission?

I asked HostGator about this and the ChatTech said this cannot be done, and I was a bit surprised. I could easily do this on my own server, but i'm not sure where to start at the user level.

View Replies!   View Related
Give User Permission To Compile (cpanel)
I'd like to give my username on my server permission to access g++ to compile custom C++ programs. I know I can just su - and compile as root, but I really don't like that.

What do I need to do to allow ONLY my username permission to do that?

View Replies!   View Related
CPanel Resetpass User Parameter Vulnerability
I'm wondering if this is true:


Something like:


View Replies!   View Related
CPanel | JailShell | How Limit To Only /home/user
How to forbid the exit to the user too /home/user?

View Replies!   View Related
How To Limit/block Outgoing Spam - CPanel Servers + EXIM
My server is sending all emails via exim smarthost to other specialised exim server (both cPanel). How may I limit customers from sending out SPAM ? Mean to scan outgoing emails and delete/store in some folder which ones identified as SPAM. Preferrably the scan part to be on exim email proxy cause it is much idle.

View Replies!   View Related
How To Remove Hosting Account, Domain And User By SSH In My Cpanel Server?
Currently I have 1 user hosting crash in my cpanel server.

I fail to restore and terminate or recreate his account in whm.

May I know what is the steps to remove and clean the hosting account in ssh?

I user /script/killacct but fail. So, i need manualy to delete user, hositng account and his mysql database in ssh, mode.

View Replies!   View Related
Simultaneous FTP User- Cpanel/WHM/Pure-FTP, Dual Xeon 2.4, 1gRAM, Dedicated
Simultaneous FTP User Question - Cpanel/WHM/Pure-FTP, Dual Xeon 2.4, 1gRAM, Dedicated

Does the following dedicated server spec throw any flags for you when considering our intended future use?

Dual Xeon 2.40 ghz.
1 gig RAM

- We currently host 300 low volume websites on the server.

- We only use 40 gigs of data bandwidth per month. (1000 allotted)

- We developed a new software product that allows auto-updates 300kb of data each day.

- We expect up to 500 people to use this software and need to access our FTP daily, at different times of the day (random).

- We plan to embed the FTP information into the software.

The FTP access will be transparent to the user.

Does our dedicated server sound like it could handle this? My guess is yes.

View Replies!   View Related
Redirect Domain/user To User.domain ONLY IF Folder 'user' Doesn't Exist
I thought I knew enough about my .htaccess stuff to do this, but I can't seem to work it out. What I want to do is if a user visits, we check to see if the folder exists. If so, show as normal (IE

If a user visits (dynamicusername is not a physical folder), redirect to

View Replies!   View Related
Exim - How To Remove Rbl Lists From Exim.conf
I am having issues in receieving emails. For some reason, the rbl lists I had setup are causing the server to reject emails (retry - timeout). So, I need to take this rbl list completely. How can I do that? exim.conf is locked and using the advanced editor is no fun even though I tried it putting the dnslists without the rbl causing the problem.

View Replies!   View Related
Error Backup, Transfer To New Server "Unable To Find The Cpanel User File."
I have problem:

Searching /root....
Found cpmove-clanpz.tar.gz!
Moving Packge to /root/cprestore/cpmove-clanpz.tar.gz

Extracting tarball....window.scroll(0,175);...............

Extracting Domain....Done

Sorry, the copy failed. Unable to find the cpanel user file. Is the archive missing (cwd: /root/cprestore loaded cpmove-clanpz/cp/clanpz)?
checked 4 files.....

1. /scripts/pkgacct username...
2. Transfer backup to new server
3. /scripts/restorepkg username
4. this error

View Replies!   View Related
Spam Filtering
I used to have a reseller account and have shifted everything to a dedicated server. I now find that a couple of clients are getting lots of spam when they didn't before.

It seems that the servers used by the reseller account had some level of basic spam filtering installed; my provider suggested I look for a filtering program to install on my server.

There are, of course, dozens of them, so I wondered if anyone has any experience - enough, perhaps, to make a recommendation.

View Replies!   View Related
POP3 Filtering
Even though I have temporarily installed Exchange Server on my dedicated server, I still am thinking about using POP3 instead, simply because of multiple email accounts and my outlook client can use multiple email accounts, and setup rules/filters to direct incoming emails to specific recepients to folders, which is what I want.

Sure, in Windows I know how to set up POP3 BUT what security can I setup for POP3 email accounts?

In addition, what about spam/filtering? How would I set that up to stop spam coming in?

View Replies!   View Related
FTP With IP Address Filtering
I took over some sites that have a Windows hosting package. They're not high-traffic sites and the content is just typical corporate stuff; it's not sensitive information or anything.

Any they are insisting that they filter the IP addresses allowed to use the FTP account. So I have to give them my IP and it adds it to a safe list. this is causing me problems for urgent updates as sometimes I am working at home or somewhere away and my ISP gives me my IP dynamically, although it doesn't change that often.

Is this normal or necessary? I've never come across it before. I think it's overkill personally. What would you do? If they're worried about security should I ask them to set up SFTP and remove the IP filter?

View Replies!   View Related
Email Filtering
I am having an issue with SPAM and baunced emails.

Spammers are sending out emails to thousands of addresses and putting my email in reply back field so i am getting all complaints/baunced emails etc.

I have DirectAdmin installed which lacks advanced email filtering features and wanted to know how can i setup Exim or what third party software to add to filter all incoming emails based on their subject?

I have Squirrelmail installed and it has these filters but the problem is that it applys its filters only on login and if i am checking email thru POP3 filters dont get applied.

View Replies!   View Related
Copyright 2005-08, All rights reserved