Re: [exim] Is there a way to include "quota exceeded" in bou…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Exim users mailing list
Fecha:  
A: Alexander V Alekseev
Cc: exim-users
Asunto: Re: [exim] Is there a way to include "quota exceeded" in bouncemessages?
On Tue, Apr 03, 2007 at 03:10:03PM +0400, Alexander V Alekseev wrote:
>          Hello!

>
>      If maibox quota is exceeded exim writes message about it in
> log and sends bounce with text "delivery error". Is there a way
> to send delivery error details (for example "quota exceeded") to
> sender?


As an example:
virtual_user_quota_defer:
        driver          = redirect
        domains         = +virtual_domains
        condition       = ${if and{\
                                {exists{/var/mail/virtual/$domain/$local_part}}\
                                {>{MYSQL_QUOTA_VMBOX}{0}}\
                                {>={${extract{size}{${stat:/var/mail/virtual/$domain/$local_part}}}}{MYSQL_QUOTA_VMBOX}}\
                              } }
        data            = :defer:User's mailbox size is over quota!
        allow_defer
        allow_fail


To make this router working perfectly you also need a patch
http://www.exim.org/bugzilla/show_bug.cgi?id=475

That patch applies to version 4.66.

-- 
Kind Regards,    Alexander Shikoff
minotaur@???
Mob.: +380 67 946 31 49