Re: [exim] Maildrop + Quota Full, no bounce message

Inizio della pagina
Delete this message
Reply to this message
Autore: Phil Pennock
Data:  
To: Chack
CC: exim-users
Oggetto: Re: [exim] Maildrop + Quota Full, no bounce message
On 2011-03-06 at 20:15 +0100, Chack wrote:
> I am running Exim4 with virtual users from a mysql databse. Mails are
> delivered through courier maildrop into the maildirs. Everythign works
> fine except that if a mailbox goes over the quota, maildrop just fails
> with error code 75 and exim will defer the message trying to deliver
> it again. I would like to bounce the messages back instead so people
> who try to send mail are quickly notified that the mailbox they want
> to send to is full.


On the pipe transport used to invoke maildrop, change temp_errors away
from its default, which includes EX_TEMPFAIL (75) as one of the numbers
in the list.

Eg:
temp_errors = 73

> If i test maildrop directly i get this result:
> # maildrop -d accountname < test.eml
> maildrop: maildir over quota.
>
> Is there a way i can stop exim4 from retrying maildrop deliveries and maybe add a custom error message to the bounce saying the mailbox is full?


Set "return_fail_output" on the transport and the output from maildrop
will be included in the bounce message.

-Phil