Policyd v2 Cluebringer - 配额消息累计大小

Policyd v2 Cluebringer - 配额消息累计大小

我已经从 Ubuntu 12.04 软件包安装了 Policyd Cluebringer v2.0.10。我已为其配置了电子邮件配额,但发送邮件时配额不会增加。以下是 mail.log:

09:06:15 policyd postfix/smtpd[14991]: connect from unknown[192.168.64.168]
09:06:15 policyd cbpolicyd[14898]: module=Quotas, mode=update, host=192.168.64.168, helo=EDCADMV0012, [email protected], [email protected], reason=quota_update, policy=6, quota=3, limit=4, track=Sender:[email protected], counter=MessageCumulativeSize, **quota=0/300000 (0.0%)**
09:06:15 policyd postfix/smtpd[14991]: 8EAEF42E74: client=unknown[192.168.64.168]
09:06:16 policyd postfix/cleanup[14995]: 8EAEF42E74: message-id=<[email protected]>
09:06:16 policyd postfix/qmgr[13333]: 8EAEF42E74: from=<[email protected]>, **size=6792**, nrcpt=1 (queue active)
09:06:16 policyd postfix/smtp[14997]: 8EAEF42E74: to=<[email protected]>, relay=10.0.0.10[10.0.0.10]:25, delay=1.2, delays=1.1/0.03/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 6C82B2C7190)
09:06:16 policyd postfix/qmgr[13333]: 8EAEF42E74: removed
09:06:19 policyd postfix/smtpd[14991]: disconnect from unknown[192.168.64.168]

我们可以看到,配额没有变化,而电子邮件的大小为 6792 字节。

有人能给我带来光明吗?

谢谢!

编辑:cluebringer.conf 文件:

[server]
protocols=<<EOT
Postfix
Bizanga
EOT

modules=<<EOT
Core
AccessControl
CheckHelo
CheckSPF
Greylisting
Quotas
EOT

user=cluebringer
group=cluebringer

pid_file=/var/run/cluebringer/cbpolicyd.pid

log_level=4
log_mail=mail@syslog:native
log_detail= policies, tracking

host=127.0.0.1
port=10031

[database]
DSN=DBI:mysql:database=policyd;host=localhost
DB_Type=mysql
DB_Host=localhost
DB_Port=3306
DB_Name=policyd
Username=root
Password=mypass

bypass_mode=tempfail

bypass_timeout=30

[AccessControl]
enable=1

[Greylisting]
enable=1    

[CheckHelo]
enable=1

[CheckSPF]
enable=1

[Quotas]
enable=1

答案1

我在 /etc/postfix/main.cf 文件中犯了一个错误。我没有设置“smtpd_end_of_data_restrictions=check_policy_service inet:127.0.0.1:10031”。

相关内容