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
[EMAIL PROTECTED]
Mob.: +380 67 946 31 49

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to