Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 10-27-2010, 12:05 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Default Mail throttling and VPS mai servers setup

I am doing a little research because it is time for me to setup my mail throttling on my VPS. From what I understand is that HG does not set the number of emails allowed to be sent per hour, i.e. throttling.

Now that feature sounds good to me for Admin purposes, but I want to limit the # of emails for my clients.

Does anyone know how to do this?

Thanks
p
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #2  
Old 10-27-2010, 11:47 PM
weserver weserver is offline
Baby Croc
 
Join Date: Aug 2009
Posts: 96
Default Re: Mail throttling and VPS mai servers setup

you can do that :-)

check WHM -> Server Configuration -> Tweak Settings -> The maximum each domain can send out per hour (0 is unlimited)
Reply With Quote
  #3  
Old 10-28-2010, 11:01 AM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Default Re: Mail throttling and VPS mai servers setup

Ah my question is if I can set up my primary domain can do unlimited? and allow my clients to send only a certain number per hour. I am giving my clients 400 per hour in the current the current tweak setting.
THANKS
p
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #4  
Old 10-28-2010, 11:51 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: Mail throttling and VPS mai servers setup

Quote:
Originally Posted by pmatra View Post
Ah my question is if I can set up my primary domain can do unlimited? and allow my clients to send only a certain number per hour. I am giving my clients 400 per hour in the current the current tweak setting.
THANKS
p
Set the limit for your clients in WHM -> Server Configuration -> Tweak Settings -> The maximum each domain can send out per hour
and then in file:

/var/cpanel/maxemails

you add a line:

Code:
YourPrimaryDomain.com=0
and then run this;
Code:
/scripts/build_maxemails_config
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #5  
Old 10-28-2010, 12:42 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Default Re: Mail throttling and VPS mai servers setup

As a VPS user do I have access to the Var directory? Isn't that a server directory?
p
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #6  
Old 10-28-2010, 02:03 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: Mail throttling and VPS mai servers setup

Quote:
Originally Posted by pmatra View Post
As a VPS user do I have access to the Var directory? Isn't that a server directory?
p
Your VPS is the server.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #7  
Old 10-28-2010, 03:09 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Default Re: Mail throttling and VPS mai servers setup

So then where is the Var directory?
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #8  
Old 10-28-2010, 03:20 PM
GatorJacob's Avatar
GatorJacob GatorJacob is offline
HostGator Staff
 
Join Date: Apr 2008
Location: Houston
Posts: 7,294
Default Re: Mail throttling and VPS mai servers setup

Hi!

You have to access /var with SSH.

Here's a tree breakdown of the root file system of a CentOS / Linux server:
Code:
root@hou [/]# find -maxdepth 1
.
./lib64
./mnt
./home
./tmp
./opt
./srv
./var
./proc
./sys
./usr
./root
./etc
./dev
./sbin
./selinux
./boot
./media
./lib
./bin
__________________
Jacob P
HostGator.com
Systems Monitoring Supervisor

Reply With Quote
  #9  
Old 10-28-2010, 03:58 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Default Re: Mail throttling and VPS mai servers setup

I only see two directories like the one you mentioned:
/maxemailsperdomain and /maxemailstracker

There is nothing in the /maxemailsperdomain
But several domains are listed in the /maxemailstracker

So what should I do?
/var/cpanel/maxemails does not exist

I took a look at the directory /maxemailstracker and found a primary domain file and it just is an IP address folowed by =1. Is this where I put the code?

THANKS for your replies. I need to learn more about SSH
p
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #10  
Old 10-28-2010, 04:26 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: Mail throttling and VPS mai servers setup

Quote:
Originally Posted by pmatra View Post
So what should I do?
/var/cpanel/maxemails does not exist
I suggest you run the command:
Code:
/scripts/build_maxemails_config
and see if the file is there.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #11  
Old 10-28-2010, 04:38 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Default Re: Mail throttling and VPS mai servers setup

nope still no file...

But a mgmt_queue came up butr the directory is empty.
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #12  
Old 10-28-2010, 05:07 PM
dave g dave g is offline
Swamp Croc
 
Join Date: Mar 2005
Location: Ellington a cow town in Connecticut
Posts: 371
Default Re: Mail throttling and VPS mai servers setup

If I could suggest I would have ConfigServer Services install cPanel MailScanner Service this will let you set a mail sending level for each account and you may want to consider having them install there full set of software.
http://www.configserver.com/

Dave G
Reply With Quote
  #13  
Old 10-28-2010, 05:33 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Default Re: Mail throttling and VPS mai servers setup

Ok, thanks I appreciate all of your help guys. I was just wondering since this is getting more complicated do you think it is a good idea for me to set the primary domain to unlimited? Because it would tie up resources. The thing is I only have about 2800 users on the list.
p
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #14  
Old 10-28-2010, 08:50 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Thumbs up Re: Mail throttling and VPS mai servers setup

Thanks Dave and everyone.

I installed the Free Config Mail Manager and it worked like a charm and took me 2 minutes to install. I assume it works. I will know when I send out that email!
ciao


Quote:
Originally Posted by dave g View Post
If I could suggest I would have ConfigServer Services install cPanel MailScanner Service this will let you set a mail sending level for each account and you may want to consider having them install there full set of software.
http://www.configserver.com/

Dave G
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
  #15  
Old 10-28-2010, 09:07 PM
pmatra's Avatar
pmatra pmatra is offline
Baby Croc
 
Join Date: May 2008
Location: NY
Posts: 65
Thumbs up Re: Mail throttling and VPS mai servers setup

By the way

If you are using WHMCS to send out newsletters they send 25 messages every 30 seconds= 3000 per hour
__________________
Peter Matra
nyhostingsolutions.com

I love HG
Reply With Quote
Reply

Bookmarks

Thread Tools

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared to VPS Transfer/Setup Time? HTMadmin Linux VPS Support 2 10-22-2010 08:37 PM
looking for this VPS setup Jean-Luc Pre-Sales Questions 3 05-11-2010 07:38 AM
how to setup my vps rayminator Linux VPS Support 1 01-30-2010 01:24 PM

All times are GMT -5. The time now is 01:36 PM.