Controlling the frequency of postfix letters in Milter-limit

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.