[Dovecot] IMAP IDLE, Virtual mailboxes

2010-04-09 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

K-9 Mail (on Android) has been mentioned on this list multiple times
recently, I think it's definitely an IMAP client on the rise. :) It
supports IMAP IDLE, and so brings push mail to Android mobile phone
users. To bring this into the context of this mailing list: I guess a
lot of people on this list are making use of server-side filtering
(using sieve), so that mails from certain persons or mailing lists end
up in the right mailboxes, right on delivery. Now, this is all great,
but there are issues when server-side filtering and IMAP IDLE come
together: Only one mailbox can be watched with one IMAP IDLE
connection. So, people who have set up elaborate server-side filtering
with say, 50 different sieve fileinto calls, will constantly have a
*lot* of IMAP IDLE connections open, if they really want to get informed
of any mail arriving in any of their mailboxes.

Keeping those 50 IMAP connections open wouldn't cost much bandwidth, and
who cares about the Internet router's connection tables getting
unnecessarily big, anyway? But then there is the problem of a mobile
phone being carried around constantly, switching physical connections
(from WLAN access point 1 to WLAN access point 2 to 3G to 2G to no
connection at all and back), every time needing to terminate* those 50
IMAP connections, and then establish 50 new ones (with SSL handshake
overhead and all). So, all in all, not an optimal solution.

*) (which does not always happen the way it should, see
http://code.google.com/p/k9mail/issues/detail?id=1255)

I see two ways to improve the situation (one of them quite dovecot-centric):
1) A new extension of the IMAP protocol: IMAP MULTI-IDLE, which somehow
allows a client to get notified of changes to more than one mailbox
within one IMAP connection. This conflicts with the basic IMAP design
though, AFAIK, and is thus not likely to be feasible.
2) Enhancing dovecot's Virtual plugin, so virtual mailboxes do not only
get updated on select and expunge, but also when anything changes that
affects the set of messages shown in the virtual mailbox. I guess that
would have an impact on performance, and thus should be optional.

Let me explain the second one: With the help of the Virtual plugin, it
is possible to pull all those 50 mailboxes that receive incoming mail
together again, just like the INBOX of the pre-server-side-filtering
times - the user could configure a virtual mailbox to show all unread
mails from those 50 mailboxes. Now the mobile IMAP IDLE users could just
watch that one virtual mailbox, needing only one IMAP IDLE connection.
After having read the mail (directly in the virtual mailbox), it would
disappear, but of course still be in the real mailbox, determined by
the sieve filter on delivery.

Patrick.

- -- 
STAR Software (Shanghai) Co., Ltd.http://www.star-group.net/
Phone:+86 (21) 3462 7688 x 826 Fax:   +86 (21) 3462 7779

PGP key E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint:   E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAku+ydsACgkQ7yMg/OiDoAXV9ACdF+BEstnjfUeJlR/JQKFf6N7n
yxYAnAnuD2popWYLfZNCCtlpkAP4SQww
=L33A
-END PGP SIGNATURE-


Re: [Dovecot] IMAP IDLE, Virtual mailboxes

2010-04-09 Thread Nikolay Shopik

On 09.04.2010 10:31, Patrick Nagel wrote:

1) A new extension of the IMAP protocol: IMAP MULTI-IDLE, which somehow
allows a client to get notified of changes to more than one mailbox
within one IMAP connection. This conflicts with the basic IMAP design
though, AFAIK, and is thus not likely to be feasible.


That's RFC5465 IMAP NOTIFY Extension you are talking about and already 
standards track.




Re: [Dovecot] IMAP IDLE, Virtual mailboxes

2010-04-09 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Nikolay,

On 2010-04-09 14:51, Nikolay Shopik wrote:
 On 09.04.2010 10:31, Patrick Nagel wrote:
 1) A new extension of the IMAP protocol: IMAP MULTI-IDLE, which
 somehow allows a client to get notified of changes to more than one
 mailbox within one IMAP connection. This conflicts with the basic
 IMAP design though, AFAIK, and is thus not likely to be feasible.
 
 That's RFC5465 IMAP NOTIFY Extension you are talking about and
 already standards track.

That's great news, thanks for the pointer! :)

In http://dovecot.org/list/dovecot/2009-August/041950.html Timo says
that IMAP NOTIFY is not yet supported by Dovecot - has this changed? If
not, is there a plan to implement IMAP NOTIFY?

Patrick.

- -- 
STAR Software (Shanghai) Co., Ltd.http://www.star-group.net/
Phone:+86 (21) 3462 7688 x 826 Fax:   +86 (21) 3462 7779

PGP key E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint:   E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAku+1QMACgkQ7yMg/OiDoAWK8wCfWsRiO0K+F+3F53fkxnPfLy9t
xSMAnj1JxIYkwm/7teLE+28KkHmyA9ok
=Jxdn
-END PGP SIGNATURE-


[Dovecot] windows live mail + dovecot and nfs

2010-04-09 Thread Anes Muhametov
Hi all. My clients have got problem accessing dovecot by Windows live 
mail (Windows 7) client. The problem is that users can't delete two or 
more folders one-by-one.


There is no errors deleting first folder (new dir 
/storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED appeared and 
wasn't deleted). If I try to delete second one, error occurs (user, 
domain, IP address changed):


dovecot: IMAP(u...@domain): 
unlink_directory(/storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED) 
failed: Directory not empty




I'm using dovecot 1.2.10 @FreeBSD 7.2-RELEASE-p1 amd64 and NFS storage 
backend.


dovecot -n
# 1.2.10: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.2-RELEASE-p1 amd64
syslog_facility: local7
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/ssl/1.crt
ssl_key_file: /etc/ssl/1.key.unsec
disable_plaintext_auth: no
verbose_ssl: yes
shutdown_clients: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting: mail server ready.
login_process_per_connection: no
login_process_size: 512
login_processes_count: 60
login_max_processes_count: 256
login_max_connections: 100
max_mail_processes: 4096
mail_max_userip_connections(default): 50
mail_max_userip_connections(imap): 50
mail_max_userip_connections(pop3): 30
verbose_proctitle: yes
first_valid_uid: 90
last_valid_uid: 90
first_valid_gid: 90
last_valid_gid: 90
mail_privileged_group: mail
mail_location: maildir:%h/Maildir
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
lock_method: dotlock
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_process_size: 128
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle 
netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh 
tb-extra-mailbox-sep

imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
lda:
 postmaster_address: postmas...@domain.ru
 mail_plugins: quota
 sendmail_path: /usr/sbin/sendmail
 log_path: /var/log/dovecot/deliver.log
 info_log_path: /var/log/dovecot/deliver.log
auth default:
 mechanisms: plain login cram-md5
 cache_size: 262144
 cache_ttl: 180
 cache_negative_ttl: 60
 failure_delay: 1
 worker_max_count: 2000
 process_size: 512
 passdb:
   driver: sql
   args: /usr/local/etc/dovecot-sql.conf
 userdb:
   driver: prefetch
 userdb:
   driver: sql
   args: /usr/local/etc/dovecot-sql.conf
 socket:
   type: listen
   master:
 path: /var/run/dovecot/auth-master
 mode: 384
 user: user
 group: domain
plugin:
 quota: maildir:Quota


Here is listing of ..DOVECOT-TRASHED:

ls -la /storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED:
total 16
drwx--   2 user user 4096 Apr  9 11:32 .
drwx--  27 user user 8192 Apr  9 11:41 ..
-rw---   1 user user   156 Apr  9 11:32 .nfs.014cd02e.d11b4.4
-rw---   1 user user 17 Apr  9 11:32 .nfs.014cd031.d11b4.4

fstat output:

[root@ /storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED]# fstat .*
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W NAME
root fstat  82081   wd /storage/vol1 32454159 drwx--
4096  r  .
user imap   530427 /storage/vol1 40573622 -rw--- 156 rw  
.nfs.014cd02e.d11b4.4
user  imap   530429 /storage/vol1 40573631 -rw---  17 
rw  .nfs.014cd031.d11b4.4
root bash   3   wd /storage/vol1 32454159 drwx--
4096  r  .


# ps uxwa|grep user

user 53042  0.0  0.1  9812  2400  ??  S11:31AM   0:00.02 imap 
[u...@domain 1.1.1.1]
user  53650  0.0  0.1 10836  2908  ??  S11:32AM   0:00.05 imap 
[u...@domain 1.1.1.1]



It seems like first imap process locked ..DOVECOT-TRASHED.


Best regards
Anes Muhametoc.



Re: [Dovecot] Trouble with managesieve symbolic link creation

2010-04-09 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 8 Apr 2010, Daniela Silva wrote:

Try digging here:
  sieve_dir: ~/sieve

I think either you cannot use  ~ here, or your virtual users have no home 
directory or something.


Regards,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBS77qjr+Vh58GPL/cAQITeAf9FnlCjF2VaJGMxxmATdUYhFjCfQyxc9l9
YQwDI9C8wv+BPIJr2qnjA9h2koaRqMqKl04/z5TGj3CoJQrTVnXbQKII8XQosYbI
eOiHu2PgwCrtlORYoo8YaC84hPPHozyKTpuxRsW57FRTTBwFmGAOGdUHu3mrGIOA
n+Y+arEK6GtALzDRJO46QjI5Bp5+JkLRNEms7C8IQrVsGES7sMw5cvFYZS+ItpLi
Wrcouxeg3Yy1ho6lUvpHrmU63AqqvGg+X2KMspCLsg2dJrnWusYIbnQRJljqXPwW
FqzMWicD7FC5lkaYSV8IBVX9SQ5Tas2d6HaFDdFs/iCySyqiDKB2xA==
=JZkr
-END PGP SIGNATURE-


Re: [Dovecot] Sieve scripts

2010-04-09 Thread Nick Lunt


 -Original Message-
 From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org
 [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On
 Behalf Of Nick Lunt
 Sent: 06 April 2010 08:49
 To: dovecot@dovecot.org
 Subject: Re: [Dovecot] Sieve scripts
 
 Hi Jerry
 
  -Original Message-
  From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org
  [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org]
 On
  Behalf Of Jerry
  Sent: 01 April 2010 18:14
  To: dovecot@dovecot.org
  Subject: Re: [Dovecot] Sieve scripts
 
  On Thu, 1 Apr 2010 16:17:23 +0100, Nick Lunt
  nick.l...@patech-solutions.com articulated:
 
   Hi
  
   I have a simple sieve script to discard email with a certain string
  in
   the subject.
   I now need to beef this up a bit with the following:
  
   if header :contains subject A and B and not C
 discard
   if header :contains subject A and D and not C
 discard
   else
 pass
  
  
   Maybe my google skills are failing but I can't find much info on
   creating sieve scripts.
   Can anyone point me in the right direction to achieve this please ?
 
  ((untested))
 
  require [fileinto, reject];
 
  if allof (header :contains Subject [A, B],
not header :contains  Subject C)
  {discard; stop;}
 
  elsif allof (header :contains Subject [A, D],
   not header :contains Subject C)
  {discard; stop;}
 
  else {keep;}
 
 Testing this now, I'll let you know how it goes.
 
 Thank you.
 
 Nick .

Hi Jerry

all tested and working as expected, thanks for your help.

Nick .

 
 

__ Information from ESET NOD32 Antivirus, version of virus signature 
database 5012 (20100409) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


Re: [Dovecot] Shared mailboxes unix permissions

2010-04-09 Thread Thomas Hummel
On Wed, Mar 31, 2010 at 07:40:29PM +0200, Thomas Hummel wrote:
 Hello Timo,
 
 I'm running dovecot-1.2.11/Maildir and plan to migrate to single UID mailboxes
 some day, but for now, I've got system users and I'm testing permissions
 handling in order to set up shared mailboxes.
 
 The private namespace mailboxes location is
 
   location = 
 maildir:/courriel/boites/%u:CONTROL=/courriel/meta/%u:INDEX=/var/dovecot-test/indexes/%1u/%u
 
 I've 
 
   . created a 'doveshared' unix group
   . added 'mail_access_groups = doveshared'
   . chmod/chgrp the maildir and control dirs like this :
 
  drwxrws---  7 doveimap  doveshared  4096 Mar 31 18:47 
 /courriel/boites/doveimap
  drwxrws---  5 doveimap  doveshared  4096 Mar 31 18:47 
 /courriel/meta/doveimap
 
[which were empty]
 
   . added 'acl_shared_dict = file:/var/dovecot-test/dict/shared-mailboxes' 
 with
 
   drwxrwxs--  2 root  doveshared  512 Mar 31 18:44 /var/dovecot-test/dict
 
[which were empty]
 
 Everything gets created with the permission I was expecting, except :
 
   -rw---  1 doveimap  doveshared  8 Mar 31 18:47 
 /courriel/meta/doveimap/dovecot-uidvalidity
   -rw---  1 doveimap  doveshared  0 Mar 31 18:44 
 /courriel/meta/doveimap/dovecot-uidvalidity.4bb37be4
 
 and
 
   -rw---  1 doveimap  doveshared  0 Mar 31 18:44 
 /var/dovecot-test/dict/shared-mailboxes
 
 I can't see the explanation in
 
   http://wiki.dovecot.org/SharedMailboxes/Permissions
 
 and the 'dovecot-shared' file doesn't help (besides, my understanding is that
 in 1.2x, it's for backward compatibility reason).
 
 Any idea ?

Timo ?

-- 
Thomas Hummel   | Institut Pasteur
hum...@pasteur.fr | Pôle informatique - systèmes et réseau


Re: [Dovecot] push mail support

2010-04-09 Thread Ibrahim Harrani
Hi Robert,

I am testing dovecot imap idle feature on Nokia N97 with profimail client
3.X
I configured profimail to use imap-idle
I enabled use push email option and set IDLE ping time 5 min
imap_idle_notify_interval=120
Here is the explanation of profimail parameters.

   - *Use Push email* - enable or disable Push email (IMAP IDLE) connection
   mode on this account.
   - *IDLE ping time* - tweak settings for keeping IMAP IDLE connection
   alive. By default you don't need to change this. You may set it lower if
   your mail server closes IDLE connection after shorter time.

Profimail works fine after configuring for a while. It receives mails from
imap successfuly but after 5-10 minutes later profimail gets *failed to
connect(time out)* error.
There are following entires in the /var/log/maillog

*dovecot: IMAP(user): Connection closed: Connection reset by peer bytes*

I could not find the root cause of the problem. I changed IDLE ping time
from 1 to 10 on the phone. Unfortunately the result is the same. It gets
timeout error after working short time.
Should I change imap_idle_notify_interval or any other parameter in server
side?

Thanks

On Thu, Apr 8, 2010 at 8:23 PM, Thomas Leuxner t...@leuxner.net wrote:

 Am 08.04.2010 um 18:16 schrieb Robert Tomanek:

  And in fact k9mail on Android works great (really!) for me, too.

 Hey Robert,

 all hail Dovecot and K-9 then :P

 Cheers



Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
I Dont want the configuration.

I Want know how is implemented.

Explain, the functions, the hooks to get write a email

stuffs like this.

2010/4/8 Alex Baule alexwba...@gmail.com

 Hi Everyone

 Someone can explain to me the difference from zlib 1.2.X and 2.0 beta4 ??

 In zlib from 2.0 beta4, Which part of the plugin is responsible for write
 the compressed message ?





[Dovecot] Dovecot 1.2.11, Quota and SQL

2010-04-09 Thread Mikaël PIRIO

Hello,

I have a problem :(...

I try to define User Quotas in Dovecot (in my DB mySQL) but default 
quotas (in my dovecot.conf) are always set for all users.


I've  defined default quota to 500M. I set 0 to one account in my DB but 
when i see my logs, this account have a 500M quota !


Could you help me ?

My configuration :

# 1.2.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-xenU i686 Debian 5.0.4 ext3
log_path: /var/log/dovecot.err
info_log_path: /var/log/dovecot.info
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_location: maildir:/var/vmail/%d/%n/.maildir
mail_debug: yes
mbox_write_locks: fcntl dotlock
mail_plugins: quota imap_quota
auth default:
  debug: yes
  debug_passwords: yes
  passdb:
driver: pam
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: passwd
  userdb:
driver: static
args: uid=vmail gid=vmail home=/var/vmail/%d/%n
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  quota: maildir:User quota
  quota_rule: *:storage=500M
  quota_rule2: Trash:storage=10M



My dovecote-sql.conf :

driver = mysql
connect = host=localhost dbname=mail user=mail password=MyPassWord
default_pass_scheme = CRYPT
password_query = SELECT full_address AS user, password FROM 
admin_mailbox WHERE full_address = '%u'
user_query = SELECT path AS home, uid, gid, concat('*:storage=', quota, 
'M') AS quota_rule FROM admin_mailbox WHERE full_address = '%u'



When I request my DB, it's OK :

mysql SELECT path AS home, uid, gid, concat('*:storage=', quota, 'M') 
AS quota_rule FROM admin_mailbox WHERE full_address = 't...@dom.tld';

++-+-+--+
| home   | uid | gid | quota_rule   |
++-+-+--+
| dom.tld/toto/.maildir/ | 500 | 500 | *:storage=0M |
+-- -+-+-+--+
1 row in set (0.00 sec)


But when i see my logs :

IMAP(t...@dom.tld): Info: Loading modules from directory: 
/usr/lib/dovecot/modules/imap
IMAP(t...@dom.tld): Info: Module loaded: 
/usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
IMAP(t...@dom.tld): Info: Module loaded: 
/usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
IMAP(t...@dom.tld): Info: Effective uid=1002, gid=1004, 
home=/var/vmail/dom.tld/toto

IMAP(t...@dom.tld): Info: Quota root: name=User quota backend=maildir args=
IMAP(t...@dom.tld): Info: Quota rule: root=User quota mailbox=* 
bytes=524288000 messages=0
IMAP(t...@dom.tld): Info: Quota rule: root=User quota mailbox=Trash 
bytes=10485760 messages=0



Thanks for your help,
--
Mikaël,




Re: [Dovecot] Shared mailboxes unix permissions

2010-04-09 Thread Thomas Hummel
On Fri, Apr 09, 2010 at 11:17:26AM +0200, Thomas Hummel wrote:

  and the 'dovecot-shared' file doesn't help (besides, my understanding is 
  that
  in 1.2x, it's for backward compatibility reason).

Which makes me wonder : does the dovecot-shared file still control, with
1.2x/Maildir/shared namespaces/ where the flags are stored (in other words, can
we have shared-mailboxes with private \Seen flags for instance) ?

-- 
Thomas Hummel   | Institut Pasteur
hum...@pasteur.fr | Pôle informatique - systèmes et réseau


[Dovecot] Dovecot 2.0 - LDA auth-master issues

2010-04-09 Thread Floris Bos
Hi,

I'm running a Postfix+Dovecot+MySQL setup, and am trying to upgrade to Dovecot 
2.0 beta 4.
The problem I run into is that lda cannot connect to the auth-master socket.

==
Apr  9 15:29:51 mysql postfix/pipe[3749]: 2AAB04517F: to=EMAIL-ADDRESS, 
relay=dovecot, delay=0.02, delays=0.01/0/0/0.02, dsn=4.3.0, status=deferred 
(temporary failure. Command output: lda: Error: userdb lookup: 
connect(/usr/local/var/run/dovecot/auth-master) failed: Permission denied 
(euid=80(www) egid=1003(dovecot) missing +r perm: 
/usr/local/var/run/dovecot/auth-master, euid is not dir owner) lda: Fatal: 
User lookup failed: userdb lookup failed )
==

Dovecot seems to set the permission of the auth-master socket to user root, 
mode 600.
In Dovecot 1 there was a mode and a user option to change this. 

In Dovecot 2 I can only find an option to change the socket path 
(auth_socket_path), but not it's user or mode.
Any idea on how to solve this?
 

Your sincerely,

Floris Bos


[Dovecot] RFC 4468

2010-04-09 Thread Erik Logtenberg
You know, I was thinking: wouldn't it be nice to have RFC 4468 (Message
Submission BURL Extension) support in dovecot? Maybe we should ask the
guys from Apple to contribute some support for it, I have a gut feeling
they would gladly do so ;)

Kind regards

-- Erik.



[Dovecot] dovecot2: protocols = ... changed ?

2010-04-09 Thread Andreas Schulze
hello,

to use dovecot 1.2 only for sasl authentication I could set protocols = none
in dovecont.conf. In Version2 this gave me an error.
Instead I had to write protocols = into the configfile.

I wonder about a key without value in the conf ...
should the wiki2.dovecot.org be updated?

-- 
Andreas Schulze
Internetdienste | P532

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail info @datev.de | Internet www.datev.de
Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg 
Nr.70
Vorstand
Prof. Dieter Kempf (Vorsitzender)
Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender)
Dipl.-Kfm. Michael Leistenschneider
Jörg Rabe v. Pappenheim
Dipl.-Vw. Eckhard Schwarzer
Vorsitzender des Aufsichtsrates: Reinhard Verholen



Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Pascal Volk
On 04/09/2010 02:45 PM Alex Baule wrote:
 I Dont want the configuration.
 
 I Want know how is implemented.
 
 Explain, the functions, the hooks to get write a email
 
 stuffs like this.

How it is implemented:
http://hg.dovecot.org/dovecot-2.0/file/tip/src/plugins/zlib


Regards,
Pascal
-- 
The trapper recommends today: defaced.1009...@localdomain.org


Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
Hi Paschal

You do not understand what I want.

I developed a plugin based on the zlib plugin, but want to port it to
dovecot 2.0.

There are some differences in the 2.0 plugin, which I did not quite
understand how it works for me to readjust it in my plugin.

As in the source code there are not many comments, I do not quite know what
each function does, if they are all necessary in my adaptation.

In developing the plugin in version 1.4, Timo helped me a lot.

What I need to know is how the hooks on write emails do this,  and what the
differences in the read function, since the code is different from version
1.4 to 2.0.


Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
Hi Paschal

You do not understand what I want.

I developed a plugin based on the zlib plugin, but want to port it to
dovecot 2.0.

There are some differences in the 2.0 plugin, which I did not quite
understand how it works for me to readjust it in my plugin.

As in the source code there are not many comments, I do not quite know what
each function does, if they are all necessary in my adaptation.

In developing the plugin in version 1.4, Timo helped me a lot.

What I need to know is how the hooks on write emails do this,  and what the
differences in the read function, since the code is different from version
1.4 to 2.0.


2010/4/9 Alex Baule alexwba...@gmail.com

 I Dont want the configuration.

 I Want know how is implemented.

 Explain, the functions, the hooks to get write a email

 stuffs like this.

 2010/4/8 Alex Baule alexwba...@gmail.com

 Hi Everyone

 Someone can explain to me the difference from zlib 1.2.X and 2.0 beta4 ??

 In zlib from 2.0 beta4, Which part of the plugin is responsible for write
 the compressed message ?






Re: [Dovecot] Dovecot 2.0 - LDA auth-master issues

2010-04-09 Thread e-frog
ON 09.04.2010 16:10, wrote Floris Bos:

 In Dovecot 2 I can only find an option to change the socket path 
 (auth_socket_path), but not it's user or mode.
 Any idea on how to solve this?

You can set this in master.conf

service auth {
  unix_listener auth-master {
group =
mode = 0600
user =
  }
}

Regards,
e-frog


Re: [Dovecot] Problems with masteruser

2010-04-09 Thread Eric Rostetter

Quoting Неворотин Вадим nevoro...@gmail.com:


It's look like a big bug. As I understang there shouldn't be any different
between logging in with masteruser and normal log in. But in my system I
can't use masteruser at all due to IMAP errors.


It works for me, with two exceptions:

1) The acl issue I mentioned.
2) It doesn't work right in my webmail for anything but the e-mail part,
since the webmail retains the user as master*real instead of just real.
So it does log me in and show me the mail, but everything else (preferences,
filters, address book, etc) don't work right.  The webmail has hooks which
should allow me to fix this, but I've not had time to figure that out yet.

So basically, it works for me, which just two little annoyances (one is
dovecot specific, the other is actually my webmail and not dovecot).

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Go Longhorns!


[Dovecot] Dovecot 2.0 beta 4 errors reported

2010-04-09 Thread Ken A

Timo,

Thank you for an amazing imap/pop server.
I'm using Dovecot 2.0 beta 4 and mbox storage, and have encountered a 
couple of errors worth reporting:


 --

1. When I delete a parent folder that contains sub folders, I get this 
error message pop up in Thunderbird 3.04:



The current command did not succeed. The mail server responded:
[CANNOT] Mailbox GUIDs are not permanent without index files.


But, the folders are deleted properly, and no error is logged on the 
server. I have the mail_log plugin currently enabled like so:

mail_plugins = quota mail_log notify
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size


 --

2. segfault reported in the system log (unrelated to the error above):

kernel: pop3[6794]: segfault at 0028 rip 00403489
rsp 7fff20a24a20 error 4


--

Thanks,
Ken

--
Ken Anderson
Pacific Internet - http://www.pacific.net


Re: [Dovecot] Problems with masteruser

2010-04-09 Thread Неворотин Вадим
Well, the main idea of master users is to able to log in as normal user with
master password. So IMAP client shoudn't know at all that it work with
masteruser password. And IMAP process must be exactly the same. If you can
find difference between login*master and login - then there is a bug in
master users implementation. I see a big difference

2010/4/9 Eric Rostetter rostet...@mail.utexas.edu

 Quoting Неворотин Вадим nevoro...@gmail.com:

  It's look like a big bug. As I understang there shouldn't be any different
 between logging in with masteruser and normal log in. But in my system I
 can't use masteruser at all due to IMAP errors.


 It works for me, with two exceptions:

 1) The acl issue I mentioned.
 2) It doesn't work right in my webmail for anything but the e-mail part,
 since the webmail retains the user as master*real instead of just real.
 So it does log me in and show me the mail, but everything else
 (preferences,
 filters, address book, etc) don't work right.  The webmail has hooks
 which
 should allow me to fix this, but I've not had time to figure that out yet.

 So basically, it works for me, which just two little annoyances (one is
 dovecot specific, the other is actually my webmail and not dovecot).


 --
 Eric Rostetter
 The Department of Physics
 The University of Texas at Austin

 Go Longhorns!



Re: [Dovecot] RFC 4468

2010-04-09 Thread Mike Abbott
 wouldn't it be nice to have RFC 4468

Actually, Apple contributed such support a few hours ago but it's stuck in the 
mailing list queue because the patch is big.  As soon as Timo approves the 
posting

Re: [Dovecot] IMAP IDLE, Virtual mailboxes

2010-04-09 Thread Nikolay Shopik

On 09.04.2010 11:19, Patrick Nagel wrote:

That's great news, thanks for the pointer!:)

Inhttp://dovecot.org/list/dovecot/2009-August/041950.html  Timo says
that IMAP NOTIFY is not yet supported by Dovecot - has this changed? If
not, is there a plan to implement IMAP NOTIFY?

Patrick.



Keep in mind it still need at least one connection per mailbox if I 
correctly understood RFC. Also I don't know any client supporting IMAP 
NOTIFY yet.




Re: [Dovecot] RFC 4468

2010-04-09 Thread Erik Logtenberg
On 04/09/2010 07:05 PM, Mike Abbott wrote:
 wouldn't it be nice to have RFC 4468
 
 Actually, Apple contributed such support a few hours ago but it's stuck in 
 the mailing list queue because the patch is big.  As soon as Timo approves 
 the posting

What a nice coincidence ;)


Re: [Dovecot] Dovecot 1.2.11, Quota and SQL

2010-04-09 Thread Mikaël PIRIO

Sorry,

I have resolved my problem !

user_query wasn't executed because i defined a userdb_static. I have 
defined a userdb_static because Dovecot couldn't find my maildir 
locations... But it wasn't the good solution !


So :

1 - I removed userdb_static
2 - I modified my dovecot-sql.conf file to get an absolute path to 
home (my first problem was here in fact) :


user_query = SELECT concat('/var/vmail/', path) AS home, uid, gid, 
concat('*:storage=', quota, 'M') AS quota_rule FROM admin_mailbox WHERE 
full_address = '%u'


Now, it's OK :)

Thanks for Dovecot !
--
Mikaël,


Re: [Dovecot] RFC 4468

2010-04-09 Thread Stan Hoeppner
Erik Logtenberg put forth on 4/9/2010 9:12 AM:
 You know, I was thinking: wouldn't it be nice to have RFC 4468 (Message
 Submission BURL Extension) support in dovecot? Maybe we should ask the
 guys from Apple to contribute some support for it, I have a gut feeling
 they would gladly do so ;)

There's an active BURL thread on the postfix-users list right now and it
seems Wietse and Victor are open to looking at the idea.  Timo have you had
any chats with Wietse and/or Victor about BURL, Postfix, and Dovecot as of
yet?  I'm just assuming for some reason that you've interacted with Wietse
in the past on one level or another.  My apologies if this is not the case.

Anyway, seems the time may be right to engage this feature and coordinate
with some MTA devs to get it working correctly.

Does anyone know if Firefox has support for BURL submission yet, or does it
even need it?  I've not looked at the actual message paths defined by this
extension yet.  My assumption is that with this extension, the MUA submits
the message to the IMAP server and then the IMAP server forwards it to the
MTA.  Or do I have it backwards?

-- 
Stan


Re: [Dovecot] Patch: support URLAUTH, BURL, CATENATE

2010-04-09 Thread Timo Sirainen
On 9.4.2010, at 14.24, Mike Abbott wrote:

 The patch adds the concept of submit users.  Submit users are like
 master users in that they may log in as any user.  However submit users
 can use only a limited set of commands:  just URLFETCH, ID, CAPABILITY
 (although the capabilities are a lie since submit users can't use most
 commands), and LOGOUT.  This restriction enables an IMAP server to allow
 a BURL-capable submission server to use URLFETCH commands without
 risking a huge security breach if a submit user's credentials are
 compromised.  In other words, you can safely enable limited-power submit
 users without enabling super-user master users.

Hmm. They are quite similar though. Maybe it could internally work pretty much 
the same as master user, except have a single flag saying it's a submit user, 
and based on that deny the commands. And actually this could be merged with the 
support for checking if user is anonymous. So something like:

MASTER_USER=submit
USER_TYPE=anonymous | normal | submit

 The patch adds a non-standard X-PLAIN-SUBMIT authentication method
 specifically to allow plain-text submit user logins while plain-text
 regular user logins are not allowed.  This lets the system administrator
 configure the same submit user and password credentials on both the
 submission server and the IMAP server.

With v2.0 it's possible to do:

disable_plaintext_auth = yes
remote submit.domain.org {
  disable_plaintext_auth = no
}

I think that takes care of the need for X-PLAIN-SUBMIT?

Re: [Dovecot] Patch: support URLAUTH, BURL, CATENATE

2010-04-09 Thread Timo Sirainen
On 9.4.2010, at 14.24, Mike Abbott wrote:

- the maildir-specific code in urlauth-keys
- the NFS-unsafe locking and read-modify-write algorithms in urlauth-keys

It could probably use lib-dict instead. I was actually originally thinking 
about using METADATA plugin as storage for these, but just configuring a 
lib-dict backend would probably be fine too. Like:

urlauth_dict = file:~/Maildir/urlauthkeys

or

urlauth_dict = proxy::urlauth
dict {
  urlauth = pgsql:/etc/dovecot-dict-sql.conf
}