1

Topic: SENDER_TROTTLE_SASL: senderrcptlimit

================ Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
- Policyd 1.8
====

Hello,
I notice that if I send an outgoing mail with more than one recipient (to or cc is indifferent)
throttle rcpt count increases always by 1, and not by real number of recipients.

Debug Log:
UPDATE throttle SET _rcpt_cur=_rcpt_cur+1, _rcpt_tot=_rcpt_tot+1, _quota_cur=_quota_cur+388, _count_cur=_count_cur+1, _count_tot=_count_tot+1

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SENDER_TROTTLE_SASL: senderrcptlimit

Could you please show us output of "postconf -n"?

3

Re: SENDER_TROTTLE_SASL: senderrcptlimit

Hello  Zhang,
I looked at the source file throttle_sasl.c of policyd 1.8
I'm not sure ... I think that policyd not check the number of recipients in the message and sum always 1.
FROM  throttle_sasl.c:
/* build up & execute query */
  snprintf(mysqlquery_array[fd], 512,
    "UPDATE throttle SET"
    " _rcpt_cur=_rcpt_cur+1,"
   " _rcpt_tot=_rcpt_tot+1,"
    " _quota_cur=_quota_cur+%ld,"
    " _count_cur=_count_cur+%d,"
    " _count_tot=_count_tot+%d,"
    " _abuse_cur=0"
    " WHERE _from='%s'",
    atol(triplet_array[fd][3]),
    instance_inc[fd],
    instance_inc[fd],
    triplet_array[fd][4]);
  if(db_doquery(fd) == -1) return(db_failure(fd, "throttle"));


what do you think?
Thanks

4

Re: SENDER_TROTTLE_SASL: senderrcptlimit

This depends on Postfix settings. Usually, we have '[transport]_destination_recipient_limit=1' in Postfix, so Postfix policy server (Policyd, in our case) accepts only one recipient for current message, and it will receive multiple requests if one message has multiple recipients.

5

Re: SENDER_TROTTLE_SASL: senderrcptlimit

Hello  Zhang,
in my postix/main.cf I have the following destination_recipient_limit:

dovecot_destination_recipient_limit = 1
smtp-amavis_destination_recipient_limit = 1

Thanks

6

Re: SENDER_TROTTLE_SASL: senderrcptlimit

Could you please check this tutorial?
http://www.iredmail.org/wiki/index.php? … ian.Ubuntu

7

Re: SENDER_TROTTLE_SASL: senderrcptlimit

I've rechecked my throttle configuration as you suggested.
Configuration seem ok

What I'm missing? hmm

Thanks

8

Re: SENDER_TROTTLE_SASL: senderrcptlimit

If configurations mentioned in tutorial doesn't work for you, i have no idea yet. Maybe it's time to upgrade Policyd to Cluebringer.