eMail relaying withe cPanel/WHM Cent OS

Web_Rob

Member
Nov 30, 2006
18
0
151
I have a server at The Planet that runs Cent OS with cPanel/WHM. It is using Exim as the mail transport.

I am having a problem with gmail.com accounts relaying mail through my server.

I would like to have only domains that I host be allowed to send mail through my server. How can I accomplish this?
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator
Your server should not be an open relay by default. If it is, then something is wrong because that is not normal. You should check the logs and also may have to reinstall exim.
 

acidstudioz

Active Member
Feb 13, 2006
38
0
156
I am having the same problem, one user was sending out spam through the email server and the header from lines werent even from any domain names on the server how can we fix this.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
I am having the same problem, one user was sending out spam through the email server and the header from lines werent even from any domain names on the server how can we fix this.
Once a user authenticates to the server (either via POP or SMTP) they can send email. The email's reply-to and from headers don't necessarily need to point back to your domain. This is useful if the user has configured their mail client with multiple reply-to addresses and wants this particular email recipient to reply to another account (e.g. a personal gmail account).
 

acidstudioz

Active Member
Feb 13, 2006
38
0
156
Ok understandable ok see if you can help me out with this one. Even when i have SMTP tweak enabled on my server, a user has a perl script that connects to a database and sends massive amount through smtp which bypasses my 500 domain limit. what should i do
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
Ok understandable ok see if you can help me out with this one. Even when i have SMTP tweak enabled on my server, a user has a perl script that connects to a database and sends massive amount through smtp which bypasses my 500 domain limit. what should i do
Are you running SuExec on the server? If the script is running as user nobody (not SuExec) then the max emails per domain per hour will not be enforced.