Batching quota clone updates

2020-04-23 Thread micah anderson
Hi, I like the quota count+clone configuration. However, I'm wondering if the cloning process could batch its updates into chunks, or spread them out over time? The clone updates happen whenever the quota is updated, typically this is fine, but when a tsunami of spam comes resulting in delivery

Re: LDA-based vacation responses bouncing

2019-05-14 Thread micah anderson via dovecot
> Thanks for any suggestions, Looks like my virtual_mailbox_domains setting in postfix was not doing the proper lookup, so it thought my domain was local. I've fixed that, so this is no longer an issue.

LDA-based vacation responses bouncing

2019-05-14 Thread micah anderson via dovecot
I've got dovecot vacataion auto-responses working via sieve, but when the responses are sent, they are sent as if they are to be locally delivered, which causes them to bounce for domains that I am not local for. How can I get dovecot's sieve vacation response to check the domain is local or not?

Benchmarking auth

2017-01-25 Thread micah anderson
Hello, I'm attempting to use imaptest to test auths/sec on my imap server, to simulate the number I'm getting now on a new server. Based on my readings of dovecot stats outputs, my current machine is doing somewhere between 11.6 and 196 logins/sec at its busiest, and I want to make sure the new s

making a plugin encrypt index data

2016-12-16 Thread micah anderson
Hello, I'm encrypting mail on disk using a plugin[0], but the index files are not encrypted (specifically the dovecot.index.cache can be read). I want to do is encrypt index on disk, so I'm looking for how a plugin can achieve that by hooking into the right locations. Is that easily possible in

setting service_count results in Permission denied

2015-04-06 Thread Micah Anderson
The load on our machines has gotten too high, so I started to see log messages that directed me to look at this page for config changes: https://pad.riseup.net/redirect#http%3A//wiki2.dovecot.org/SocketUnavailable One of the things I wanted to do on that page was to set the: service imap { serv

Couldn't set transaction log view (seq 9..13)

2015-04-01 Thread micah anderson
Hello, I'm using 2.2.13 on Debian stable, and I perform regular dsync backups. Typically if there is an error, dsync can recover from it the next time it is run, but I've been encountering a new error that doesn't seem to self-heal: # /usr/bin/dsync -u gae backup ssh -i /root/.ssh/id_rsa backma

Limit confusion

2014-07-08 Thread Micah Anderson
Hi, On one of my dovecot servers, i've got a limit problem... and I'm a little confused about which knobs I should adjust to solve it. I've been getting both of these: Error: net_connect_unix(imap) failed: Resource temporarily unavailable - http://wiki2.dovecot.org/SocketUnavailableess This on

[Dovecot] doveadm mailbox create error codes

2013-09-23 Thread Micah Anderson
Hello, I'm trying to find out what the different 'doveadm mailbox create' error codes are. I've been looking through the source, but I can't seem to find them. I did determine that '65' happens when "Error: Can't create mailbox x: Mailbox already exists", but I've also received error 67, and the

[Dovecot] default client_limit

2013-09-23 Thread Micah Anderson
I recently upgraded my dovecot from 2.1 to 2.2, and when I started, I received this message: doveconf: Warning: service auth { client_limit=1000 } is lower than required under max. load (1024) Searching through my configs, I do not have 1024 set anywhere. In order to stop this I set client_li

[Dovecot] Migrating from dovecot 2.1 to 2.2

2013-09-13 Thread Micah Anderson
Due to the incompatibilities with the dsync protocol version between 2.1 and 2.2, I am unable to use dsync to move users to a new machine where we have 2.2.5 setup. This wouldn't normally be a problem, as I could just rsync the user's mdbox and dovecot would happily do the right thing. However, on

[Dovecot] More fine-grained connection limitations?

2013-09-07 Thread Micah Anderson
There is the mail_max_userip_connections setting, which helps for dealing with number of connections at any given time, but I'm looking for something that will help deal with users who configure their mail clients to connect too frequently. For example, I've seen users who configured their client

[Dovecot] Dovecot antispam plugin for 2.2

2013-08-21 Thread Micah Anderson
Hello, I recently was looking to update to dovecot 2.2 and I have been happily using the dovecot-antispam plugin in 2.1, but found that there have been some changes in dovecot that make this version not compile against 2.2. I'm wondering if Johannes you have any plans to update it, or if others

Re: [Dovecot] DRAC plugin for Dovecot-2.x

2013-08-19 Thread micah anderson
Hello, USUDA Hisashi writes: > Hello All, > > I released the DRAC plugin for dovecot-2.x. > > http://sourceforge.jp/projects/dovecot2-drac/ > > It's based the plugin for dovecot-1.1: > http://dovecot.org/patches/1.1/drac.c I recently tried to get your DRAC plugin to work for 2.2.5, but it fail

Re: [Dovecot] dsync timeout?

2013-02-08 Thread micah anderson
Sean Kamath writes: > On Jan 30, 2013, at 3:46 PM, micah anderson wrote: >> Seems that only the above process was still around and no other dsync >> processes. I have three machines that all have this happening it seems. >> >> I wonder if there is a ssh configur

Re: [Dovecot] dsync timeout?

2013-02-01 Thread micah anderson
Sean Kamath writes: > On Jan 30, 2013, at 3:46 PM, micah anderson wrote: >> Seems that only the above process was still around and no other dsync >> processes. I have three machines that all have this happening it seems. >> >> I wonder if there is a ssh configuration

Re: [Dovecot] dsync timeout?

2013-01-30 Thread micah anderson
Timo Sirainen writes: > On 31.1.2013, at 0.06, Micah Anderson wrote: > >> I'm using dsync for a regular backup. The backup system flocks so that >> two cannot run at the same time, which is generally a good thing. The >> problem is that it seems like dsync some

[Dovecot] dsync timeout?

2013-01-30 Thread Micah Anderson
I'm using dsync for a regular backup. The backup system flocks so that two cannot run at the same time, which is generally a good thing. The problem is that it seems like dsync sometimes goes off into the weeds and never comes back, leaving a process running and doing nothing forever, hogging the

[Dovecot] Error: Internal quota calculation error

2012-10-31 Thread Micah Anderson
Hello, I'm using 2.1.7 with seive and mysql quotas. We had an outage the other day where the database server where quotas are stored was not available for a short period of time. In dovecot land, the following types of errors occured in that scenario: Oct 26 22:19:01 grosbeak dovecot: lda(exam

Re: [Dovecot] mailboxes missing after upgrade from 2.1.4 to 2.1.7

2012-07-09 Thread Micah Anderson
Micah Anderson writes: > I mentioned this on the #dovecot irc channel, but I thought I would post > here so I can provide more details. > > The basic problem is that when I upgraded from 2.1.4 to 2.1.7, some > users no longer are able to see their folders in pine/alpine. Th

[Dovecot] mailboxes missing after upgrade from 2.1.4 to 2.1.7

2012-07-02 Thread Micah Anderson
Hi all, I mentioned this on the #dovecot irc channel, but I thought I would post here so I can provide more details. The basic problem is that when I upgraded from 2.1.4 to 2.1.7, some users no longer are able to see their folders in pine/alpine. The folders are actually there, and are subscribe

Re: [Dovecot] dsync redesign

2012-04-02 Thread Micah Anderson
Charles Marcus writes: > On 2012-03-27 11:47 AM, Micah Anderson wrote: >> One would be the ability to perform *intelligent* incremental / >> rotated backups. I can do this now by running a dsync backup >> operation and then doing manual hardlinking or moving of the backup

[Dovecot] 2.1.3: doveadm mailbox delete lost the -s option

2012-04-02 Thread Micah Anderson
Looks like the recently added -s (for unsubscribing) option to doveadm mailbox delete went missing: root@vireo# /usr/bin/doveadm mailbox delete -u micahtest -s restored delete: invalid option -- 's' doveadm mailbox delete [-u |-A] [-S ] [-s] [...] although the option still is shown as valid :)

Re: [Dovecot] Dsync automation

2012-04-02 Thread Micah Anderson
Jitendra Bhaskar writes: > I am using dovecot-2.1.3 on centos 5.7. Its running fine. I have two > systems for mail server one is for backup. Currently I am running rsync > daily. But I want to use dsync. I went through all the > http://wiki2.dovecot.org/Tools/Dsync and > http://blog.dovecot.org/2

Re: [Dovecot] dsync redesign

2012-03-27 Thread Micah Anderson
Timo Sirainen writes: > In case anyone is interested in reading (and maybe helping!) with a dsync > redesign that's intended to fix all of its current problems, here are some > possibly incoherent ramblings about it: thank you for opening this discussion about dsync! besides the problems I've

[Dovecot] doveadm user -f index

2012-03-23 Thread Micah Anderson
I've configured my mail_location to have a different location for performance reasons so they aren't in the same location as the mail_location. The 'doveadm user -f home' is useful to find where a user's home directory is for various scripting purposes, but I can't seem to find a way to determine

Re: [Dovecot] dovecot 2.1.3 dsync Unexpected finish reply

2012-03-23 Thread Micah Anderson
Micah Anderson writes: > dsync-local(u...@example.com): Error: Unexpected finish reply: by > ims-d13.mx.aol.com (8.14.1/8.14.1) with ESMTP id q2LEhqXZ017169; > dsync-local(u...@example.com): Error: Unexpected reply from server:Wed, > 21 Mar 2012 10:43:52 -0400 >

[Dovecot] dovecot 2.1.3 dsync Unexpected finish reply

2012-03-22 Thread Micah Anderson
I've been moving users from one system to another by doing a dsync mirror operation. The first dsync mirror takes some time, because of the number of users involved, so I am doing an initial sync, and then I direct the users to the new location and do a final 'freshening' sync to get any changes t

Re: [Dovecot] Antispam plugin not compatible with Dovecot 2.1

2012-03-20 Thread Micah Anderson
"Eugene Paskevich" writes: > On Wed, 18 Jan 2012 18:31:49 +0200, Timo Sirainen wrote: > >> On Wed, 2012-01-18 at 18:19 +0200, Eugene Paskevich wrote: >>> >> mailbox.c: In function 'antispam_save_begin': >>> >> mailbox.c:138:12: error: 'struct mail_save_context' has no member named >>> >> 'copyin

Re: [Dovecot] mdbox + gzip and rsync

2012-03-12 Thread Micah Anderson
Jean-Daniel Beaubien writes: > After reading the following paragraph from the dovecot doc, I've been > wondering how it would affect rsync (when combined with gzip): > > "Expunging a message only decreases the message's refcount. The space is > later freed in "purge" step. This is typically done

Re: [Dovecot] dot named folders

2012-03-12 Thread Micah Anderson
Robert Schetterer writes: > Am 08.03.2012 17:27, schrieb Micah Anderson: >> Willie Gillespie writes: >> >>> On 03/07/2012 12:43 PM, Micah Anderson wrote: >>>> >>>> When a user makes a folder called 'x.y' it actually creates a folder &g

Re: [Dovecot] seeking advice: dovecot versions; mailbox formats.

2012-03-08 Thread Micah Anderson
Vincent Schut writes: > Debian currently has dovecot 1.2.15 in its repositories; not that much > newer... No, Debian has 1.2.15 in its /stable (squeeze)/ repositories, there are newer versions available in other Debian repositories. micah

Re: [Dovecot] dot named folders

2012-03-08 Thread Micah Anderson
Willie Gillespie writes: > On 03/07/2012 12:43 PM, Micah Anderson wrote: >> >> When a user makes a folder called 'x.y' it actually creates a folder >> called 'x' with a folder called 'y' inside, rather than a folder called >> 'x.y&#

[Dovecot] dot named folders

2012-03-07 Thread Micah Anderson
When a user makes a folder called 'x.y' it actually creates a folder called 'x' with a folder called 'y' inside, rather than a folder called 'x.y'. I'm guessing this has to do with an internal folder separator namespace configuration, but I'm a bit confused by how this works. I'm using 2.0.15 wit

Re: [Dovecot] expunging

2012-02-18 Thread micah anderson
On Sat, 18 Feb 2012 18:52:57 +0200, Timo Sirainen wrote: > On 17.2.2012, at 20.25, Micah Anderson wrote: > > > /usr/bin/doveadm expunge -A mailbox Trash* savedbefore 21d > > /usr/bin/doveadm expunge -A mailbox Spam savedbefore 7d > > /usr/bin/doveadm expunge -A mailb

[Dovecot] expunging

2012-02-17 Thread Micah Anderson
I am having trouble scaling some regular dovecot cleanup operations on our servers. On a daily basis, I'm wanting to do this on each server, which contains its own isolated set of user storage: /usr/bin/doveadm expunge -A mailbox Trash* savedbefore 21d /usr/bin/doveadm expunge -A mailbox Spam sav

Re: [Dovecot] 2.1 upgrade docs?

2012-02-17 Thread Micah Anderson
Marc Perkel writes: > Just wondering if there's any upgrade docs for 2.1 online? yes there are. (hint: search terms "dovecot upgrade")

[Dovecot] dovecot-antispam: pipe backend with spamc failing to parse args

2011-12-14 Thread Micah Anderson
I'm trying to get the pipe backend to work with the new dovecot-antispam (I was very pleased to see the new version, thanks Johannes!) Before I would run the following over the maildir: spamc -d 10.0.1.109 -L ham < $file 2>&1 > /dev/null now, i'm using dovecot-antispam and mdbox and have the f

Re: [Dovecot] overriding userdb connection host for doveadm-user

2011-12-08 Thread micah anderson
On Thu, 08 Dec 2011 06:22:58 +0200, Timo Sirainen wrote: > On Wed, 2011-12-07 at 13:02 -0500, Micah Anderson wrote: > > I've got my users in a replicated database setup and dovecot configured > > with two connect lines in dovecot-sql.conf: > > > > connect = host=

[Dovecot] overriding userdb connection host for doveadm-user

2011-12-07 Thread Micah Anderson
I've got my users in a replicated database setup and dovecot configured with two connect lines in dovecot-sql.conf: connect = host=127.0.0.1 port=3306 dbname=users user=user password=pass connect = host=127.0.0.2 port=3306 dbname=users user=user password=pass this works really well to help balan

Re: [Dovecot] Plugin for munin

2011-12-04 Thread Micah Anderson
# # Munin Plugin # to count logins to your dovecot mailserver # # Created by Dominik Schulz # http://developer.gauner.org/munin/ # Contributions by: # - Stephane Enten # - Micah Anderson (updated for dovecot2) # # Parameters understood: # # config(required) # autoconf (optional - used by

Re: [Dovecot] dovecot-lda quota rule

2011-12-01 Thread Micah Anderson
micah anderson writes: > On Wed, 16 Nov 2011 11:09:12 -0500, micah anderson wrote: >> On Tue, 15 Nov 2011 22:27:20 +0200, Timo Sirainen wrote: >> > On Thu, 2011-11-10 at 13:59 -0500, Micah Anderson wrote: >> > > I really like the feature where you can de

Re: [Dovecot] dovecot-lda quota rule

2011-11-29 Thread micah anderson
On Wed, 16 Nov 2011 11:09:12 -0500, micah anderson wrote: > On Tue, 15 Nov 2011 22:27:20 +0200, Timo Sirainen wrote: > > On Thu, 2011-11-10 at 13:59 -0500, Micah Anderson wrote: > > > I really like the feature where you can define quota rules with percents > > > which

Re: [Dovecot] Indexes to MLC-SSD

2011-11-28 Thread Micah Anderson
Dovecot-GDH writes: > If I/O performance is a concern, you may be interested in ZFS and Flashcache. > > Specifically, ZFS' ZIL (ZFS Intent Log) and its L2ARC (Layer 2 Adaptive Read > Cache) > ZFS does run on Linux http://zfs-fuse.net > > Flashcache: https://github.com/facebook/flashcache/ That

[Dovecot] doveadm import assertion failed

2011-11-23 Thread Micah Anderson
Restoring a user's mailbox yesterday resulted in 'doveadm import' panic'ing with an assertion failure and giving a backtrace: /usr/bin/doveadm import -u mdbox:/maildir/riseup.net/a//.daily.1/mdbox restored_from_backups/daily1 all doveadm(): Error: Transaction log /maildir/riseup.net/a//.daily

Re: [Dovecot] dsync problems

2011-11-17 Thread micah anderson
On Tue, 15 Nov 2011 22:43:24 +0200, Timo Sirainen wrote: > On Tue, 2011-11-15 at 14:24 -0500, Micah Anderson wrote: > > When a user renames their username, I am using dsync to copy their mail > > over to the new username's mail location[0]. > > > > Some of th

Re: [Dovecot] dovecot-lda quota rule

2011-11-16 Thread micah anderson
On Wed, 16 Nov 2011 18:27:20 +0200, Timo Sirainen wrote: > On Wed, 2011-11-16 at 11:09 -0500, micah anderson wrote: > > > protocol lda { > > > plugin { > > > quota_rule2 = INBOX:storage=200% > > > } > > > } > > > > Aha!

Re: [Dovecot] dovecot-lda quota rule

2011-11-16 Thread micah anderson
On Tue, 15 Nov 2011 22:27:20 +0200, Timo Sirainen wrote: > On Thu, 2011-11-10 at 13:59 -0500, Micah Anderson wrote: > > I really like the feature where you can define quota rules with percents > > which trigger off of the default values[0] (so you can set the Trash to > >

Re: [Dovecot] Deleting a mailbox and all its children

2011-11-15 Thread micah anderson
On Wed, 16 Nov 2011 03:15:02 +0200, Timo Sirainen wrote: > On 16.11.2011, at 3.04, Micah Anderson wrote: > > > I'm looking at scripting a mechanism to delete a mailbox, which is easy > > with 'doveadm mailbox delete' -- however it gets complicated when there &g

[Dovecot] Deleting a mailbox and all its children

2011-11-15 Thread Micah Anderson
I'm looking at scripting a mechanism to delete a mailbox, which is easy with 'doveadm mailbox delete' -- however it gets complicated when there are children of arbitrary depth, for example, I may have this: restored.daily1.INBOX restored.daily1.Sent restored.daily1.Mystuff restored.daily1.Mystuff

[Dovecot] dsync problems

2011-11-15 Thread Micah Anderson
When a user renames their username, I am using dsync to copy their mail over to the new username's mail location[0]. Some of the dsyncs are failing with errors that I dont know how to work with, for example: dsync(): Error: Trying to open a non-listed mailbox with guid=41fcd40303c8a64e4323

[Dovecot] dovecot-lda quota rule

2011-11-10 Thread Micah Anderson
I really like the feature where you can define quota rules with percents which trigger off of the default values[0] (so you can set the Trash to allow for 10% more of the user's quota for example). What I would really love in dovecot would be for the ability to configure a quota rule for dovecot

Re: [Dovecot] Accessing a strange mailbox

2011-11-07 Thread micah anderson
Hi, thanks for the reply! On Fri, 04 Nov 2011 21:34:03 +0200, Timo Sirainen wrote: > On Fri, 2011-10-21 at 10:50 -0400, Micah Anderson wrote: > > I have a user who has a mailbox called: > > > > A->B > > > > It seemed to work in courier fine, they man

[Dovecot] Accessing a strange mailbox

2011-10-21 Thread Micah Anderson
I have a user who has a mailbox called: A->B It seemed to work in courier fine, they managed to create it, and there are mails in it. However, dovecot is not letting the user access it, the IMAP server gives an error. I tried to rename it but I would also get an error: # doveadm mailbox ren

[Dovecot] lazy expunge namespaces

2011-10-07 Thread Micah Anderson
I turned on lazy_expunge and configured a namespace following the wiki[0] instructions for mdbox configuration: namespace { inbox = yes location = prefix = separator = . } namespace { hidden = yes inbox = no list = no location =

Re: [Dovecot] doveadm mailbox list shows file system directories as mailboxes

2011-10-07 Thread Micah Anderson
Jürgen Obermann writes: > Hello. > In our dovecvot we use mbox format with the default filesystem layout. > Therefore it is not possible to have mailboxes which are subfolders of other > mailboxes containing messages. > The command "doveadm mailbox list" includes the file system directories, th

Re: [Dovecot] doveadm mailbox subscribe wildcard

2011-10-07 Thread Micah Anderson
"A.L.E.C" writes: > On 2011-10-06 23:23, Micah Anderson wrote: >> # doveadm mailbox list -s -u bob dovecot* # doveadm mailbox >> subscribe -u bob dovecot* > > RFC3501. Wildcards are allowed only in LIST/LSUB commands. Aha, thanks! I'll use the for loop m

[Dovecot] Safely restoring backups

2011-10-07 Thread Micah Anderson
I'm trying to determine what the best way to restore mail with mdbox is. Restoring using maildir was trivial, I just used rsync --ignore-existing which wrote any mails that were removed and didn't touch things that already existed[1]. With mdbox things have become more complicated, and I haven't f

[Dovecot] doveadm mailbox subscribe wildcard

2011-10-06 Thread Micah Anderson
Hi, I noticed that wildcards work like the following, as described in the man page: # doveadm mailbox list -s -u bob dovecot* dovecot dovecot/pigeonhole dovecot/pigeonhole/2.0 however, wildcard subscriptions don't work: # doveadm mailbox subscribe -u bob dovecot* # doveadm mailbox

Re: [Dovecot] dsync with quotas

2011-10-06 Thread Micah Anderson
Micah Anderson writes: > I have been working on converting people from courier maildir -> dovecot > mdbox and during some of the dsync runs I'm seeing the > quota_exceeded_message be printed as an Error: > > dsync(): Error: Can't save message to mailbox INBOX: You

[Dovecot] dsync with quotas

2011-09-19 Thread Micah Anderson
I have been working on converting people from courier maildir -> dovecot mdbox and during some of the dsync runs I'm seeing the quota_exceeded_message be printed as an Error: dsync(): Error: Can't save message to mailbox INBOX: You are over quota. To avoid losing mail, immediately empty your Tra

Re: [Dovecot] v2.0.15 released

2011-09-18 Thread Micah Anderson
"Simon Brereton" writes: > I'll bite.. But it's probably not your concern. When will we be able > to get stable 2.x packages for Debian? Apt installs 1.2.15-7 2.x packages are available in Debian Wheezy and Sid. A backport to Squeeze (stable) will be made once the 1.x transition packages make

Re: [Dovecot] convert maildrop filter to sieve

2011-09-16 Thread Micah Anderson
Aleksandar Lazic writes: > Dear list member, > > does anybody have a script which can convert maildrop filter to sive > filter? I would also like this, but I'm afraid it may be too complicated due to the different possibilities. Moving to sieve from maildrop would be great, but in practice quite

Re: [Dovecot] moving mail out of alt storage

2011-09-15 Thread Micah Anderson
Timo Sirainen writes: > On Wed, 2011-09-14 at 23:17 -0400, Micah Anderson wrote: >> I moved some mail into the alt storage: >> >> doveadm altmove -u jo...@example.com seen savedbefore 1w >> >> and now I want to move it back to the regular INBOX, but I can'

[Dovecot] movming mail out of alt storage

2011-09-14 Thread Micah Anderson
I moved some mail into the alt storage: doveadm altmove -u jo...@example.com seen savedbefore 1w and now I want to move it back to the regular INBOX, but I can't see how I can do that with either 'altmove' or 'mailbox move'. thanks! micah -- pgpsYHjQ0YeIm.pgp Description: PGP signature

Re: [Dovecot] quota percents

2011-09-13 Thread Micah Anderson
Timo Sirainen writes: > On 12.9.2011, at 19.17, Micah Anderson wrote: > >>>> However, it doesn't seem to work in practice, because I have a user that >>>> is at 99% of quota, with nothing in the Trash who cannot move a 77KB >>>> message into the T

Re: [Dovecot] quota percents

2011-09-12 Thread Micah Anderson
Timo Sirainen writes: > On Fri, 2011-09-09 at 16:05 -0400, Micah Anderson wrote: > >> its incorrect because if you change it to what it suggests ('+10%') it >> wont work because that wont be 10% more, rather, it is set to bytes=+10: > > Well, that's a more

[Dovecot] quota percents

2011-09-09 Thread Micah Anderson
I've noticed that http://wiki2.dovecot.org/Quota/Configuration is out of date, it says: plugin { quota = maildir:User quota quota_rule = *:storage=1GB # 10% of 1GB = 100MB quota_rule2 = Trash:storage=10%% # 20% of 1GB = 200MB quota_rule3 = Spam:storage=20%% } but if you use the '10%%

[Dovecot] sorting order changed during migration from courier

2011-08-31 Thread Micah Anderson
Hello, I've been working to migrate to dovecot (debian stable: 1:1.2.15-7) from courier (debian old-stable: 4.4.0-2). I've setup everything and migrated a test user over to the new system, and ran the courier-dovecot-migrate.pl script. The user is using alpine (the free version of pine) and the