1

Topic: Attachment Size

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

I have changed 'SENDERMSGSIZE=26214400' in policyd_sender_throttle.conf file instead of default value '15728640. After i tried to send mail but still its taking old value.

'Sep 21 12:58:49 pre081 policyd: rcpt=5101, throttle=abuse(f), host=****, from=mail8@gmail.com, to=test@mydomain.in, size=23999048/15728640, quota=10364/250000000, count=4/512(1781), rcpt=4/3600(1781), threshold=0%|0%|0
End-of-data rejected: Policy Rejection- Message size too big.;

Do i need to run any command for updating configuration.

Kindly advise.

Regards,

Khan B

----

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

2

Re: Attachment Size

*) Did you restart Policyd service?
*) If there's existing SQL record for this user, please update this SQL record also.

3

Re: Attachment Size

ZhangHuangbin wrote:

*) Did you restart Policyd service?
*) If there's existing SQL record for this user, please update this SQL record also.

Hi Zhang,

Yes. i did policyd restart.

If the users has default old values, do i need to update SQL records for each user individually?


Regards,

Khanb

4

Re: Attachment Size

khanb wrote:

If the users has default old values, do i need to update SQL records for each user individually?

Just update existing records in Policyd database.

5

Re: Attachment Size

ZhangHuangbin wrote:
khanb wrote:

If the users has default old values, do i need to update SQL records for each user individually?

Just update existing records in Policyd database.

Hi Zhang,

Can you guide me how to do it ?

Regards,

Khan B

6

Re: Attachment Size

If user sent/received emails before, Policyd logs throttling settings in SQL table "policyd.throttle" or "throttle_rcpt" (even with global settings). so you should update these two tables with new value.

Reference: http://policyd.sourceforge.net/readme.html (Search 'throttle' in this page)

7

Re: Attachment Size

ZhangHuangbin wrote:

If user sent/received emails before, Policyd logs throttling settings in SQL table "policyd.throttle" or "throttle_rcpt" (even with global settings). so you should update these two tables with new value.

Reference: http://policyd.sourceforge.net/readme.html (Search 'throttle' in this page)

Hi Zhang,

As per the article i have updated 'mail_size' value to new value in table throttle. Now its taking new value while sending mails.
But whenever i receive mail it caches old value (15728640)again and rejecting mails. I am excited how come this value getting affect for incoming mail as this value we configured for single outgoing mail size. even i have  checked same value on other tables (throttle_rcpt,throttle_instances) and couldn't find it.

Regards,

Khan B

8

Re: Attachment Size

Sorry, i forgot to ask, did you set this as a per-domain setting, or a per-user setting?
As far as i know, there's a bug in Policyd-1.8, it doesn't read per-domain setting as described in its official doc: http://policyd.sourceforge.net/readme.html

Also, it's better to ask in Policyd mailing list. if it doesn't work as described in its official doc, we have no idea about what we can do to fix it in programming level. Unfortunately, looks like Policyd-1.8 is not under active maintenance by developer, i wish you good luck.

9

Re: Attachment Size

ZhangHuangbin wrote:

Sorry, i forgot to ask, did you set this as a per-domain setting, or a per-user setting?
As far as i know, there's a bug in Policyd-1.8, it doesn't read per-domain setting as described in its official doc: http://policyd.sourceforge.net/readme.html

Also, it's better to ask in Policyd mailing list. if it doesn't work as described in its official doc, we have no idea about what we can do to fix it in programming level. Unfortunately, looks like Policyd-1.8 is not under active maintenance by developer, i wish you good luck.

Hi Zhang,

Thanks for your update.
I have configured throttling per user wise. Seems like bugs in policyd.

So many users mails are getting rejected due to this reason and we couldn't find any solution to fix the problem other than disabling throttle feature.

It would be great if you can work around for throttle that it should work as expected, As i have seen most of the members did query for throttle aspects.

Regards,

Khan B

10

Re: Attachment Size

Since Policyd-1.8 has this bug, and it's not under active maintenance, we encourage all users to upgrade to Cluebringer (a.k.a. Policyd v2).
We're working on Cluebringer support within iRedAdmin-Pro, just throttling is not yet implemented, will be available soon.