Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-08 Thread Jorge Bastos
One extra thing, this to be 200% perfect, was the ability to send a 
message to the sender telling that the message got queue due to the end 
user's mailbox being full.


would it be possible? this may be postfix related but if anyone can 
help.


Thanks,

On 2022-02-08 14:22, Jorge Bastos wrote:


Hi Lucas,

Oh, it's so damn simple!
Thank you!!

Thank you all others aswell, i've read all info sent, thanks!!

Jorge

On 2022-02-07 22:57, Lucas Rolff wrote:

An option is to use  
https://doc.dovecot.org/settings/core/#core_setting-quota_full_tempfail 
- you can configure it e.g.


protocol lda {
quota_full_tempfail = yes
}

On 7 Feb 2022, at 23:41, Jorge Bastos  wrote:

Howdy,

I don't know if this is dovecot specific and i guess it may not be at 
100% so I ask for help.


I want postfix not to discard the message imediatly when a mailbox is 
full, i mean when postfix tries to deliver it to dovecot lmtp.
Is it possible to change the behavior to something like what postfix 
does when he tries to deliver a message to an external server and the 
server is unaccessible for 4 days (the default i guess), and if in that 
period discard it.


Does this exists? At least i know gmail does something similar to this.

I've tried to google a bit but didn't found info that could lead me to 
this configuration.


Thanks in advanced,
Jorge

Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-08 Thread Jorge Bastos

Hi Lucas,

Oh, it's so damn simple!
Thank you!!

Thank you all others aswell, i've read all info sent, thanks!!

Jorge

On 2022-02-07 22:57, Lucas Rolff wrote:

An option is to use  
https://doc.dovecot.org/settings/core/#core_setting-quota_full_tempfail 
- you can configure it e.g.


protocol lda {
quota_full_tempfail = yes
}


On 7 Feb 2022, at 23:41, Jorge Bastos  wrote:

Howdy,

I don't know if this is dovecot specific and i guess it may not be at 
100% so I ask for help.


I want postfix not to discard the message imediatly when a mailbox is 
full, i mean when postfix tries to deliver it to dovecot lmtp.
Is it possible to change the behavior to something like what postfix 
does when he tries to deliver a message to an external server and the 
server is unaccessible for 4 days (the default i guess), and if in 
that period discard it.


Does this exists? At least i know gmail does something similar to 
this.


I've tried to google a bit but didn't found info that could lead me to 
this configuration.


Thanks in advanced,
Jorge

Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-08 Thread Anne Bennett


>> I want postfix not to discard the message imediatly when a mailbox is
>> full, i mean when postfix tries to deliver it to dovecot lmtp.

> if you set "quota_full_tempfail" to "yes" in dovecots lda.conf, it
> should answer with a temporary failure-code 422 instead of permanent
> 522. (at least the code of lmtp_local_rcpt_reply_overquota() says so)

Here's another possibility, via Postfix's configuration:

  # Convert over quota to temporary failure.
  lmtp_delivery_status_filter = pcre:/local/data/postfix/pcre_lmtp_dsn_filter
  lmtp_reply_filter   = pcre:/local/data/postfix/pcre_lmtp_dsn_filter

  # warn sender if temporarily undeliverable, just like sendmail would.
  delay_warning_time = 4h

... where pcre_lmtp_dsn_filter contains something like this, adapted
as needed to the actual messages generated at your site:

  # Convert 5xx permanent failure to 4xx temporary failure:
  /^5(\d\d) 5(\.\d+\.\d+ \S+ Not enough disk quota)/ 4$1 4$2



Anne.
-- 
Ms. Anne Bennett, Senior Sysadmin, ENCS, Concordia University, Montreal H3G 1M8


Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-08 Thread Narcis Garcia

__
I'm using this dedicated address because personal addresses aren't 
masked enough at this mail public archive. Public archive administrator 
should fix this against automated addresses collectors.

El 8/2/22 a les 10:02, dc...@dvl.werbittewas.de ha escrit:



Am 07.02.22 um 23:41 schrieb Jorge Bastos:


I want postfix not to discard the message imediatly when a mailbox is
full, i mean when postfix tries to deliver it to dovecot lmtp.
Is it possible to change the behavior to something like what postfix
does when he tries to deliver a message to an external server and the
server is unaccessible for 4 days (the default i guess), and if in that
period discard it.


if you set "quota_full_tempfail" to "yes" in dovecots lda.conf, it
should answer with a temporary failure-code 422 instead of permanent
522. (at least the code of lmtp_local_rcpt_reply_overquota() says so)

as lmtp is similar to smtp, postfix or any other MTA should honor this
and keep the message in queue until the temporary failure goeas away or
the queue-timeout (in Postfix!) is reached.

d.



Thank you. I'll try this.


Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-08 Thread dc-ml



Am 07.02.22 um 23:41 schrieb Jorge Bastos:

> I want postfix not to discard the message imediatly when a mailbox is
> full, i mean when postfix tries to deliver it to dovecot lmtp.
> Is it possible to change the behavior to something like what postfix
> does when he tries to deliver a message to an external server and the
> server is unaccessible for 4 days (the default i guess), and if in that
> period discard it.

if you set "quota_full_tempfail" to "yes" in dovecots lda.conf, it
should answer with a temporary failure-code 422 instead of permanent
522. (at least the code of lmtp_local_rcpt_reply_overquota() says so)

as lmtp is similar to smtp, postfix or any other MTA should honor this
and keep the message in queue until the temporary failure goeas away or
the queue-timeout (in Postfix!) is reached.

d.


Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-08 Thread Aki Tuomi


> On 08/02/2022 09:09 Narcis Garcia  wrote:
> 
>  
> +1
> 
> 
> 
> Narcis Garcia
> 
> __
> I'm using this dedicated address because personal addresses aren't 
> masked enough at this mail public archive. Public archive administrator 
> should fix this against automated addresses collectors.
> El 7/2/22 a les 23:41, Jorge Bastos ha escrit:
> > Howdy,
> > 
> > I don't know if this is dovecot specific and i guess it may not be at 
> > 100% so I ask for help.
> > 
> > I want postfix not to discard the message imediatly when a mailbox is 
> > full, i mean when postfix tries to deliver it to dovecot lmtp.
> > Is it possible to change the behavior to something like what postfix 
> > does when he tries to deliver a message to an external server and the 
> > server is unaccessible for 4 days (the default i guess), and if in that 
> > period discard it.
> > 
> > Does this exists? At least i know gmail does something similar to this.
> > 
> > I've tried to google a bit but didn't found info that could lead me to 
> > this configuration.
> > 
> > Thanks in advanced,
> > Jorge
> > 

Hi!

LMTP has no queueing mechanism, so the retry should be done with Postfix. Maybe 
ask in the postfix list how to make it treat LMTP quota/disk full as temporary 
error? 

Aki


Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-07 Thread Narcis Garcia

+1



Narcis Garcia

__
I'm using this dedicated address because personal addresses aren't 
masked enough at this mail public archive. Public archive administrator 
should fix this against automated addresses collectors.

El 7/2/22 a les 23:41, Jorge Bastos ha escrit:

Howdy,

I don't know if this is dovecot specific and i guess it may not be at 
100% so I ask for help.


I want postfix not to discard the message imediatly when a mailbox is 
full, i mean when postfix tries to deliver it to dovecot lmtp.
Is it possible to change the behavior to something like what postfix 
does when he tries to deliver a message to an external server and the 
server is unaccessible for 4 days (the default i guess), and if in that 
period discard it.


Does this exists? At least i know gmail does something similar to this.

I've tried to google a bit but didn't found info that could lead me to 
this configuration.


Thanks in advanced,
Jorge







Re: On mailbox full, retry for 4 days or similar instead of reject

2022-02-07 Thread Christian Kivalo



On February 7, 2022 11:41:08 PM GMT+01:00, Jorge Bastos 
 wrote:
>Howdy,
>
>I don't know if this is dovecot specific and i guess it may not be at 
>100% so I ask for help.
>
>I want postfix not to discard the message imediatly when a mailbox is 
>full, i mean when postfix tries to deliver it to dovecot lmtp.
>Is it possible to change the behavior to something like what postfix 
>does when he tries to deliver a message to an external server and the 
>server is unaccessible for 4 days (the default i guess), and if in that 
>period discard it.
How do you signal postfix that the mailbox is full?
How much over quota do you want a mailbox to be allowed to go?
Whats your running config, please show doveconf -n
>Does this exists? At least i know gmail does something similar to this.
>
>I've tried to google a bit but didn't found info that could lead me to 
>this configuration.
Dovecot quota documentation can be found here 
https://doc.dovecot.org/configuration_manual/quota_plugin/
>Thanks in advanced,
>Jorge
-- 
Christian Kivalo


On mailbox full, retry for 4 days or similar instead of reject

2022-02-07 Thread Jorge Bastos

Howdy,

I don't know if this is dovecot specific and i guess it may not be at 
100% so I ask for help.


I want postfix not to discard the message imediatly when a mailbox is 
full, i mean when postfix tries to deliver it to dovecot lmtp.
Is it possible to change the behavior to something like what postfix 
does when he tries to deliver a message to an external server and the 
server is unaccessible for 4 days (the default i guess), and if in that 
period discard it.


Does this exists? At least i know gmail does something similar to this.

I've tried to google a bit but didn't found info that could lead me to 
this configuration.


Thanks in advanced,
Jorge