To limit the number of letters a user sends to a postfix, the number of fields sent to a domain, and the frequency requires a control mechanism!
Milter-limit is a sendmail filter that restricts the number of messages a user sends to prevent mail servers
is illegally used to send spam, and it can limit the client IP, recipient, and sender specified. The
Filter can be used in postfix without any modification
Download to www.snertsoft.com (registration required)
Http://www.snertsoft.com
Installation
Note that when installing the operating system, install all components of SendMail, the installation of this software requires the use of SendMail related files, if not installed below the compile installation will be an error!
Download: The following software:
Db-4.8.26.tar.gz (may not require installation)
Milter-limit-0.14.tar.gz
Libsnert-1.73.11.tar.gz
# TAR-ZXVF Libsnert-1.73.11.tar.gz
# TAR-ZXVF Milter-limit-0.14.tar.gz
#cd Com/snert/src/lib
#./configure--WITH-DB=/USR # Check for Berkeley DB support
# Make Build
# CD ... /milter-limit
#./configure--enable-run-user=postfix--enable-run-group=postfix
# Make Build
# make Install
Installation Complete:
Set Postix below
Modify/ETC/POSTFIX/MAIN.CF
To add a parameter:
Smtpd_milters = Unix:/var/run/milter/milter-limit.socket
Filter rules:
Milter-limit's rules file is written in/etc/mail/access and then used Makemap to generate
Makemap Hash/etc/mail/access.db </etc/mail/acces
# Please note that access.db permissions cannot be executable and can allow postfix users to read
The rules for/etc/mail/access files include
Milter-limit-connect: # Client Connection IP
Milter-limit-from: # Sender Address
Milter-limit-to: # Recipient Address
Milter-limit-auth: # Sender authenticated by SMTP