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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Exim users mailing list
日付:  
To: Alexander V Alekseev
CC: exim-users
題目: 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