Re: [exim] Problems with quota

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Alexander Nagel
日付:  
To: exim-users
題目: Re: [exim] Problems with quota
Hi,

meanwhile I discovered the "problem"
Exim only sends an email if you actually cross the threshold.
If you are already above it, Exim doesn't send an email.

regards
Alexander

Am 25.08.2010 19:45, schrieb Alexander Nagel:
> Hi,
>
> myproblem: Exim does not regonize the quota threshold and does not send
> a warning mail.
>
> What i have done so far:
>
> i have a exim setup with virtual user and a postgres which works fine so
> far. Now i want to add quota facility. The mailbox which i am using has
> currently about 40MB when i use
> du -sh .
> Exim wrote about 25MB in the maildirsize because of the regex, which is ok.
> And as quota limit i defined 50 MB and a threshold of 10%
> The maildirsize file is also correct and gets updated with every new mail.
>
> So, what I am missing?
> It would be very kind if someone could help me.
>
> Thank you
> Alexander
>
> This is the interessting transport is this one:
>
>    sql_user_local_delivery:
>                   driver          = appendfile
>                   quota                   = 50M
>                   quota_warn_threshold    = 10%
>                   # quota_directory         =
> /var/mail/vhosts/${domain}/${local_part}/Maildir
>                   directory       =
> /var/mail/vhosts/${domain}/${local_part}/Maildir
>                   maildir_format
>                   maildir_use_size_file
>                   delivery_date_add
>                   envelope_to_add
>                   return_path_add
>                   headers_remove  = Subject:X-Spam-Subject
>                   headers_add     = "Subject: ${if
> def:header_X-Spam-Subject:{$h_x-spam-subject:}{$h_subject:}}"
>                   user            = mail
>                   group           = mail
>                   mode            = 0660

>
>
>
>
> Output when running exim with -d
>
> 3699>>>>>>>>>>>>>>>>  Local deliveries>>>>>>>>>>>>>>>>
>    3699 -------->  alexander@???<--------
>    3699 locking /var/spool/exim4/db/retry.lockfile
>    3699 locked /var/spool/exim4/db/retry.lockfile
>    3699 EXIM_DBOPEN(/var/spool/exim4/db/retry)
>    3699 returned from EXIM_DBOPEN
>    3699 opened hints database /var/spool/exim4/db/retry: flags=O_RDONLY
>    3699 dbfn_read: key=T:alexander@???
>    3699 no retry record exists
>    3699 search_tidyup called
>    3700 changed uid/gid: local delivery to alexander<alexander@???>
> transport=sql_user_local_delivery
>    3700   uid=8 gid=8 pid=3700
>    3700   auxiliary group list:<none>
>    3700   home=NULL current=/
>    3700 set_process_info:  3700 delivering 1OoJdf-0000xd-AK to alexander
> using sql_user_local_delivery
>    3700 appendfile transport entered
>    3700 appendfile: mode=660 notify_comsat=0 quota=52428800 warning=10%
>    3700   directory=/var/mail/vhosts/acwn.de/alexander/Maildir format=maildir
>    3700   message_prefix=null
>    3700   message_suffix=null
>    3700   maildir_use_size_file=yes
>    3700 ensuring maildir directories exist in
> /var/mail/vhosts/acwn.de/alexander/Maildir
>    3700 using regex for maildir directory selection: ^(?:cur|new|\..*)$
>    3700 looking for maildirsize in /var/mail/vhosts/acwn.de/alexander/Maildir
>    3700 reading quota parameters from maildirsize data
>    3700 computing maildir size from maildirsize data
>    3700 returning maildir size=25961971 filecount=3802
>    3700 delivering in maildir format in
> /var/mail/vhosts/acwn.de/alexander/Maildir
>    3700 writing to file tmp/1282756795.H377289P3700.server02.acwn.de
>    3700 Exim quota = 52428800 old size = 25961971 this message = 1310
> (included)
>    3700   file count quota = 0 count = 3802
>    3700 removed header line:
>    3700 Subject: Testmail1
>    3700 ---
>    3700 added header line(s):
>    3700 Subject: Testmail1
>    3700 ---
>    3700 writing data block fd=9 size=1425 timeout=0
>    3700 added '1425 1' to maildirsize file
>    3700 quota = 52428800 threshold = 5242880 old size = 25961971 message
> size = 1425
>    3700 renaming temporary file
>    3700 renamed tmp/1282756795.H377289P3700.server02.acwn.de as
> new/1282756795.H377289P3700.server02.acwn.de
>    3700 appendfile yields 0 with errno=0 more_errno=0
>    3700 search_tidyup called
>    3699 journalling alexander@???
>    3699 sql_user_local_delivery transport returned OK for alexander@???
>    3699 post-process alexander@??? (0)
>    3699 alexander@??? delivered
>    3699 LOG: MAIN

>


--

Alexander Nagel
E-mail: alexander@???
Homepage:
http://www.acwn.de/
http://www.standspur-kadaver.de/