Jose Celestino | 1 Mar 01:21 2008
Picon

Re: quota & delete

Words by Osvaldo Alvarez Pozo [Sat, Mar 01, 2008 at 12:14:33AM +0100]:
> Hy
>  I use dovecot with quota support.
> I did a test with a   webmail client (roundcube) & quota= 10 M
>   when I have used 100% of the quota assigned to the  mail account , I
> cannot delete any mail
> Is it possible to create a kind of warning mail about 80% of quota use
> or overpass quota for
> delete operations?

You can set an extra quota to Trash folder to prevent this from
happening. For example adding to the plugin{} configuration:

quota_rule2 = Trash:storage=102400

you will get an extra 100MB of quota usable for Trash.

This only works in 1.0 with the quota-rewrite patch:

http://wiki.dovecot.org/Quota/New

--

-- 
Jose Celestino
----------------------------------------------------------------
http://www.msversus.org/     ; http://techp.org/petition/show/1
http://www.vinc17.org/noswpat.en.html
----------------------------------------------------------------
"If you would have your slaves remain docile, teach them hymns."
    -- Ed Weathers ("The Empty Box")

(Continue reading)

Oliver | 1 Mar 10:26 2008

Quota override problem

Hi all,

i am using debian etch with backports for dovecot (1.0.10) with Postfix
(Version: 2.3.8-2+b1)

At the moment the quota for all maildir mailboxes is 265MB, some should
be 512MB an others 10 MB for example.

See my Mysql:

mysql> show fields from users from mail;
+----------+-------------+------+-----+----------+-------+
| Field    | Type        | Null | Key | Default  | Extra |
+----------+-------------+------+-----+----------+-------+
| email    | varchar(80) | NO   | PRI |          |       |
| password | varchar(20) | NO   |     |          |       |
| quota    | int(15)     | NO   |     | 10485760 |       |
| active   | tinyint(1)  | NO   |     | 1        |       |
+----------+-------------+------+-----+----------+-------+

http://wiki.dovecot.org/Quota -> I looked here but i dont see my
failure, merde.

My configuration is:

dovecot.conf:
base_dir = /var/run/dovecot/
protocols = imaps
log_timestamp = �^�^�%Y-%m-%d %H:%M:%S �^�^
syslog_facility = mail
(Continue reading)

Yavuz Maslak | 1 Mar 19:44 2008
Picon

I couldn't see last login time of a mail addres

Hello

I use dovecot-1.0.7 for imap. I also use  vpopmail5.4.x. on qmail.

When I type vuserinfo to see last login time of a mail address in my imap server, I could not see it.
How do I correct that ?

Thanks.  
John Gray | 1 Mar 22:54 2008

Re: nfs locking issues...

Just for the record, I took Timo's suggestion, and went to just using 
dotlocks.  The problem hasn't return (at least not yet).

John

John Gray wrote:
> The locking issue is on the mbox files.  When it happens, I get a 
> bunch procmail processes backing up waiting for the lock.
>
> The filesystem is reiserfs (version 3).
>
> The NFS server is debian sarge box (which will be going to etch this 
> weekend).  And its using the nfs-kernel-server.
>
> The dead locks appear to be the same nfs client machine.  Though I'm 
> not dead sure on it.  The mail delivery does come in on several 
> machines.  And the imap/pop to just one for a given user.
>
> I'm not seeing any lockd messages.  I'll look into making sure its 
> running.
>
> I'll try to get an strace if I see it again.  And I'll try the dotlock 
> suggestion.
>
> Thanks Timo and Aaron!
>
> John
>
> Timo Sirainen wrote:
>> On Tue, 2008-02-26 at 11:03 -0500, John Gray wrote:
(Continue reading)

Timo Sirainen | 2 Mar 05:11 2008
Picon
Picon

Re: Query about LIST behaviour

On Fri, 2008-02-29 at 23:18 +0000, Julian Phillips wrote:
> c list test/a1/b1/ *
> c OK List completed.

Thanks, fixed: http://hg.dovecot.org/dovecot-1.1/rev/3765f80f4d29

Timo Sirainen | 2 Mar 05:14 2008
Picon
Picon

Re: I couldn't see last login time of a mail addres

On Sat, 2008-03-01 at 20:44 +0200, Yavuz Maslak wrote:
> Hello
> 
> I use dovecot-1.0.7 for imap. I also use  vpopmail5.4.x. on qmail.
> 
> When I type vuserinfo to see last login time of a mail address in my imap server, I could not see it.
> How do I correct that ?

Dovecot v1.0 doesn't update it, but v1.1 does. So either upgrade, or use
a post-login scripting trick to update it yourself:
http://wiki.dovecot.org/PostLoginScripting

Timo Sirainen | 2 Mar 05:16 2008
Picon
Picon

Re: Quota override problem

On Sat, 2008-03-01 at 10:26 +0100, Oliver wrote:
>   userdb static {
>     args = uid=5000 gid=5000 sieve=/home/vmail/%d/%n/.dovecot.sieve
>   }
>  userdb sql {
>  args = /etc/dovecot/dovecot-sql.conf
>  }

You use userdb static before userdb sql. This means that userdb sql is
never actually used.

> plugin {
> #quota = maildir
> # 10 MB + 1000 messages quota limit
> quota = maildir:storage=265000:messages=50000:ignore=Trash
> }

So all users use the default, 256MB as specified here.

> user_query = SELECT email, 5000 AS uid, 5000 AS gid,
> CONCAT('maildir:storage=', quota) AS quota, mail_plugins FROM users
> WHERE email = '%u' AND active = '1'

This is never called.

So the fix would be to remove userdb static from dovecot.conf.

Timo Sirainen | 2 Mar 05:18 2008
Picon
Picon

Re: 1.1rc1: Lots of "Disconnected: Too many invalid IMAP commands."

On Fri, 2008-02-29 at 14:21 +0100, Ralf Hildebrandt wrote:
> I suddenly get lots of:
> Feb 29 14:10:23 postamt dovecot: IMAP(username): Disconnected: Too many invalid IMAP commands. bytes=35348/8353
> messages.
> 
> That particular user uses Thunderbird.

Can you enable rawlog for the user and look at what commands return BAD?
http://wiki.dovecot.org/Debugging/Rawlog

Timo Sirainen | 2 Mar 05:25 2008
Picon
Picon

Re: Update from 1.0.10 -> 1.1rc1 "Transaction rolled back"???

On Sat, 2008-02-23 at 19:51 +0100, Ralf Hildebrandt wrote:
> Feb 23 19:48:14 postamt deliver(username): copy: uid=1, box=Dovecot Delivery Mail, dest=INBOX,
msgid=<47C06A3F.3040101 <at> charite.de>, size=423118
> Feb 23 19:48:14 postamt deliver(username): msgid=<47C06A3F.3040101 <at> charite.de>: saved mail to INBOX
> Feb 23 19:48:14 postamt deliver(username): Transaction rolled back: Ignore last 1 changes

Fixed: http://hg.dovecot.org/dovecot-1.1/rev/3f53f528d338

Timo Sirainen | 2 Mar 05:30 2008
Picon
Picon

Re: 1.1rc1 "Transaction rolled back"?

On Wed, 2008-02-27 at 11:08 +0100, Ralf Hildebrandt wrote:
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2793, box=Trash,
msgid=<E2FEA6DFF2340C438369E79466FB7E94F43547 <at> EXCHANGE01.charite.de>, size=3025
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2794, box=Trash,
msgid=<20080226140752B6F6EC3EF7$08D09877C3 <at> REALTIMEPCR>, size=12833
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2795, box=Trash,
msgid=<8f63285b4b444b9839c94615c28bcd3347c46aec <at> origene.com>, size=20931
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2796, box=Trash,
msgid=<0118578B.8438D393 <at> xms1-1.vtrnz.com>, size=12066
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2797, box=Trash,
msgid=<1204067704.28W488X7.30077 <at> biologyproject.net>, size=3328
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2798, box=Trash,
msgid=<2a989b59b24e90a1f0fea02e3582ef6d <at> ionchannels.org>, size=10197
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2799, box=Trash,
msgid=<20080226183239684063.12829 <at> mailmanager.icebase.net>, size=37658
> Feb 27 08:10:33 postamt dovecot: IMAP(username): expunge: uid=2800, box=Trash,
msgid=<200802271434.GKTB5350 <at> monthly.smtp.com>, size=3717
> Feb 27 08:10:33 postamt dovecot: IMAP(username): Transaction rolled back: Ignore last 8 changes
> Feb 27 08:10:33 postamt dovecot: IMAP(username): Disconnected: Too many invalid IMAP commands. bytes=16371917/34458424
> 
> a) What's "Transaction rolled back"? When does it happen? What does it
>    do? Does it - in this case - UNDO the 8 expunges?

mail_log plugin logs these messages while messages are being marked as
expunged, but all this is still done in memory. Only after transactions
are committed the expunges are really committed to disk. So the above
means that the transaction was rollbacked for some reason and no
expunging was done after all.

Transaction rollbacking doesn't happen normally though, so it should
(Continue reading)


Gmane