Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

How to limit per hour sending mails

RHEL/CentOS related topics
Locked
  • Print view
Advanced search
2 posts • Page 1 of 1
kautukbhatnagar
Posts: 14
Joined: Thu Apr 23, 2015 6:05 am

How to limit per hour sending mails

Post by kautukbhatnagar » Thu Apr 23, 2015 6:10 am

Hello Friends,

I am just a beginner and had install VESTCP on my VPS but i don't know how to limit per hour sending mails.
Could anybody suggest me how to do it.

Also if somebody suggest how to stop mail relaying, if somebody is trying to relay mails from my server.

Looking for the solution.

Thanks

Kautuk
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How to limit per hour sending mails

Post by skurudo » Wed Apr 29, 2015 6:58 pm

Test your domain first - https://sku.su/WbB68 - have you open relay or not. Default config prevents your software work as open relay. It's not good for tech karma, you know :)

You can use ratelimit for limit user.
Manual - https://sku.su/WD3SV

Example code, in your exim config file:

Code: Select all

acl_not_smtp = acl_not_smtp

begin acl

        acl_not_smtp:
                deny message = Sender rate overlimit - $sender_rate / $sender_rate_period
                ratelimit = 50 / 1h / leaky
                accept

        acl_check_rcpt:
                deny message = Sender rate SMTP overlimit - $sender_rate / $sender_rate_period
                ratelimit = 100 / 1h / leaky

                accept  hosts = net-lsearch;/etc/exim/whitelist
Top


Locked
  • Print view

2 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password