Re: [Dovecot] how to separate virtual delivery and authentication?

2014-01-07 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 30 Dec 2013, Mihai Badici wrote: I have a pure ldap setting with postfix and dovecot. When using dovecot delivery, the recipient is checked via ldap. The same ldap query is used when authenticate. So, if I want to authenticate with the uid

Re: [Dovecot] using OR in doveadm search query

2014-01-07 Thread W. de Hoog
This works for me (at least with tcsh): $ doveadm search mailbox shared/* OR (SUBJECT a) (SUBJECT b) doveadm does not complain anymore but it does not find anything. I guess because now the query has become a mailbox name that does not exist. ( I am using dovecot 2.2.9) -- Willem-Jan de

Re: [Dovecot] how to separate virtual delivery and authentication?

2014-01-07 Thread Mihai Badici
On Tuesday 07 January 2014 09:00:15 you wrote: On Mon, 30 Dec 2013, Mihai Badici wrote: I have a pure ldap setting with postfix and dovecot. When using dovecot delivery, the recipient is checked via ldap. The same ldap query is used when authenticate. So, if I want to authenticate with

Re: [Dovecot] how to separate virtual delivery and authentication?

2014-01-07 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Jan 2014, Mihai Badici wrote: On Tuesday 07 January 2014 09:00:15 you wrote: On Mon, 30 Dec 2013, Mihai Badici wrote: I have a pure ldap setting with postfix and dovecot. When using dovecot delivery, the recipient is checked via ldap.

Re: [Dovecot] Panic: file mailbox-list-maildir.c: line 133: unreached

2014-01-07 Thread Raúl Massano Brás
Citando Robert Schetterer r...@sys4.de: 2.0.9 is old what about upgrade to recent 2.1.x, 2.2.x the latest patchlevel of 2.0.x is 2.0.21 so minimum try upgrade to this, your problem may allready got fixed Upgrading to version 2.2.7 solved the problem. Thank you for the advice. Best

Re: [Dovecot] LMTP with virtual and system users

2014-01-07 Thread Philipp Kolmann
Hi Adrian, thanks for your reply. I have also thought in this direction already but I didn't want to have lda SUID root... I saw that the Passwd-file passdb supports username_format as argument. Would it be possible to add this feature also to the LMTP passdb driver? thanks Philipp On

Re: [Dovecot] how to separate virtual delivery and authentication?

2014-01-07 Thread Mihai Badici
IMHO, exactly that works with the maildrop LDAP attribute. You enumerate all mail addresses into maildrop. Use maildrop in userdb filter only. If you like to use uid on command line of doveadm, you need to add the uid to maildrop as well, otherwise have the passdb return another username,

Re: [Dovecot] how to separate virtual delivery and authentication?

2014-01-07 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Jan 2014, Mihai Badici wrote: IMHO, exactly that works with the maildrop LDAP attribute. You enumerate all mail addresses into maildrop. Use maildrop in userdb filter only. If you like to use uid on command line of doveadm, you need to

Re: [Dovecot] Question re: filesystem permissions

2014-01-07 Thread Thomas Leuxner
* Charles Marcus cmar...@media-brokers.com 2014.01.06 21:23: Hi Charles, /var/vmail/example1.com 777 $ ls -al /var/vmail/domains/leuxner.net/ drwx--S--- 4 vmail vmail 4096 Sep 8 18:22 tlx Suffices to have rwx for the 'vmail' user only IMHO. Note the 'setgid bit (2700) inheriting the group

Re: [Dovecot] Question re: filesystem permissions

2014-01-07 Thread Charles Marcus
On 2014-01-07 8:42 AM, Thomas Leuxner t...@leuxner.net wrote: * Charles Marcus cmar...@media-brokers.com 2014.01.06 21:23: Hi Charles, /var/vmail/example1.com 777 $ ls -al /var/vmail/domains/leuxner.net/ drwx--S--- 4 vmail vmail 4096 Sep 8 18:22 tlx Suffices to have rwx for the 'vmail'

Re: [Dovecot] Question re: filesystem permissions

2014-01-07 Thread Thomas Leuxner
* Charles Marcus cmar...@media-brokers.com 2014.01.07 15:05: Ok, thanks Thomas... but I'm really looking for what Timo says is the correct and proper permissions for a virtual setup like this. I suggest you don't start posts 'Hi all' then going forward. Anyway this is the default for Dovecot

Re: [Dovecot] Dovecot deliver into folder question

2014-01-07 Thread Benny Pedersen
Marc Perkel skrev den 2014-01-06 21:33: when specifying the mailbox - how do you specify a subfolder? Do you use a / separator? try create a folder in webmail, then see how its done in filesystem later, is this clear now ? seperate chars is imho not hardcoded, thats why i answer as above

Re: [Dovecot] Dovecot deliver into folder question

2014-01-07 Thread Benny Pedersen
Steffen Kaiser skrev den 2014-01-07 08:28: separator = . - -m shared.sub1.sub2.sub3 When I used Dovecot LDA, the first variant worked. is separator not a glue here ? :) i think separator = / is a very very bad idea

Re: [Dovecot] inotify max_user instances

2014-01-07 Thread Benny Pedersen
Charles Marcus skrev den 2014-01-06 19:33: echo 1024 /proc/sys/fs/inotify/max_user_instances Suggestions? add this to sysctl.conf no need to hack init scripts :)

[Dovecot] Assertion failed with imapc after upgrading Dovecot from 2.1.7 to 2.2.9

2014-01-07 Thread Sylvain
Hi ! I have an old Courier IMAP and in front of it, I have put a proxy cache with Dovecot/imapc. I use Debian Wheezy (stable) which package Dovecot in version 2.1.7. I have tested the upgrade to Debian Jessie (testing) which package Dovecot in version 2.2.9 but an assertion is thrown : dovecot:

Re: [Dovecot] Question re: filesystem permissions

2014-01-07 Thread Charles Marcus
On 2014-01-07 9:30 AM, Thomas Leuxner t...@leuxner.net wrote: * Charles Marcus cmar...@media-brokers.com 2014.01.07 15:05: Ok, thanks Thomas... but I'm really looking for what Timo says is the correct and proper permissions for a virtual setup like this. I suggest you don't start posts 'Hi

[Dovecot] BUG report: doveadm HEADER field pattern when concatenating with another Search key

2014-01-07 Thread megodin
Hey there, I'm pretty sure I've found a bug with doveadm when concatenating with another search key. While doveadm HEADER field pattern works fine when not using additional search keys, it doesn't work properly when concatenating with other serarch keys - it then simply seems to ignore the

Re: [Dovecot] how to separate virtual delivery and authentication?

2014-01-07 Thread Mihai Badici
O userdb for delivery) , this could be far better.But I think this is a design issue. Remember: passdb is for authentificating users; userdb is for getting user information. When an user auth's for IMAP, passdb verifies the password and probably overrides the username, in the second step

[Dovecot] Mailbox autocreate feature cannot create folders

2014-01-07 Thread interfaSys sàrl
Hello, The new way of creating default mailboxes doesn't work for us. There seems to be a permission problem. We get this in the logs: imap(testu...@domain.com): Error: nfs_flush_file_handle_cache_dir: rmdir(/var/mail) failed: Device busy That error message has nothing to do with NFS (not used)

Re: [Dovecot] using OR in doveadm search query

2014-01-07 Thread Joseph Tam
This works for me (at least with tcsh): $ doveadm search mailbox shared/* OR (SUBJECT a) (SUBJECT b) doveadm does not complain anymore but it does not find anything. I guess because now the query has become a mailbox name that does not exist. ( I am using dovecot 2.2.9) Each search token

[Dovecot] Dovecot can't find CLucene's libstemmer on FreeBSD

2014-01-07 Thread interfaSys sàrl
Hello, A set of patches was created by Lawrence Chen for the Dovecot2 port so that it could recognise and use libstemmer and libexttextcat. They can't be used as is as he's replacing statements with something that works only on FreeBSD, but I think it would be a good idea to try and include some

Re: [Dovecot] Dovecot LMTP does not pass envelope recipient +detail to sieve

2014-01-07 Thread Greg Rivers
On Mon, 6 Jan 2014, I wrote: I found this[1] thread that describes the same problem with dovecot-LDA, but the solution (add X-Original-To: header) has no effect with LMTP. My sendmail LMTP configuration: FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/dovecot/lmtp') Sendmail's address test

Re: [Dovecot] BUG report: doveadm HEADER field pattern when concatenating with another Search key

2014-01-07 Thread Joseph Tam
On Wed, 8 Jan 2014, dovecot-requ...@dovecot.org wrote: doveadm search -u exampleuser SUBJECT Silvester (outputs correctly 10 matches) ... doveadm search -u exampleuser SUBJECT Silvester HEADER Return-Path someu...@example.com (gives exactly the same output - but this is WRONG, as the given

Re: [Dovecot] how to separate virtual delivery and authentication?

2014-01-07 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Jan 2014, Mihai Badici wrote: userdb for delivery) , this could be far better.But I think this is a design issue. Remember: passdb is for authentificating users; userdb is for getting user information. When an user auth's for IMAP,