Hi,
I do also have trouble to get my outbound quota working with PolicyD and Postfix.
Quotas for incoming mails are working. But quotas for outgoing mails do not work.
The goal is to limit the number of outgoing smtp mails per user to 3 per hour.
I do also have trouble to get my outbound quota working with PolicyD and Postfix.
Quotas for incoming mails are working. But quotas for outgoing mails do not work.
The goal is to limit the number of outgoing smtp mails per user to 3 per hour.
The symptoms:
When I send mails from a connected roundcube webmailer to an external mail server, nothing seems to happen.
Policyd.quotas_tracking and policyd.session_tracking just stay empty.
On the other hand, when I send mails from an external mailserver to my own mailserver, I can see new entries appearing in
policyd.session_tracking. Also the policies for incomming mails are working just fine. Why are Outbound mails do not show up in policyd.session_tracking? Is there a misconfiguration that I can't see?
When I send mails from a connected roundcube webmailer to an external mail server, nothing seems to happen.
Policyd.quotas_tracking and policyd.session_tracking just stay empty.
On the other hand, when I send mails from an external mailserver to my own mailserver, I can see new entries appearing in
policyd.session_tracking. Also the policies for incomming mails are working just fine. Why are Outbound mails do not show up in policyd.session_tracking? Is there a misconfiguration that I can't see?
I attached my main.cf, the master.cf and relevant policyd tabels to illustrate.
Can someone please point me into the right direction to solve this problem.
Can someone please point me into the right direction to solve this problem.
Thx
Steffen
Steffen
master.cf
Description: Binary data
policyd.policies +----+------------------+----------+--------------------------------+----------+ | ID | Name | Priority | Description | Disabled | +----+------------------+----------+--------------------------------+----------+ | 1 | Default | 0 | Default System Policy | 0 | | 2 | Default Outbound | 10 | Default Outbound System Policy | 0 | | 3 | Default Inbound | 10 | Default Inbound System Policy | 0 | | 4 | Default Internal | 20 | Default Internal System Policy | 0 | +----+------------------+----------+--------------------------------+----------+
policyd.policy_members +----+----------+-----------------------------------+--------------------+---------+----------+ | ID | PolicyID | Source | Destination | Comment | Disabled | +----+----------+-----------------------------------+--------------------+---------+----------+ | 1 | 1 | NULL | NULL | NULL | 0 | | 2 | 2 | %internal_ips,%internal_domains | !%internal_domains | NULL | 0 | | 3 | 3 | !%internal_ips,!%internal_domains | %internal_domains | NULL | 0 | | 4 | 4 | %internal_ips,%internal_domains | %internal_domains | NULL | 0 | +----+----------+-----------------------------------+--------------------+---------+----------+ policyd.quotas +----+----------+------------------------+--------------------+--------+---------+------+-----------+---------+----------+ | ID | PolicyID | Name | Track | Period | Verdict | Data | LastQuota | Comment | Disabled | +----+----------+------------------------+--------------------+--------+---------+------+-----------+---------+----------+ | 5 | 2 | Default Outbound Quota | Sender:user@domain | 3600 | REJECT | 3 | 0 | limit=3 | 0 | +----+----------+------------------------+--------------------+--------+---------+------+-----------+---------+----------+ policyd.quotas_limits +----+----------+--------------+--------------+---------+----------+ | ID | QuotasID | Type | CounterLimit | Comment | Disabled | +----+----------+--------------+--------------+---------+----------+ | 6 | 5 | MessageCount | 3 | limit=3 | 0 | +----+----------+--------------+--------------+---------+----------+
main.cf
Description: Binary data
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
