Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-25-2013, 03:43 PM   #1
LQ Newbie
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Is it possible to prevent a single user from sending email?


I wouldn't consider myself to be a newbie with Linux, but I'm certainly not in this kind of stuff every day, so go easy on me! I do know my way around the server though.

We are having a large number of spammers using contact forms on our site to send out spam to outside addresses. I know that's a common problem, but what I'm trying to prevent it as much as possible. I already have these options set to ON:

Prevent “nobody” from sending mail

Restrict outgoing SMTP to root, exim, and mailman

But yet, contact forms that don't have smtp authentication setup are still able to send emails through the standard php mail() function. Unless I'm not understanding what those options do?

My company sells website templates, so each installation for our demos has built in contact forms and other submission forms that use the mail() function. Basically I want those to not work. I only have a handful of forms on my main site that actually get used as real contact forms. All the ones that I do need to work I already have setup to work with smtp authentication and they work great.

Any contact form that I don't want to send is sent from:

{cpanel username}@mail.{mydomain}.com

For example if my domain is and my username is domainco, then the user is:

I use MailScanner FE and I am able to watch those emails come through.

So my question is, how can I prevent just that user from being able to send emails altogether but still allow everyone to send? There's really never a reason why that user would ever need to send an email. I've read through everything that I can find for the last two days, and I've gotten no where. I can't delete the user either, because it's my default cpanel username.

Is there something that I need to add to the exim config? I had seen this, but it doesn't work:

Or maybe there's a php setting that I need to configure?

I hoe I've given enough information to identify what I'm trying to do. If you need clarification please let me know.

Thanks in advance!
Old 04-25-2013, 03:47 PM   #2
LQ Newbie
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
I forgot to mention I am running:


All the mail programs, except for Mailscanner FE, are the stock programs to the best of my knowledge.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mointor when a user logs in and sending an email beanpost Linux - General 4 03-31-2010 05:11 AM
Prevent a single user from multiple simultaneous logins MichaelP Linux - Networking 6 03-12-2008 10:11 AM
how do i prevent a user from sending mail onyangoliech Linux - Software 4 12-15-2006 11:24 AM
prevent user from sending mail in postfix onyangoliech Linux - Networking 2 12-15-2006 07:37 AM
prevent user from sending mail in postfix onyangoliech Linux - Networking 1 12-14-2006 07:29 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration