Restrict SMTP for an account

hmaddy

Verified User
Joined
Apr 17, 2019
Messages
292
Some account owners are misusing smtp services. so how can i block or restrict smtp services for a single account. How to manage it through terminal
 
add that account in to
/etc/virtual/blacklist_senders

and restart your smtp service
 
There are a lot of ways to go about it. One I like is to limit their outbound. Let's take [email protected] and say I want to limit that sender to only be able to send 1 email a day. This will do it:

Code:
echo 1 > /etc/virtual/mxroute.com/limit/jarland
 
limit that sender to only be able to send 1 email a day.
This sets an SMTP limit to 1 a day indeed.

Does using the blacklist_senders file not prevent also mailing via php? I know the question was to limit SMTP. But I was just wondering if his account owners would start using php mail, he might still better use the blacklist_senders to prevent that too.

Personally I would warn them and then suspend them if they don't obey the rules from contract.
 
Back
Top