Re: [Dovecot] Size of Mailbox affecting the sending of mail?

2012-08-25 Thread Stan Hoeppner
On 8/24/2012 8:49 AM, Tim Smith wrote:
> My next guess was the upstream data rate. My router states that the
> upstream is 10x slower than downstream so I guess this is the culprit.
> Time to move to a VPS methinks...

Ok, you stated that you have multiple user PCs that are slow when
sending.  I guess, asked, if they were all behind the same DSL/Cable
line and if the Dovecot server was local or remote.

If the user PCs are local, and the server is remote, and the slow
outbound speed of your internet connection is the cause of the slow
sending, then I fail to see how moving to a VPS will help you.

You're not providing sufficient technical details explaining what
machines are located where.  We need to know that to give you the
correct answer(s) to your problem.

-- 
Stan




Re: [Dovecot] quota: ignore deleted messages (?)

2012-08-25 Thread Daniel Parthey
Sven Hartge wrote:
> I want to use LMTP to deliver the mails.
> Would this nested plugin configuration work to disable quota:
> 
> protocol lmtp {
>   mail_plugins = $mail_plugins sieve
>   plugin {
> quota = dict:Benutzer-Quota::noenforcing:proxy::quota
>   }
> }

Concerning
http://dovecot.org/list/dovecot/2012-June/066298.html

I'm using MySQL userdb, but just want to keep things
as simple as possible (KISS principle).

What would the configuration look like if I want to setup
one lmtp service with quota enforcing on port 10024 and
another lmtp service without enforcing on port 20024?
Especially how to define two "protocol lmtp" sections
which are assigned to their specific service?

Will this work with two simple 'nested configuration'
or will I need to define SQL statements in the userdb
lookup which selects "noenforcing" depending on local port?

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820


Re: [Dovecot] dovecot stats error

2012-08-25 Thread Kelsey Cummings

On 8/25/2012 12:14 PM, Kelsey Cummings wrote:

On 6/22/2012 6:34 AM, Timo Sirainen wrote:

Which Dovecot version? I thought I fixed this already..


I'm seeing these errors running 2.1.8


Examples below, let me know if I can provide any other info Timo.

In other news, we're finally migrated to dovecot from courier.

WHOOO H


Aug 25 12:53:37 a dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mcache 331 < 332
Aug 25 12:53:37 a dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mrbytes 180435729 < 204849088
Aug 25 12:53:38 a dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mrbytes 50757363 < 62351358
Aug 25 12:53:38 d dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mlpath 17451 < 20067
Aug 25 12:53:41 d dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mrbytes 40483661 < 42086237
Aug 25 12:53:42 b dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mrbytes 65540465 < 67974537
Aug 25 12:53:42 a dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mlpath 811 < 946
Aug 25 12:53:43 b dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mrbytes 220133763 < 221888538
Aug 25 12:53:47 a dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mcache 13 < 14
Aug 25 12:53:48 c dovecot: stats: Error: Mail server input error: UPDATE-SESSION: 
stats shrank: mrbytes 118702153 < 121714865




--
Kelsey Cummings - k...@corp.sonic.net  sonic.net, inc.
System Architect  2260 Apollo Way
707.522.1000  Santa Rosa, CA 95407


Re: [Dovecot] UIDPLUS for Maildir?

2012-08-25 Thread Timo Sirainen
On 25.8.2012, at 21.31, Martin Rabl wrote:

> I found the following comment in the documentation 
> (http://wiki.dovecot.org/FeatUIDPLUS), last edited on 2009-03-15
>> Dovecot already supported UIDPLUS at one point for mbox, but implementing it
>> for Maildir has to be done differently (UIDs are allocated later with 
>> Maildir).
>> So currently the UIDPLUS code is removed until it can be made to
>> work with Maildir.
> 
> My question: does this extension now run with maildir?

Since v1.1 I think.



Re: [Dovecot] dovecot stats error

2012-08-25 Thread Kelsey Cummings

On 6/22/2012 6:34 AM, Timo Sirainen wrote:

Which Dovecot version? I thought I fixed this already..


I'm seeing these errors running 2.1.8

--
Kelsey Cummings - k...@corp.sonic.net  sonic.net, inc.
System Architect  2260 Apollo Way
707.522.1000  Santa Rosa, CA 95407


[Dovecot] UIDPLUS for Maildir?

2012-08-25 Thread Martin Rabl

Hi,

I found the following comment in the documentation 
(http://wiki.dovecot.org/FeatUIDPLUS), last edited on 2009-03-15

Dovecot already supported UIDPLUS at one point for mbox, but implementing it
for Maildir has to be done differently (UIDs are allocated later with Maildir).
So currently the UIDPLUS code is removed until it can be made to
work with Maildir.


My question: does this extension now run with maildir?

Thank you,
   Martin


Re: [Dovecot] dsync replication available for testing

2012-08-25 Thread Timo Sirainen
On 25.8.2012, at 19.09, Michael Grimm wrote:

>> Not enable mail_log for doveadm:
>> 
>> protocol !doveadm {
>> mail_plugins = $mail_plugins = mail_log
>> }
> 
> JFTR: That didn't work.

This would omit it from the local dsync.

>> or alternatively override it only for the dsync command with doveadm -o 
>> mail_plugins=...
> 
> But, a ...
> 
>   dsync_remote_cmd = ssh -l%{login} %{host} doveadm -o mail_plugins= 
> dsync-server -u%u -l%{lock_timeout} -n%{namespace}
> 
> ... did omit those error messages successfully.

And yes, this would omit it from the remote dsync.



Re: [Dovecot] dsync replication available for testing

2012-08-25 Thread Michael Grimm
On 23.08.2012, at 22:01, Timo Sirainen wrote:
> On 19.8.2012, at 12.51, Michael Grimm wrote:

 1) I see a lot of error messages whenever replicator is in action like 
 (although everything is being synced correctly):
 
  |  mail dovecot: dsync-local(test): Error: remote: 
 dsync-remote(test): Info: save: box=INBOX, uid=27, 
 msgid=<3v2jfh5kv4z...@example.tld>, size=547, from=t...@example.tld 
 (admin), flags=()
 
  |  mail dovecot: dsync-local(test): Error: remote: 
 dsync-remote(test): Info: flag_change: box=TEST, uid=27568, 
 msgid=<20120307144810.6360a74f...@example.tld>, size=435, 
 from=t...@example.tld, flags=(\Seen)
 
  JFTR: I do have mail_log plugin activated.
>>> 
>>> Hmm. Right. I guess all the logging should go to the log files instead of 
>>> via the ssh pipe. Of course that would also require that dsync has write 
>>> access to your log files.
>> 
>> 
>> I'd like to come back to this old thread: What would one need to do to get 
>> rid of these lines from mail_log plugin?
> 
> 
> Not enable mail_log for doveadm:
> 
> protocol !doveadm {
>  mail_plugins = $mail_plugins = mail_log
> }

JFTR: That didn't work.

> or alternatively override it only for the dsync command with doveadm -o 
> mail_plugins=...


But, a ...

dsync_remote_cmd = ssh -l%{login} %{host} doveadm -o mail_plugins= 
dsync-server -u%u -l%{lock_timeout} -n%{namespace}

... did omit those error messages successfully.

Thanks and regards,
Michael



Re: [Dovecot] quota: ignore deleted messages (?)

2012-08-25 Thread Sven Hartge
Timo Sirainen  wrote:
> On 25.8.2012, at 18.28, Sven Hartge wrote:

>> But because of performance considerations I want to use LMTP to deliver
>> the mails. Would this nested plugin configuration work:
>> (sorry, not at work, cannot test directly)
>> 
>> protocol lmtp {
>>  mail_plugins = $mail_plugins sieve
>>  plugin {
>>quota = dict:Benutzer-Quota::noenforcing:proxy::quota
>>  }
>> }

> That should work, yes.

Very good, thank you for your fast answers.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: [Dovecot] quota: ignore deleted messages (?)

2012-08-25 Thread Timo Sirainen
On 25.8.2012, at 18.28, Sven Hartge wrote:

> But because of performance considerations I want to use LMTP to deliver
> the mails. Would this nested plugin configuration work:
> (sorry, not at work, cannot test directly)
> 
> protocol lmtp {
>  mail_plugins = $mail_plugins sieve
>  plugin {
>quota = dict:Benutzer-Quota::noenforcing:proxy::quota
>  }
> }

That should work, yes.



Re: [Dovecot] quota: ignore deleted messages (?)

2012-08-25 Thread Sven Hartge
Timo Sirainen  wrote:
> On 25.8.2012, at 15.40, Sven Hartge wrote:

>> Warning the user at 95%, 97% and 99% using the warning scripts is
>> easy and was already configured and is working like a charm.
>> 
>> But how do I instantly reenable the account when it drops below 100%
>> with the warning scripts? As far as I understand the documentation,
>> they are only triggered if the quota use rises over the configured
>> thresholds.

> Setting the warning at -100% would do that I think. In any case "-"
> before the percentage means "reverse". Yeah, not in wiki, I'll add it
> there..

Ah, very nice.

Now I need to put the pieces together and test whether this is a working
solution for me.

Question: is it possible to enforce the quota for IMAP/POP and have it
on noenforcing for LDA/LMTP?

LDA would be easy, as I could just add 
 -o "plugin/quota=dict:Benutzer-Quota::noenforcing:proxy::quota"
to the command line of dovecot-ldap in my exim4.conf.

But because of performance considerations I want to use LMTP to deliver
the mails. Would this nested plugin configuration work:
(sorry, not at work, cannot test directly)

protocol lmtp {
  mail_plugins = $mail_plugins sieve
  plugin {
quota = dict:Benutzer-Quota::noenforcing:proxy::quota
  }
}

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: [Dovecot] quota: ignore deleted messages (?)

2012-08-25 Thread Timo Sirainen
On 25.8.2012, at 15.40, Sven Hartge wrote:

> Warning the user at 95%, 97% and 99% using the warning scripts is easy
> and was already configured and is working like a charm.
> 
> But how do I instantly reenable the account when it drops below 100%
> with the warning scripts? As far as I understand the documentation, they
> are only triggered if the quota use rises over the configured
> thresholds.

Setting the warning at -100% would do that I think. In any case "-" before the 
percentage means "reverse". Yeah, not in wiki, I'll add it there..



Re: [Dovecot] Imap Ghost folder

2012-08-25 Thread Timo Sirainen
It's very likely that this has been fixed in v2.1. And in any case I'm not 
fixing non-security bugs anymore for v1.x. You can find v2.x debian packages 
from backports.org.

On 25.8.2012, at 15.56, Sascha Zucca wrote:

> Hi Timo,
> dovecot --version
> 1.2.15
> 
> It's the stable one for debian squeeze i presume.
> 
> Thank you for your help.
> 
> Sascha
> 
> 
> Am 25.08.2012 13:53, schrieb Timo Sirainen:
>> On 25.8.2012, at 14.11, Sascha Zucca wrote:
>> 
>>> Hi List,
>>> i found out the following:
>>> The problem with the "ghostfolder" occurs only if i use
>>> 
>>> prefix = shares/%%n/
>>> 
>>> When using
>>> prefix = shares/%%u/
>>> 
>>> everytung's ok!
>> What Dovecot version?
>> 
>> 
> 
> 
> -- 
> Systemschmiede IT-Lösungen
> Zucca & Teves GbR
> August-Thyssen-Str. 2-4
> 52511 Geilenkirchen
> www.systemschmiede.com
> 
> 
> Tel.:  02451 - 9088390
> Fax:   02451 - 9124070
> Mobil: 0178  - 4073254
> 
> Ust.ID: DE248030393
> 



Re: [Dovecot] Imap Ghost folder

2012-08-25 Thread Sascha Zucca

Hi Timo,
dovecot --version
1.2.15

It's the stable one for debian squeeze i presume.

Thank you for your help.

Sascha


Am 25.08.2012 13:53, schrieb Timo Sirainen:

On 25.8.2012, at 14.11, Sascha Zucca wrote:


Hi List,
i found out the following:
The problem with the "ghostfolder" occurs only if i use

prefix = shares/%%n/

When using
prefix = shares/%%u/

everytung's ok!

What Dovecot version?





--
Systemschmiede IT-Lösungen
Zucca & Teves GbR
August-Thyssen-Str. 2-4
52511 Geilenkirchen
www.systemschmiede.com


Tel.:  02451 - 9088390
Fax:   02451 - 9124070
Mobil: 0178  - 4073254

Ust.ID: DE248030393



Re: [Dovecot] quota: ignore deleted messages (?)

2012-08-25 Thread Sven Hartge
Timo Sirainen  wrote:
> On 25.8.2012, at 1.49, Sven Hartge wrote:

>>> How about just disabling the quota enforcing and doing a nightly run
>>> of some type of enforcing (sending notification email and/or
>>> disabling new mail delivery until user has more quota again)?
>> 
>> As a last resort, yes. If possible, I'd like to keep the feedback
>> about mailbox size as direct as possible.
>> 
>> Disabling an account only once per night might be acceptable, but the
>> reenabling of the account, once a user has freed some space, has to
>> be instant or I would get constant complains from the users (the ones
>> with the biggest mailboxes being the professors, which can be quite
>> the pain to work with, if they believe they don't get what they think
>> they are entitled to get).

> You can use quota warning scripts to send warnings and enable account
> instantly when it goes under 100%.

Warning the user at 95%, 97% and 99% using the warning scripts is easy
and was already configured and is working like a charm.

Disabling the account in a nightly cronjob will be easy as well. Since I
use the Mysql-dict for quota, I can just query that, compare the value
to the configured quota from LDAP and act accordingly.

But how do I instantly reenable the account when it drops below 100%
with the warning scripts? As far as I understand the documentation, they
are only triggered if the quota use rises over the configured
thresholds.

I seem to somehow miss a piece, but I cannot see which one.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: [Dovecot] Imap Ghost folder

2012-08-25 Thread Timo Sirainen
On 25.8.2012, at 14.11, Sascha Zucca wrote:

> Hi List,
> i found out the following:
> The problem with the "ghostfolder" occurs only if i use
> 
> prefix = shares/%%n/
> 
> When using
> prefix = shares/%%u/
> 
> everytung's ok!

What Dovecot version?




Re: [Dovecot] Imap Ghost folder

2012-08-25 Thread Sascha Zucca

Hi List,
i found out the following:
The problem with the "ghostfolder" occurs only if i use

prefix = shares/%%n/

When using
prefix = shares/%%u/

everytung's ok!
Only the name of the folder is a little longish this way, so i would 
really prefer the %%n way.

Any ideas now?

Thank you
Sascha

Am 22.08.2012 22:12, schrieb Sascha Zucca:

If you should need any more info on this, just drop me a line.
I am fully stuck!
I think that my dovecot.conf is not put together well, only i can't 
find the problem...


Thanx
Sascha

Am 22.08.2012 01:44, schrieb Sascha Zucca:

Hi list,
i have a strange "ghost" folder in my subscription list and just 
can't find out how to get rid of it.

It seems to be someones Inbox, but it doesn't tell me whose.

Here's a screenshot of Open-Xchanges Web-GUI:
/http://s9.postimage.org/6aohh97ov/iehadjhb.jpg
/
As you can see there is an unamed folder just under Freigaben (Shares).


In Thunderbird:
/http://s12.postimage.org/z0n82k2u5/bjddgefg.jpg/

Now the Folder is "INBOX"...But it is noones Inbox, as the 
corresponding user (amazon e.g.) should be a prefix-folder right 
before the share.



some output over Telnet:

1 lsub "" "*"
* LSUB () "/" "INBOX"
* LSUB () "/" "INBOX/Amazon"
* LSUB () "/" "INBOX/Bestellung"
* LSUB () "/" "Drafts"
* LSUB () "/" "Sent Items"
* LSUB () "/" "Spam"
* LSUB () "/" "Trash"
* LSUB () "/" "Freigaben/amazon/INBOX"
1 OK Lsub completed.


1 list "" "*"
* LIST (\HasNoChildren) "/" "Trash"
* LIST (\HasNoChildren) "/" "Sent Items"
* LIST (\HasChildren) "/" "INBOX"
* LIST (\HasNoChildren) "/" "INBOX/Amazon"
* LIST (\HasNoChildren) "/" "INBOX/Bestellung"
* LIST (\HasNoChildren) "/" "Spam"
* LIST (\HasNoChildren) "/" "Drafts"
* LIST (\Noselect \HasChildren) "/" "Freigaben/amazon"
* LIST (\Noselect \HasNoChildren) "/" "Freigaben/"
* LIST (\HasNoChildren) "/" "Freigaben/amazon/INBOX"
1 OK List completed.


This looks a bit strange to me:
* LIST (\Noselect \HasNoChildren) "/" "Freigaben/"
But i don't know really if that is the ghostfolder.


finally here's the interesting part in my dovecot.conf:
/
namespace private {
 separator = /
 prefix =
 #location defaults to mail_location.
  inbox = yes
}

namespace  shared {
  separator = /
  prefix = Freigaben/%%n/
  location = 
maildir:/var/mail/vhosts/%%d/%%n/:INDEX=/var/mail/vhosts/%%d/%%n/

  subscriptions = no
  list = children
  inbox = no
}
/

Any idea how to banish the ghost in the machine?

Thank you very much
Sascha








--
Systemschmiede IT-Lösungen
Zucca & Teves GbR
August-Thyssen-Str. 2-4
52511 Geilenkirchen
www.systemschmiede.com


Tel.:  02451 - 9088390
Fax:   02451 - 9124070
Mobil: 0178  - 4073254

Ust.ID: DE248030393



Re: [Dovecot] IMAP IDLE - iPhone?

2012-08-25 Thread Timo Sirainen
On 24.8.2012, at 14.18, Matthew Powell wrote:

> On 2012-08-24, at 7.01, Jerry  wrote:
> 
>> I would personally recommend supporting it. If history teaches us
>> anything, it is that sooner or later, and usually sooner, someone will
>> require that block. Being prepared for it in advance would seem like
>> the prudent thing to do.
> 
> I wonder whether it would be better to make the exclusion list configurable.


The reason for this default exclusion list is exactly to avoid behaving badly 
in unconfigured systems. Normally people should be using Dovecot proxies and 
login_trusted_networks setting configured to avoid the problem entirely.



Re: [Dovecot] Problem use localized prefix in namespace

2012-08-25 Thread (Dovecot) Sergey Sidlyarenko

Thank you, it works.

Timo Sirainen писал 2012-08-23 23:57:

On 17.8.2012, at 21.37, (Dovecot) Sergey Sidlyarenko wrote:


Problem with localized prefix in namespace.


Fixed: http://hg.dovecot.org/dovecot-2.1/rev/ade94fde249e


--
Best regards, Sidlyarenko Sergey Aleksandrovish
+7(495)509-42-07
tresh_dove...@lefoyer.rumailto:tresh_dove...@lefoyer.ru


Re: [Dovecot] quota: ignore deleted messages (?)

2012-08-25 Thread Timo Sirainen
On 25.8.2012, at 1.49, Sven Hartge wrote:

>> How about just disabling the quota enforcing and doing a nightly run
>> of some type of enforcing (sending notification email and/or disabling
>> new mail delivery until user has more quota again)?
> 
> As a last resort, yes. If possible, I'd like to keep the feedback about
> mailbox size as direct as possible.
> 
> Disabling an account only once per night might be acceptable, but the
> reenabling of the account, once a user has freed some space, has to be
> instant or I would get constant complains from the users (the ones with
> the biggest mailboxes being the professors, which can be quite the pain
> to work with, if they believe they don't get what they think they are
> entitled to get).

You can use quota warning scripts to send warnings and enable account instantly 
when it goes under 100%.

> So far, the description of the delete_to_trash plugin sounds promising,
> because I can already ignore the Trash (or add to the total quota for
> this folder and do a nightly expunge run for it), if only it would
> compile for dovecot 2.1.


I don't like the idea behind deleted_to_trash and won't offer any support for 
it if I don't have to.