Hi  Simon,

Thank you very much for your help. I've set it up exactly, as you have
explained very detailed... I must have missed something, because it still
does not trigger...
I cannot find any record in quotas_tracking.... although it is a quite heavy
site. Of course I'm testing with a remote mail program - I want to trigger
SASLUsername quotas...


This is the database config:

mysql> select * from policies;
+----+-------------+----------+---------------------------------+----------+
| ID | Name        | Priority | Description                     | Disabled |
+----+-------------+----------+---------------------------------+----------+
|  5 | Test        |       50 | Test policy                     |        0 |
|  7 | Inbound     |       10 | Default inbound traffic         |        0 |
|  8 | SASL Policy |       10 | Default outbound via SASL Login |        0 |
|  9 | HiVol       |       10 | senders with really high volume |        0 |
| 10 | Internal    |       20 | Internal                        |        0 |
| 11 | Local       |       30 | Really local mails              |        0 |
+----+-------------+----------+---------------------------------+----------+
6 rows in set (0.00 sec)

mysql> select * from policy_members;
+----+----------+-------------------------------+-------------+-------------
-------------------+----------+
| ID | PolicyID | Source                        | Destination | Comment
| Disabled |
+----+----------+-------------------------------+-------------+-------------
-------------------+----------+
|  9 |        7 | !$*,!%internal_ips            | any         | default
inbound                |        0 |
| 10 |        8 | !%My_Network,!%hi-vol-sasl,$* | ANY         | sasl
username to any recipient |        0 |
| 11 |       10 | %My_Network,$*,!%hi-vol-sasl  | ANY         |
|        0 |
| 12 |       11 | %internal_ips                 | ANY         |
|        0 |
+----+----------+-------------------------------+-------------+-------------
-------------------+----------+
4 rows in set (0.00 sec)

mysql> select * from policy_groups;
+----+--------------+----------+---------+
| ID | Name         | Disabled | Comment |
+----+--------------+----------+---------+
|  4 | internal_ips |        0 |         |
|  5 | My_Network   |        0 |         |
|  6 | hi-vol-sasl  |        0 |         |
+----+--------------+----------+---------+
3 rows in set (0.00 sec)

mysql> select * from policy_group_members;
+----+---------------+-----------------------+----------+-----------------+
| ID | PolicyGroupID | Member                | Disabled | Comment         |
+----+---------------+-----------------------+----------+-----------------+
|  6 |             4 | 127.0.0.1/8           |        0 | Localhost only  |
|  7 |             5 | 192.168.0.0/24        |        0 | internal LAN    |
|  8 |             6 | [email protected]     |        0 | user1           |
|  9 |             6 | [email protected]     |        0 | user 2          |
+----+---------------+-----------------------+----------+-----------------+
4 rows in set (0.00 sec)

mysql> select * from quotas;
+----+----------+-------------------+--------------+--------+---------+-----
-+---------+----------+
| ID | PolicyID | Name              | Track        | Period | Verdict | Data
| Comment | Disabled |
+----+----------+-------------------+--------------+--------+---------+-----
-+---------+----------+
| 10 |        9 | HiVolQuota        | SASLUsername |   3600 | REJECT  |
|         |        0 |
| 11 |        8 | Normal SASL Quota | SASLUsername |   3600 | REJECT  |
|         |        0 |
+----+----------+-------------------+--------------+--------+---------+-----
-+---------+----------+
2 rows in set (0.00 sec)


mysql> select * from quotas_limits;
+----+----------+-----------------------+--------------+---------+----------
+
| ID | QuotasID | Type                  | CounterLimit | Comment | Disabled
|
+----+----------+-----------------------+--------------+---------+----------
+
| 13 |       10 | MessageCount          |         1800 |         |        0
|
| 14 |       10 | MessageCumulativeSize |          200 |         |        1
|
| 15 |       11 | MessageCount          |          350 |         |        0
|
+----+----------+-----------------------+--------------+---------+----------
+
3 rows in set (0.00 sec)



-----Ursprüngliche Nachricht-----
Von: Users [mailto:[email protected]] Im Auftrag von Simon
Hobson
Gesendet: Dienstag, 29. Oktober 2013 12:27
An: [email protected]
Betreff: Re: [policyd-users] Problems understanding cluebringers setup

Christoph Christ wrote:
>Does anybody have a good howto, how to setup a working outbound 
>SASLUsername quota, or could probably point me to the right direction?
>
>Inbound quotas are working, outgoing quotas are ignored.
>
>I am using the default setup and changed only the defaults from
>SenderIP:/24 to SASLUsername

>IIRC the defaults don't really work for practical setups. Check the mail
archives and look for a post I made under the thread "configure quotas via
webui" on 15 Aug >2013 9:54:02 +0100- there I detailed my setup which should
get you going.

>BTW - for outbound mail, you must use port 25 (or 587) to send mail into
the system using the smtp daemon. Delivering mail via local mechanisms, as
would happen if >you just do "echo Testing | mail -s Test user@domain" on
the mail server, won't work as that uses a different mechanism.

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to