Implementation of mailbox size quota implementation with third-party plugins with postfix

xiaoxiao2021-03-06  39

The Postfix system itself does not provide an option to control the user's mailbox size, but a patch can meet the requirements and functions.

I found N for a long time online, I finally found a 16-year-old small house:

But I didn't live. . .

The following is the relevant installation method:

1, download, don't use me, use Google to ensure that you can find:

Just download a patch (postfix-1.1.11_quota_mailsize.patch.gz).

Download URL:

http://www.linux.trix.net/news2/006762.html

2. When installing postfix, install it as follows:

# tar xzvf postfix-1.1.11.tar.gz

# gzip -d postfix-1.1.11_quota_mailsize.patch.gz

# cp postfix-1.1.11_quota_mAildirsize.patch postfix-1.1.11

# cd postfix-1.1.11

# patch -p1

3, increased in main.cf:

---------------------------------

# Default mailbox size

Virtual_mailbox_limit = 50000000

# Each user's mailbox size

Virtual_mailbox_limit_maps = mysql: /etc/postfix/my-quota.cf

# Whether to allow overwriting the default mailbox size.

Virtual_mailbox_limit_override = yes

-------------------------------------------------- -----------------------------------

4, build a my-quota.cf under ETC / Postfix

------------------------------- MY-QUOTA.CF -------------- ---------------------

Hosts = localhost

# 数据 数据 机器

User = Twig

# 登 登 数据 数据 名 号 号

PASSWORD =

#Logue database name password

DBNAME = Twig

#data storage name

Table = users

# 用户 用户 表 表

SELECT_FIELD = quota

# 邮 小小 field name

Where_field = username

# User Account field

-------------------------------------------------- ---------------------------------

Note: The above fields should be changed according to the fields in the own database table. . . .

5. Apply: I have tested it under 1.1.11, guaranteeing feasible, now it is already in use, but the 2.7-8 has not been measured, I believe it can be. . .

Website: mail.1eap.com

转载请注明原文地址:https://www.9cbs.com/read-65287.html

New Post(0)