quota only for oungoing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

quota only for oungoing

Aidar Kamalov
Hello! I setup quota and quota warnings for my mail system(dovecot+exim).
By I want to reject only outgoing messages if quota exceeded.
Is it possible to congi dovecot to not reject incoming messages? I use
dovecot-lda for mail delivery.

ldap_delivery:
  driver = pipe
  command = /usr/lib/dovecot/deliver -d "${lookup ldap{user=**********))(mai
    -f $sender_address -a $original_local_part@$original_domain
  message_prefix =
  message_suffix =
  delivery_date_add
  envelope_to_add
  return_path_add
  log_output
  return_output
  user = mail
  group = mail
  temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78


--
Aydar A. Kamalov
Reply | Threaded
Open this post in threaded view
|

Re: quota only for oungoing

Steffen Kaiser-9
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 19 Oct 2017, Aidar Kamalov wrote:

> Hello! I setup quota and quota warnings for my mail system(dovecot+exim).
> By I want to reject only outgoing messages if quota exceeded.

Oh, how do you do that?

> Is it possible to congi dovecot to not reject incoming messages? I use
> dovecot-lda for mail delivery.

If you remove the "quota" plugin from mail_plugins of the lda section,
quota is not calculated anymore, I guess. So, I suppose, you need to give
unlimited quota for service LDA. How do you configure the quota?

- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBWemIE3z1H7kL/d9rAQLFDAf/VmEMBBYR2lCwrmNs08ReM/XTs0PjXMJo
LVH9jKSVJi4PmLqHtiiz99OmmZUWxdTqhOeOGlgh0mCU37EVozRHI3IT+jjEp2mq
lJlIG2PlpKns2xxWhLafmnwMnB2FE+B/a516BV1gKjzEagAIYElVc1So0ZrAy2As
eYgLMQsatG/Kb3TE10UYVgsC0eN5ev2x89Z3qbKEzpMzMITrv/8x007cFMY8UcoI
GWQ4mDrzYpxt4GZ9K1pipAK9DrcBwoClbgLHkHuXqoLeiO/TNWneBmRHSKiSrd0z
wfK+C172XHA+E87+u+b+5LSWEzhKi13rK4E3fN9hsgaa5Cokayz9cw==
=dPdG
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: quota only for oungoing

Aidar Kamalov
Thank you! I disabled quota plugin and now if quota exceed I can't send any
email, but I can receive new emails.

2017-10-20 8:22 GMT+03:00 Steffen Kaiser <[hidden email]>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, 19 Oct 2017, Aidar Kamalov wrote:
>
> Hello! I setup quota and quota warnings for my mail system(dovecot+exim).
>> By I want to reject only outgoing messages if quota exceeded.
>>
>
> Oh, how do you do that?
>
> Is it possible to congi dovecot to not reject incoming messages? I use
>> dovecot-lda for mail delivery.
>>
>
> If you remove the "quota" plugin from mail_plugins of the lda section,
> quota is not calculated anymore, I guess. So, I suppose, you need to give
> unlimited quota for service LDA. How do you configure the quota?
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEVAwUBWemIE3z1H7kL/d9rAQLFDAf/VmEMBBYR2lCwrmNs08ReM/XTs0PjXMJo
> LVH9jKSVJi4PmLqHtiiz99OmmZUWxdTqhOeOGlgh0mCU37EVozRHI3IT+jjEp2mq
> lJlIG2PlpKns2xxWhLafmnwMnB2FE+B/a516BV1gKjzEagAIYElVc1So0ZrAy2As
> eYgLMQsatG/Kb3TE10UYVgsC0eN5ev2x89Z3qbKEzpMzMITrv/8x007cFMY8UcoI
> GWQ4mDrzYpxt4GZ9K1pipAK9DrcBwoClbgLHkHuXqoLeiO/TNWneBmRHSKiSrd0z
> wfK+C172XHA+E87+u+b+5LSWEzhKi13rK4E3fN9hsgaa5Cokayz9cw==
> =dPdG
> -----END PGP SIGNATURE-----
>



--
Aydar A. Kamalov
Reply | Threaded
Open this post in threaded view
|

Re: quota only for oungoing

Steffen Kaiser-9
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 20 Oct 2017, Aidar Kamalov wrote:

> Thank you! I disabled quota plugin and now if quota exceed I can't send any
> email, but I can receive new emails.

Well, did you verified that your quota does change if a new message
arrives?

> 2017-10-20 8:22 GMT+03:00 Steffen Kaiser <[hidden email]>:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On Thu, 19 Oct 2017, Aidar Kamalov wrote:
>>
>> Hello! I setup quota and quota warnings for my mail system(dovecot+exim).
>>> By I want to reject only outgoing messages if quota exceeded.
>>>
>>
>> Oh, how do you do that?
>>
>> Is it possible to congi dovecot to not reject incoming messages? I use
>>> dovecot-lda for mail delivery.
>>>
>>
>> If you remove the "quota" plugin from mail_plugins of the lda section,
>> quota is not calculated anymore, I guess. So, I suppose, you need to give
>> unlimited quota for service LDA. How do you configure the quota?
>>
>> - -- Steffen Kaiser
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1
>>
>> iQEVAwUBWemIE3z1H7kL/d9rAQLFDAf/VmEMBBYR2lCwrmNs08ReM/XTs0PjXMJo
>> LVH9jKSVJi4PmLqHtiiz99OmmZUWxdTqhOeOGlgh0mCU37EVozRHI3IT+jjEp2mq
>> lJlIG2PlpKns2xxWhLafmnwMnB2FE+B/a516BV1gKjzEagAIYElVc1So0ZrAy2As
>> eYgLMQsatG/Kb3TE10UYVgsC0eN5ev2x89Z3qbKEzpMzMITrv/8x007cFMY8UcoI
>> GWQ4mDrzYpxt4GZ9K1pipAK9DrcBwoClbgLHkHuXqoLeiO/TNWneBmRHSKiSrd0z
>> wfK+C172XHA+E87+u+b+5LSWEzhKi13rK4E3fN9hsgaa5Cokayz9cw==
>> =dPdG
>> -----END PGP SIGNATURE-----
>>
>
>
>
>

- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBWemtHnz1H7kL/d9rAQKAMwgAiUsnMgUD4a6kATNFbwvx5fxM+4Vfj5jW
3X9vjjeJw6v1ixRV0Oqz/5kAi7Z4u/Q3jjjspiIhTIX8Dq0mJ7JkZ9PtZM8wol4i
qWmYxmemmy87D8xRZt91u0JiZFHICAZt9L5R+ivjZt0b969coyN9NTofK+/5ydu5
3dm78Ni5DX9ed0FJw1XoZzDp6QC/w4L263KyU0H99i/hUR1z7tieP76q6m5N6jJr
0US2hMxG4TwRj6oBcIdGx8R967pA80OW6u0tdnW+IOfx/lg3gU6EnHWe0s/i8sxt
7zrjI0WusXB0wXPiyBZEMLYfnJJhuGetmQTAnqBSfCLjBh5ViJrf/g==
=C5Jw
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: quota only for oungoing

Aidar Kamalov
oops. no, quota doesn't change :(
thats my configs:
plugin {

  quota = maildir:User quota
  quota_rule = *:storage=300M
  quota_rule2 = Trash:storage=+10%%
  quota_rule3 = Sent:ignore
  quota_rule4 = Archive*:ignore
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  quota_grace = 10%%
}

protocol lda {
  mail_home = /var/spool/mail/%d/%n
  mail_plugins = $mail_plugins sieve
  log_path = /var/log/dovecot/dovecot-lda-errors.log
  info_log_path = /var/log/dovecot/dovecot-lda.log
  lda_mailbox_autocreate = yes
  lda_mailbox_autosubscribe = yes
}


2017-10-20 11:00 GMT+03:00 Steffen Kaiser <[hidden email]>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri, 20 Oct 2017, Aidar Kamalov wrote:
>
> Thank you! I disabled quota plugin and now if quota exceed I can't send any
>> email, but I can receive new emails.
>>
>
> Well, did you verified that your quota does change if a new message
> arrives?
>
>
> 2017-10-20 8:22 GMT+03:00 Steffen Kaiser <[hidden email]>:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On Thu, 19 Oct 2017, Aidar Kamalov wrote:
>>>
>>> Hello! I setup quota and quota warnings for my mail system(dovecot+exim).
>>>
>>>> By I want to reject only outgoing messages if quota exceeded.
>>>>
>>>>
>>> Oh, how do you do that?
>>>
>>> Is it possible to congi dovecot to not reject incoming messages? I use
>>>
>>>> dovecot-lda for mail delivery.
>>>>
>>>>
>>> If you remove the "quota" plugin from mail_plugins of the lda section,
>>> quota is not calculated anymore, I guess. So, I suppose, you need to give
>>> unlimited quota for service LDA. How do you configure the quota?
>>>
>>> - -- Steffen Kaiser
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1
>>>
>>> iQEVAwUBWemIE3z1H7kL/d9rAQLFDAf/VmEMBBYR2lCwrmNs08ReM/XTs0PjXMJo
>>> LVH9jKSVJi4PmLqHtiiz99OmmZUWxdTqhOeOGlgh0mCU37EVozRHI3IT+jjEp2mq
>>> lJlIG2PlpKns2xxWhLafmnwMnB2FE+B/a516BV1gKjzEagAIYElVc1So0ZrAy2As
>>> eYgLMQsatG/Kb3TE10UYVgsC0eN5ev2x89Z3qbKEzpMzMITrv/8x007cFMY8UcoI
>>> GWQ4mDrzYpxt4GZ9K1pipAK9DrcBwoClbgLHkHuXqoLeiO/TNWneBmRHSKiSrd0z
>>> wfK+C172XHA+E87+u+b+5LSWEzhKi13rK4E3fN9hsgaa5Cokayz9cw==
>>> =dPdG
>>> -----END PGP SIGNATURE-----
>>>
>>>
>>
>>
>>
>>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEVAwUBWemtHnz1H7kL/d9rAQKAMwgAiUsnMgUD4a6kATNFbwvx5fxM+4Vfj5jW
> 3X9vjjeJw6v1ixRV0Oqz/5kAi7Z4u/Q3jjjspiIhTIX8Dq0mJ7JkZ9PtZM8wol4i
> qWmYxmemmy87D8xRZt91u0JiZFHICAZt9L5R+ivjZt0b969coyN9NTofK+/5ydu5
> 3dm78Ni5DX9ed0FJw1XoZzDp6QC/w4L263KyU0H99i/hUR1z7tieP76q6m5N6jJr
> 0US2hMxG4TwRj6oBcIdGx8R967pA80OW6u0tdnW+IOfx/lg3gU6EnHWe0s/i8sxt
> 7zrjI0WusXB0wXPiyBZEMLYfnJJhuGetmQTAnqBSfCLjBh5ViJrf/g==
> =C5Jw
> -----END PGP SIGNATURE-----
>



--
Aydar A. Kamalov
Reply | Threaded
Open this post in threaded view
|

Re: quota only for oungoing

Aidar Kamalov
that config solved my problem

protocol lda {

  plugin {
    quota = maildir:User quota:noenforcing
  }
}

2017-10-20 11:30 GMT+03:00 Aidar Kamalov <[hidden email]>:

> oops. no, quota doesn't change :(
> thats my configs:
> plugin {
>
>   quota = maildir:User quota
>   quota_rule = *:storage=300M
>   quota_rule2 = Trash:storage=+10%%
>   quota_rule3 = Sent:ignore
>   quota_rule4 = Archive*:ignore
>   quota_warning = storage=95%% quota-warning 95 %u
>   quota_warning2 = storage=80%% quota-warning 80 %u
>   quota_grace = 10%%
> }
>
> protocol lda {
>   mail_home = /var/spool/mail/%d/%n
>   mail_plugins = $mail_plugins sieve
>   log_path = /var/log/dovecot/dovecot-lda-errors.log
>   info_log_path = /var/log/dovecot/dovecot-lda.log
>   lda_mailbox_autocreate = yes
>   lda_mailbox_autosubscribe = yes
> }
>
>
> 2017-10-20 11:00 GMT+03:00 Steffen Kaiser <[hidden email]>:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On Fri, 20 Oct 2017, Aidar Kamalov wrote:
>>
>> Thank you! I disabled quota plugin and now if quota exceed I can't send
>>> any
>>> email, but I can receive new emails.
>>>
>>
>> Well, did you verified that your quota does change if a new message
>> arrives?
>>
>>
>> 2017-10-20 8:22 GMT+03:00 Steffen Kaiser <[hidden email]>:
>>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> On Thu, 19 Oct 2017, Aidar Kamalov wrote:
>>>>
>>>> Hello! I setup quota and quota warnings for my mail
>>>> system(dovecot+exim).
>>>>
>>>>> By I want to reject only outgoing messages if quota exceeded.
>>>>>
>>>>>
>>>> Oh, how do you do that?
>>>>
>>>> Is it possible to congi dovecot to not reject incoming messages? I use
>>>>
>>>>> dovecot-lda for mail delivery.
>>>>>
>>>>>
>>>> If you remove the "quota" plugin from mail_plugins of the lda section,
>>>> quota is not calculated anymore, I guess. So, I suppose, you need to
>>>> give
>>>> unlimited quota for service LDA. How do you configure the quota?
>>>>
>>>> - -- Steffen Kaiser
>>>> -----BEGIN PGP SIGNATURE-----
>>>> Version: GnuPG v1
>>>>
>>>> iQEVAwUBWemIE3z1H7kL/d9rAQLFDAf/VmEMBBYR2lCwrmNs08ReM/XTs0PjXMJo
>>>> LVH9jKSVJi4PmLqHtiiz99OmmZUWxdTqhOeOGlgh0mCU37EVozRHI3IT+jjEp2mq
>>>> lJlIG2PlpKns2xxWhLafmnwMnB2FE+B/a516BV1gKjzEagAIYElVc1So0ZrAy2As
>>>> eYgLMQsatG/Kb3TE10UYVgsC0eN5ev2x89Z3qbKEzpMzMITrv/8x007cFMY8UcoI
>>>> GWQ4mDrzYpxt4GZ9K1pipAK9DrcBwoClbgLHkHuXqoLeiO/TNWneBmRHSKiSrd0z
>>>> wfK+C172XHA+E87+u+b+5LSWEzhKi13rK4E3fN9hsgaa5Cokayz9cw==
>>>> =dPdG
>>>> -----END PGP SIGNATURE-----
>>>>
>>>>
>>>
>>>
>>>
>>>
>> - -- Steffen Kaiser
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1
>>
>> iQEVAwUBWemtHnz1H7kL/d9rAQKAMwgAiUsnMgUD4a6kATNFbwvx5fxM+4Vfj5jW
>> 3X9vjjeJw6v1ixRV0Oqz/5kAi7Z4u/Q3jjjspiIhTIX8Dq0mJ7JkZ9PtZM8wol4i
>> qWmYxmemmy87D8xRZt91u0JiZFHICAZt9L5R+ivjZt0b969coyN9NTofK+/5ydu5
>> 3dm78Ni5DX9ed0FJw1XoZzDp6QC/w4L263KyU0H99i/hUR1z7tieP76q6m5N6jJr
>> 0US2hMxG4TwRj6oBcIdGx8R967pA80OW6u0tdnW+IOfx/lg3gU6EnHWe0s/i8sxt
>> 7zrjI0WusXB0wXPiyBZEMLYfnJJhuGetmQTAnqBSfCLjBh5ViJrf/g==
>> =C5Jw
>> -----END PGP SIGNATURE-----
>>
>
>
>
> --
> Aydar A. Kamalov
>



--
Aydar A. Kamalov