Stopping email from sending email but still recieve emails

jcarney1987

Verified User
Joined
Jan 21, 2012
Messages
12
Hello!

First off I have a directadmin server running on centos 5.7 i316 with exim and I've learned how to how many emails a user can send per day by editing /etc/virtual/limit or limit_username.

But I run a free web service so all new clients I want to disable all outgoing email and I'm not sure how to do this as if I set the limit file to 0 it sets to unlimited. Also I would like to know if there is a feature somewhere that I can enable a users limit per package or something that will auto delete the limit_username file when account is terminated.

Anybody have a solution for this.

Thanks
 
Hello,

You can disable with setting the limit as low as 1. There is no other way to achieve desired without additional modifications and programming.

As for enabling users limit per package without customization it's impossible to get at least for now.
You can look at this:
+ http://www.directadmin.com/features.php?id=479
+ http://www.directadmin.com/features.php?id=183

Feel free to contact me, if you need my private help. I'm here as well some other members of these forums ready to give you the best commerce service.
 
Well thats a real bummer. I decided to launch a free webhost for people to use and got abunch of chineese spammed on my server and got it blocked by yahoo so far. Right now global limit is set to 1 but I guess I'll work on some way to fix this. Maybe the best way is for me to block smtp 25 and 587. But the only problem with that it would block the clients who use email honestly.

Well this is a toughy but I figure something out.
 
There must be a plugin (the old one) on these forums, called something like SMTP_Limiter or SMTP_Limit, try and find it. Even if it's outdated, you'll be able to learn the idea at least.

Additionally you might need to

1. Disable PHP mail()
2. Disable outgoing connections from your server to remote 25 port for all users, and allow it for trusted users by their UID.
 
Just add the domain to /etc/virtual/blacklist_domains
 
Just add the domain to /etc/virtual/blacklist_domains

Just to clarify I want to allow users on my server to receive mail but at the same time fully disable users outbound email per user. This way I would be able to enable email for a user if I find it to be a legit reason.
 
Yes I looked at it. I was just searching for all alternitives and figured it might be easier to setup the way the cpanel said to do on their control panel. But I'll try to figure it out.
 
I suppose I could implement the method suggested in cPanel; if enough people want it. I've moved the thread; it's now a feature request.

Jeff
 
Would be very usefull i think, also a more detailed implementation would be the block of a single email account instead all email of a single domain (in case one account has been compromised and not all)

Regards
 
I'm not sure I'd want to be the gatekeeper. We disable all email for an account (simply by changing maximum per day to 1); makes life easy for us; let the user find/fix the problem and then turn email back on. So I'm not sure how far I'd want to go with it. The cPanel code is easy enough to implement; going further takes thinking :D.

When I start working on exim.conf again I'll post land ask everyone to put suggestions into one thread, so I can go through only one place instead of searching everywhere.

Jeff
 
I agree, I just want the ability to be able to shut of a users email. I do apologize that I haven't posted any new information on what I've done to figure out a solution. I just haven't found time to read the exim full documentation.
 
I meant I just want the ability to shut all email down on a single account. I'll would rather let the webmasters fix their problems. Just wanted to clarify.
 
You can do that now; see my post, #13 above. If what you'd rather do is maintain it through the control panel, well then I should make the cPanel type of change but DirectAdmin would then need to build the interface to it.

(Note, use 1 and not 0; 0 means unlimited.)

Jeff
 
Back
Top