[Dovecot-news] v2.1.17 released

2013-06-26 Thread Timo Sirainen
http://dovecot.org/releases/2.1/dovecot-2.1.17.tar.gz
http://dovecot.org/releases/2.1/dovecot-2.1.17.tar.gz.sig

Hopefully among the last v2.1.x releases.

+ zlib: Keep the last read mail uncompressed in a temporary file.
  This significantly improves performance when IMAP client does
  small partial fetches for a large mail.
+ acl: Optionally get default ACL's for private/shared namespaces
  from user's INBOX (plugin { acl_defaults_from_inbox = yes } 
- Case-insensitive unicode character comparisons weren't all working
  as they should.
- maildir: Fixed handling over 26 keywords in a mailbox.
- auth: Don't crash in non-PLAIN/LOGIN auth mechanism if master user
  login is attempted without any master passdbs configured.


___
Dovecot-news mailing list
Dovecot-news@dovecot.org
http://dovecot.org/cgi-bin/mailman/listinfo/dovecot-news


Re: [Dovecot] Mbox corruption - Inbox beginning with 'FFrom' or 'FrFrom'

2013-06-26 Thread Dimos Alevizos

Hi,

I haven't had the time to compile it yet, but a question just occurred.
Given that it's so rare and we can't reproduce it on a dev server, how 
safe is this to use on a production server ?
When you say crash you mean the whole dovecot server or that specific 
client's child ?


D.

 Original Message 
Subject: Re: [Dovecot] Mbox corruption - Inbox beginning with 'FFrom' or 
'FrFrom'

From: dalevizo dalev...@otenet.gr
To: Timo Sirainen t...@iki.fi
CC: dovecot@dovecot.org, Dimitris Paouris dp...@otenet.gr
Date: 24/06/2013 01:41 μμ


Thanx I'll try the patch as soon as possible and I'll let you know.
It is indeed very rare. We're only seeing 4-5 corruptions in about 13
million logins per day.
I've been trying to convince our design team that we should move to
maildir, but the truth is that it's quite a change, and we're way too
busy to deal with everything else AND a migration from mbox to maildir.

D.

On Mon 24/06/2013 13:16, Timo Sirainen wrote:

On 19.6.2013, at 16.00, Dimos Alevizos dalev...@otenet.gr wrote:


we're having some problems with our dovecot setup.
I've seen similar problems in the mailing list some years ago but alas wasn't 
able to find a solution.

Our setup is as follows :
An MX farm (postfix) sends mails via LMTP to a director farm (dovecot 2.1.12) 
which proxies pop3/imap/lmtp traffic to a dovecot farm (dovecot 2.1.16).
All mailboxes and indexes are on NFS and all servers are Centos.

The problem is that at times we see mailboxes (all of them are in mbox format) 
beginning with FFrom or FrFrom and of course dovecot says it's not a valid mbox 
file.


This is quite an old bug, but it happens rarely enough that I haven't been able 
to reproduce and fix it. Actually people hadn't complained about it for a long 
time now, so I had assumed it had somehow gotten fixed already.

With the attached debug patch it should crash instead of (completely) 
corrupting the mbox file. Debugging the resulting core file with gdb could be 
useful in figuring this out.

Although I wouldn't recommend mbox format for any big installation anyway..











Re: [Dovecot] Help installing Dovecot 1.0 on Debian 6.0.7

2013-06-26 Thread Hans Spaans
Roshan Dawrani schreef op di 25-06-2013 om 15:03 [+0530]:
 Hi,
 
 Could someone please let me know if I can get the pre-built binaries for
 Dovecot 1.0 for Debian 6.0?
 
 If I do apt-get install dovecot..., I am getting Dovecot v1.2.5
 installed, but it doesn't like the existing Dovecot 1.0 configuration I
 have, and due to some urgency, I am trying to avoid migrating the
 configuration to the new structure / requirements.
 
 Regards,
 Roshan

I suspect you mean this one[1], but you can get all by Debian published
versions at snapshot.debian.org. But then again 1.0 was never shipped[2]
with Debian 6.0 and neither was version 1.2.5. You're sure you're not
mixing Debian with Ubuntu LTS?

Hans

[1] http://snapshot.debian.org/package/dovecot/1%3A1.0.0-1/
[2] http://qa.debian.org/madison.php?package=dovecottable=alla=c=s=#



Re: [Dovecot] Help installing Dovecot 1.0 on Debian 6.0.7

2013-06-26 Thread Roshan Dawrani
On Wed, Jun 26, 2013 at 3:48 PM, Hans Spaans h...@dailystuff.nl wrote:


 But then again 1.0 was never shipped[2]
 with Debian 6.0 and neither was version 1.2.5. You're sure you're not
 mixing Debian with Ubuntu LTS?


Thanks for the pointers.

I don't think I am mixing Debian with Ubuntu. lsb_release  -a shows
Debian GNU/Linux 6.0.7 (squeeze)

Our apt sources points to http://http.us.debian.org/debian/; and after
apt-get install dovecot, dovecot --version showed 1.2.15 (not 1.2.5,
sorry about the typo earlier)


[Dovecot] How to manage email with an ISP restricted mailbox size?

2013-06-26 Thread Tom Atkins
Sorry if this is a bit off topic but I'm hoping list members here might
have some ideas.

Aim: use ISP provided email with restricted inbox size but keep an IMAP
accessible archive of emails (including 'sent' messages) on a remote server.

Scenario:

- Don't want to run my own SMTP server
- Have free ISP email with 1Gb mailbox limit and spam filtering that works
well
- Have remote server with plenty of disk space
- Want to use remote server for IMAP access to archive of email to avoid
1Gb ISP mailbox limit

Options I tried:

1. Use ISP email via IMAP and periodically backup / archive messages to
remote server with something like mbsync / isync to maildir format. Delete
old messages on ISP server safe in knowledge they are backed up on my
server. QUESTION: how to access those archives via IMAP (read only is OK)?

2. Use ISP email for sending messages only. Use Getmail / Fetchmail to move
messages to remote server and run Dovecot there. I tried using Getmail to
do this but couldn't figure out how to keep copies of 'Sent' and 'Draft'
messages if the email client was configured to read via IMAP on one server
and send via SMTP to another server.

Any thoughts on how best to achieve my aims?

Thanks, Tom.


[Dovecot] Dovecot 2.2.4 - Fatal: master: service(imap): child 44562 killed with signal 11

2013-06-26 Thread Marcin Mirosław
Hi all!
I just upgraded dovecot from 2.2.2 to 2.2.4. Now I can't login to imap,
proces imap throws segfault. Here is snip from dovecot.log:

2013-06-25T23:06:47.824321+02:00 meteor dovecot: imap-login: Login:
user=mar...@mejor.pl, method=PLAIN,
rip=2001:470:1f0b:1ab3:1bc:3b24:d355:b142, lip=2001:470:1f15:1b61::2,
mpid=44562, TLS, session=PaQ86ADgegAgAQRwHwsaswG8OyTTVbFC
2013-06-25T23:06:47.827616+02:00 meteor dovecot: imap(mar...@mejor.pl)
PaQ86ADgegAgAQRwHwsaswG8OyTTVbFC: Warning: autocreate plugin is
deprecated, use mailbox { auto } setting instead
2013-06-25T23:06:47.830425+02:00 meteor dovecot: imap(mar...@mejor.pl)
PaQ86ADgegAgAQRwHwsaswG8OyTTVbFC: Fatal: master: service(imap): child
44562 killed with signal 11 (core dumped)

Here is bt created using gdb:
Reading symbols from /usr/libexec/dovecot/imap...Reading symbols from
/usr/lib64/debug/usr/libexec/dovecot/imap.debug...done.
done.
[New LWP 17730]
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib64/libthread_db.so.1.
Core was generated by `dovecot/imap'.
Program terminated with signal 11, Segmentation fault.
#0  imapc_storage_try_get_root_sep (storage=0x0, sep_r=0x3f7bad9bbd7 )
at imapc-storage.c:229
229 i_assert(storage-list != NULL);
(gdb)
Thread 1 (Thread 0x38656679700 (LWP 17730)):
#0  imapc_storage_try_get_root_sep (storage=0x0, sep_r=0x3f7bad9bbd7 )
at imapc-storage.c:229
#1  0x0386567b8b05 in imapc_list_get_hierarchy_sep (_list=optimized
out) at imapc-list.c:196
#2  0x0386567b8fff in imapc_list_get_fs_name (list=0xdba28f030,
name=0x0) at imapc-list.c:282
#3  0x0386567b9291 in imapc_list_get_path (_list=optimized out,
name=0x0, type=MAILBOX_LIST_PATH_TYPE_MAILBOX, path_r=0x3f7bad9bcc8)
at imapc-list.c:323
#4  0x0386567db675 in mailbox_list_get_root_path (list=optimized
out, type=optimized out, path_r=0x3f7bad9bcc8) at mailbox-list.c:1258
#5  0x038655c75d15 in quota_add_user_namespace (quota=0xdba288e80,
ns=0xdba28eee0) at quota.c:704
#6  0x038655c7d0ea in quota_mailbox_list_created (list=0xdba292480)
at quota-storage.c:590
#7  0x0386567d64d2 in hook_mailbox_list_created (list=0xdba292480)
at mail-storage-hooks.c:319
#8  0x0386567da297 in mailbox_list_create (driver=optimized out,
ns=0xdba28eee0, set=0x3f7bad9be20, flags=optimized out,
list_r=0xdba28f228,
error_r=0x3f7bad9be80) at mailbox-list.c:206
#9  0x0386567b8f63 in imapc_list_get_fs (list=0xdba28f030) at
imapc-list.c:265
#10 0x0386567b927e in imapc_list_get_path (_list=optimized out,
name=0x0, type=MAILBOX_LIST_PATH_TYPE_MAILBOX, path_r=0x3f7bad9bf18)
at imapc-list.c:319
#11 0x0386567db675 in mailbox_list_get_root_path (list=optimized
out, type=optimized out, path_r=0x3f7bad9bf18) at mailbox-list.c:1258
#12 0x038655c75d15 in quota_add_user_namespace (quota=0xdba288e80,
ns=0xdba28eee0) at quota.c:704
#13 0x038655c7d0ea in quota_mailbox_list_created (list=0xdba28f030)
at quota-storage.c:590
#14 0x0386567d64d2 in hook_mailbox_list_created (list=0xdba28f030)
at mail-storage-hooks.c:319
#15 0x0386567da297 in mailbox_list_create (driver=optimized out,
ns=0xdba28eee0, set=0x3f7bad9c090, flags=optimized out,
list_r=0x3f7bad9c0e8,
error_r=0x3f7bad9c1a0) at mailbox-list.c:206
#16 0x0386567d15c1 in mail_storage_create_full (ns=0xdba28eee0,
driver=optimized out, data=optimized out, flags=(unknown: 0),
storage_r=0x3f7bad9c150, error_r=0x3f7bad9c1a0) at mail-storage.c:356
#17 0x0386567d181c in mail_storage_create (ns=optimized out,
driver=optimized out, flags=optimized out, error_r=optimized out)
at mail-storage.c:407
#18 0x0386567c9b25 in namespace_add (user=0xdba283e90,
ns_set=optimized out, unexpanded_ns_set=0xdba284668,
mail_set=0xdba284f98, ns_p=0xdba28c5b0,
error_r=0x3f7bad9c300) at mail-namespace.c:170
#19 0x0386567caba7 in mail_namespaces_init (user=0xdba283e90,
error_r=0x3f7bad9c300) at mail-namespace.c:344
#20 0x0386567e1acf in mail_storage_service_init_post
(error_r=0x3f7bad9c300, mail_user_r=0x3f7bad9c3d0, priv=0x3f7bad9c2d0,
user=0xdba272c38,
ctx=optimized out) at mail-storage-service.c:653
#21 mail_storage_service_next (ctx=optimized out, user=0xdba272c38,
mail_user_r=0x3f7bad9c3d0) at mail-storage-service.c:1158
#22 0x0386567e1e35 in mail_storage_service_lookup_next
(ctx=0xdba26e4b0, input=optimized out, user_r=0x3f7bad9c3c8,
mail_user_r=0x3f7bad9c3d0,
error_r=0x3f7bad9c430) at mail-storage-service.c:1193
#23 0x000db6f824e9 in client_create_from_input (input=0x3f7bad9c440,
login_client=0xdba270660, fd_in=12, fd_out=12, input_buf=0x3f7bad9c4b0,
error_r=optimized out) at main.c:204
#24 0x000db6f827f7 in login_client_connected (client=0xdba270660,
username=optimized out, extra_fields=optimized out) at main.c:277
#25 0x0386566a97e6 in master_login_auth_finish (client=0xdba270660,
auth_args=optimized out) at master-login.c:209
#26 0x0386566a9b45 in master_login_auth_callback
(auth_args=0xdba264ee8, 

Re: [Dovecot] How to manage email with an ISP restricted mailbox size?

2013-06-26 Thread Robert Schetterer
Am 26.06.2013 12:41, schrieb Tom Atkins:
 Sorry if this is a bit off topic but I'm hoping list members here might
 have some ideas.
 
 Aim: use ISP provided email with restricted inbox size but keep an IMAP
 accessible archive of emails (including 'sent' messages) on a remote server.
 
 Scenario:
 
 - Don't want to run my own SMTP server
 - Have free ISP email with 1Gb mailbox limit and spam filtering that works
 well
 - Have remote server with plenty of disk space
 - Want to use remote server for IMAP access to archive of email to avoid
 1Gb ISP mailbox limit
 
 Options I tried:
 
 1. Use ISP email via IMAP and periodically backup / archive messages to
 remote server with something like mbsync / isync to maildir format. Delete
 old messages on ISP server safe in knowledge they are backed up on my
 server. QUESTION: how to access those archives via IMAP (read only is OK)?
 
 2. Use ISP email for sending messages only. Use Getmail / Fetchmail to move
 messages to remote server and run Dovecot there. I tried using Getmail to
 do this but couldn't figure out how to keep copies of 'Sent' and 'Draft'
 messages if the email client was configured to read via IMAP on one server
 and send via SMTP to another server.
 
 Any thoughts on how best to achieve my aims?

you must not use getmail ( however it should work too ) , you can always
use imapsync

sorry only german but tec details should be understandable anyway

http://sys4.de/de/blog/2013/04/12/abholdienst-fur-mail/

http://sys4.de/de/blog/2013/04/26/mail-migration-mit-imapsync/

 
 Thanks, Tom.
 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


[Dovecot] Dovecot FTS using ElasticSearch

2013-06-26 Thread Darvin Denmian
Hi,

I would like to know if is possible to use ElasticSearch instead of Solr
for FTS.

Regards,

Erick Vitor de Barros.


Re: [Dovecot] Dovecot FTS using ElasticSearch

2013-06-26 Thread Timo Sirainen
On 26.6.2013, at 18.47, Darvin  Denmian darvin.denm...@gmail.com wrote:

 I would like to know if is possible to use ElasticSearch instead of Solr
 for FTS.

Sure, just as soon as someone implements it. Since it has HTTP based API, it 
shouldn't be difficult to implement based on fts-solr code (in v2.2). I don't 
have time for it myself though.



Re: [Dovecot] Dovecot FTS using ElasticSearch

2013-06-26 Thread Darvin Denmian
Thanks!


On Wed, Jun 26, 2013 at 12:52 PM, Timo Sirainen t...@iki.fi wrote:

 On 26.6.2013, at 18.47, Darvin  Denmian darvin.denm...@gmail.com wrote:

  I would like to know if is possible to use ElasticSearch instead of Solr
  for FTS.

 Sure, just as soon as someone implements it. Since it has HTTP based API,
 it shouldn't be difficult to implement based on fts-solr code (in v2.2). I
 don't have time for it myself though.




Re: [Dovecot] Mbox corruption - Inbox beginning with 'FFrom' or 'FrFrom'

2013-06-26 Thread Timo Sirainen
It crashes one specific IMAP/POP3 session, so others are unaffected. The 
potential problems:

 * It might cause the user's mbox to become crashing constantly. so first crash 
- client reconnects - client attempts the same operation - crash again. Then 
again, this might not happen, it depends.

 * The mbox file would probably become slightly more corrupted than normally, 
because it doesn't finish moving data around. No data should get actually lost, 
but some parts could become duplicated (e.g. some headers or even mails, 
possibly causing UID renumbering = redownloading).

So not ideal in production, but shouldn't be too bad either, especially if you 
just wait for the first crash and then immediately switch to the old unpatched 
version.

On 26.6.2013, at 10.21, Dimos Alevizos dalev...@otenet.gr wrote:

 Hi,
 
 I haven't had the time to compile it yet, but a question just occurred.
 Given that it's so rare and we can't reproduce it on a dev server, how safe 
 is this to use on a production server ?
 When you say crash you mean the whole dovecot server or that specific 
 client's child ?
 
 D.
 
  Original Message 
 Subject: Re: [Dovecot] Mbox corruption - Inbox beginning with 'FFrom' or 
 'FrFrom'
 From: dalevizo dalev...@otenet.gr
 To: Timo Sirainen t...@iki.fi
 CC: dovecot@dovecot.org, Dimitris Paouris dp...@otenet.gr
 Date: 24/06/2013 01:41 μμ
 
 Thanx I'll try the patch as soon as possible and I'll let you know.
 It is indeed very rare. We're only seeing 4-5 corruptions in about 13
 million logins per day.
 I've been trying to convince our design team that we should move to
 maildir, but the truth is that it's quite a change, and we're way too
 busy to deal with everything else AND a migration from mbox to maildir.
 
 D.
 
 On Mon 24/06/2013 13:16, Timo Sirainen wrote:
 On 19.6.2013, at 16.00, Dimos Alevizos dalev...@otenet.gr wrote:
 
 we're having some problems with our dovecot setup.
 I've seen similar problems in the mailing list some years ago but alas 
 wasn't able to find a solution.
 
 Our setup is as follows :
 An MX farm (postfix) sends mails via LMTP to a director farm (dovecot 
 2.1.12) which proxies pop3/imap/lmtp traffic to a dovecot farm (dovecot 
 2.1.16).
 All mailboxes and indexes are on NFS and all servers are Centos.
 
 The problem is that at times we see mailboxes (all of them are in mbox 
 format) beginning with FFrom or FrFrom and of course dovecot says it's not 
 a valid mbox file.
 
 This is quite an old bug, but it happens rarely enough that I haven't been 
 able to reproduce and fix it. Actually people hadn't complained about it 
 for a long time now, so I had assumed it had somehow gotten fixed already.
 
 With the attached debug patch it should crash instead of (completely) 
 corrupting the mbox file. Debugging the resulting core file with gdb could 
 be useful in figuring this out.
 
 Although I wouldn't recommend mbox format for any big installation anyway..
 
 
 
 
 
 
 



[Dovecot] Dovecot-2.2.4 compiled error‏

2013-06-26 Thread LauJacky






I compiled dovecot error, google did not find  a solution.  and I don't 
understand the code, how can i do Compiled dovecot-2.2.4 in  Linux OLinux 
2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 
GNU/Linux  environment variables : #CPPFLAGS=-I/usr/include/openssl 
LDFLAGS=-L/usr/lib/openssl ./configure --with-ldap  #makegcc 
-DHAVE_CONFIG_H -I. -I../..  -I../../src/lib -I../../src/lib-settings 
-I../../src/lib-master -DPKG_RUNDIR=\/usr/local/var/run/dovecot\ 
-DPKG_STATEDIR=\/usr/local/var/lib/dovecot\ 
-DPKG_LIBEXECDIR=\/usr/local/libexec/dovecot\ -DBINDIR=\/usr/local/bin\ 
-I/usr/include/openssl  -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes 
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 
-Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 
-I/usr/kerberos/include-MT capabilities-posix.o -MD -MP -MF 
.deps/capabilities-posix.Tpo -c -o capabilities-posix.o capabilities-posix.cIn 
file included from /usr/include/sys/capability.h:34, from 
capabilities-posix.c:8:/usr/include/linux/capability.h:73: error: expected 
specifier-qualifier-list before ‘__le32’make[3]: *** [capabilities-posix.o] 
Error 1make[3]: Leaving directory `/home/ldf/dovecot-2.2.4/src/master'make[2]: 
*** [all-recursive] Error 1make[2]: Leaving directory 
`/home/ldf/dovecot-2.2.4/src'make[1]: *** [all-recursive] Error 1make[1]: 
Leaving directory `/home/ldf/dovecot-2.2.4'make: *** [all] Error 2  Best 
regardjacky

  

[Dovecot] NTLM authentication with dovecot.

2013-06-26 Thread Maria Jose Yañez Dacosta
Hi!,

I'm trying to use single sign on from Windows.
Install dovecot on CentOS 6. The host name is prueba-mail.
I'm using version 2.0.9 because the latest 64-bit gives errors.
But first I wanted to test whether user validation works with telnet.
When I try to try telnet prueba-mail imap and try to a1 LOGIN MyUsername
MyPassword, I get the following error:prueba-mail dovecot: auth:
pam(pepe,190.108.101.120): unknown user.
I show my setup and I appreciate even the minimal support.

( dovecot --version )

dovecot --version

( dovecot -n  )--

# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-358.6.2.el6.x86_64 x86_64 CentOS release 6.4 (Final)
auth_debug = yes
auth_mechanisms = plain login ntlm
auth_use_winbind = yes
auth_username_format = %n
disable_plaintext_auth = no
mbox_write_locks = fcntl
passdb {
  driver = pam
}
protocols = imap pop3
ssl = no
userdb {
  args = uid=1 gid=1 home=/mail/%d/%n
  driver = static
}

(  wbinfo -t  )--

checking the trust secret for domain FNR via RPC calls succeeded

(  wbinfo -u  )--

list all users

(  wbinfo -g  )--

list all groups

(  /usr/bin/ntlm_auth --username=pepe  )-

password:
NT_STATUS_OK: Success (0x0)

(   tail -n 500 -f /var/log/maillog )-
Jun 26 14:02:04 prueba-mail dovecot: master: Dovecot v2.0.9 starting up
(core dumps disabled)
Jun 26 14:03:22 prueba-mail dovecot: auth: Debug: Loading modules from
directory: /usr/lib64/dovecot/auth
Jun 26 14:03:22 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Jun 26 14:03:22 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Jun 26 14:03:22 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libmech_gssapi.so
Jun 26 14:03:22 prueba-mail dovecot: auth: Debug: auth client connected
(pid=1691)
Jun 26 14:03:39 prueba-mail dovecot: auth: Debug: client in:
AUTH#0111#011PLAIN#011service=imap#011lip=190.108.101.200#011rip=190.108.101.120#011lport=143#011rport=38118#011resp=hidden
Jun 26 14:03:39 prueba-mail dovecot: auth: Debug: Loading modules from
directory: /usr/lib64/dovecot/auth
Jun 26 14:03:39 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Jun 26 14:03:39 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Jun 26 14:03:39 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libmech_gssapi.so
Jun 26 14:03:39 prueba-mail dovecot: auth: Debug:
pam(pepe,190.108.101.120): lookup service=dovecot
Jun 26 14:03:39 prueba-mail dovecot: auth: Debug:
pam(pepe,190.108.101.120): #1/1 style=1 msg=Password:
Jun 26 14:03:42 prueba-mail dovecot: auth: pam(pepe,190.108.101.120):
unknown user
Jun 26 14:03:44 prueba-mail dovecot: auth: Debug: client out:
FAIL#0111#011user=pepe
Jun 26 14:06:22 prueba-mail dovecot: imap-login: Disconnected: Inactivity
(auth failed, 1 attempts): user=pepe, method=PLAIN, rip=190.108.101.120,
lip=190.108.101.200

-- 
Maria José


[Dovecot] Passdb + single sing on + NTLM + Thunderbird.

2013-06-26 Thread Maria Jose Yañez Dacosta
Hi!,

I want to use single sign on from Windows with Thunderbird or Outlook using
NTLM.
Which should be placed in the configuration file for passdb?.
Currently I have:

passdb {
  driver = pam
}

But it generates the following error when trying to check mail:
dovecot: auth: pam (pepe, 190 108 101 120): unknown user
If I remove imap passdb just does not work and I add at the end of this
mail the log.
Thank :)

( dovecot -n  )--

# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-358.6.2.el6.x86_64 x86_64 CentOS release 6.4 (Final)
auth_debug = yes
auth_mechanisms = plain login ntlm
auth_use_winbind = yes
auth_username_format = %n
disable_plaintext_auth = no
mbox_write_locks = fcntl
passdb {
  driver = pam
}
protocols = imap pop3
ssl = no
userdb {
  args = uid=1 gid=1 home=/mail/%d/%n
  driver = static
}

(  wbinfo -t  )--

checking the trust secret for domain FNR via RPC calls succeeded

(  wbinfo -u  )--

list all users

(  wbinfo -g  )--

list all groups

(  /usr/bin/ntlm_auth --username=pepe  )-

password:
NT_STATUS_OK: Success (0x0)

(   tail -n 500 -f /var/log/maillog )-

Jun 26 14:58:41 prueba-mail dovecot: master: Dovecot v2.0.9 starting up
(core dumps disabled)
Jun 26 14:59:00 prueba-mail dovecot: auth: Debug: Loading modules from
directory: /usr/lib64/dovecot/auth
Jun 26 14:59:00 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Jun 26 14:59:00 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Jun 26 14:59:00 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libmech_gssapi.so
Jun 26 14:59:00 prueba-mail dovecot: auth: Fatal: No passdbs specified in
configuration file. LOGIN mechanism needs one
Jun 26 14:59:00 prueba-mail dovecot: master: Error: service(auth): command
startup failed, throttling
Jun 26 14:59:35 prueba-mail dovecot: imap-login: Error: Timeout waiting for
handshake from auth server. my pid=1734, input bytes=0
Jun 26 15:00:00 prueba-mail dovecot: auth: Debug: Loading modules from
directory: /usr/lib64/dovecot/auth
Jun 26 15:00:00 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Jun 26 15:00:00 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Jun 26 15:00:00 prueba-mail dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libmech_gssapi.so
Jun 26 15:00:00 prueba-mail dovecot: auth: Fatal: No passdbs specified in
configuration file. LOGIN mechanism needs one
Jun 26 15:00:00 prueba-mail dovecot: master: Error: service(auth): command
startup failed, throttling
Jun 26 15:00:30 prueba-mail dovecot: imap-login: Error: Timeout waiting for
handshake from auth server. my pid=1734, input bytes=0

-- 
Maria José


[Dovecot] v2.1.17 released

2013-06-26 Thread Timo Sirainen
http://dovecot.org/releases/2.1/dovecot-2.1.17.tar.gz
http://dovecot.org/releases/2.1/dovecot-2.1.17.tar.gz.sig

Hopefully among the last v2.1.x releases.

+ zlib: Keep the last read mail uncompressed in a temporary file.
  This significantly improves performance when IMAP client does
  small partial fetches for a large mail.
+ acl: Optionally get default ACL's for private/shared namespaces
  from user's INBOX (plugin { acl_defaults_from_inbox = yes } 
- Case-insensitive unicode character comparisons weren't all working
  as they should.
- maildir: Fixed handling over 26 keywords in a mailbox.
- auth: Don't crash in non-PLAIN/LOGIN auth mechanism if master user
  login is attempted without any master passdbs configured.




Re: [Dovecot] Dovecot-2.2.4 compiled error‏

2013-06-26 Thread LauJacky
[root@OLinux dovecot-2.2.4]# grep __le32 /usr/include/linux/types.h
 typedef __u32 __bitwise __le32;
 [root@CentOS5 ~]# cd /usr/include
 [root@CentOS5 include]# grep -r #define _LINUX_TYPES_H *
 linux/types.h:#define _LINUX_TYPES_H
 sys/capability.h:#define _LINUX_TYPES_H
 The root problem is sys/capability.h prevents linux/types.h from being 
 included, so to solve this issue you always need to include 
 linux/types.h, one way or another.
 
 From: jacky@live.com
 To: dovecot@dovecot.org
 Date: Wed, 26 Jun 2013 17:27:54 +
 Subject: [Dovecot] Dovecot-2.2.4 compiled error‏
 
 
 
 
 
 
 
 I compiled dovecot error, google did not find  a solution.  and I don't 
 understand the code, how can i do Compiled dovecot-2.2.4 in  Linux OLinux 
 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 
 x86_64 GNU/Linux  environment variables : #CPPFLAGS=-I/usr/include/openssl 
 LDFLAGS=-L/usr/lib/openssl ./configure --with-ldap  #makegcc 
 -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib -I../../src/lib-settings 
 -I../../src/lib-master -DPKG_RUNDIR=\/usr/local/var/run/dovecot\ 
 -DPKG_STATEDIR=\/usr/local/var/lib/dovecot\ 
 -DPKG_LIBEXECDIR=\/usr/local/libexec/dovecot\ 
 -DBINDIR=\/usr/local/bin\ -I/usr/include/openssl  -std=gnu99 -g -O2 -Wall 
 -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
 -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
 -Wstrict-aliasing=2 -I/usr/kerberos/include-MT capabilities-posix.o -MD 
 -MP -MF .deps/capabilities-posix.Tpo -c -o capabilities-posix.o 
 capabilities-posix.cIn file included from /usr/include/sys/capability.h:34,   
   from capabilities-posix.c:8:/usr/include/linux/capability.h:73: 
 error: expected specifier-qualifier-list before ‘__le32’make[3]: *** 
 [capabilities-posix.o] Error 1make[3]: Leaving directory 
 `/home/ldf/dovecot-2.2.4/src/master'make[2]: *** [all-recursive] Error 
 1make[2]: Leaving directory `/home/ldf/dovecot-2.2.4/src'make[1]: *** 
 [all-recursive] Error 1make[1]: Leaving directory 
 `/home/ldf/dovecot-2.2.4'make: *** [all] Error 2  Best regardjacky
 
 
  

Re: [Dovecot] Passdb + single sing on + NTLM + Thunderbird.

2013-06-26 Thread Stan Hoeppner
On 6/26/2013 1:17 PM, Maria Jose Yañez Dacosta wrote:

 I want to use single sign on from Windows with Thunderbird or Outlook using
 NTLM.

http://wiki2.dovecot.org/Authentication/Kerberos

-- 
Stan



[Dovecot] NTLM authentication mechanism with Postfix

2013-06-26 Thread Matthew Larsen
I'm working on getting authentication for Postfix smtpd clients
working with Dovecot.  I've got both plain text and GSSAPI mechanisms
working.  Winbind also works for shell access and the command line
test work fine.

If I can get NTLM authentication working I can use Postfix as a drop
in replacement for a MS MTA I want get rid of.

I'm hoping the community might be able to offer some insight into what
I'm missing to get NTLM authentication working with Dovecot and
Postfix.  Something related to winbind I suspect.


When I use the NTLM mechanism I get this in my maillog file.  Nothing
seems to show up in the winbind files for this.

  log file from NTLM mechanism used 

Jun 26 17:02:53 SBSMTPNV05 postfix/smtpd[2221]: connect from
nvit01b.mydomain.com[10.20.2.0]
Jun 26 17:02:53 SBSMTPNV05 dovecot: auth: Debug: client in:
AUTH#0112#011NTLM#011service=smtp#011nologin#011lip=10.20.4.12#011rip=10.20.2.0#011resp=TlRM...A=
Jun 26 17:02:53 SBSMTPNV05 dovecot: auth: Debug: client out:
CONT#0112#011TlRMA
Jun 26 17:02:53 SBSMTPNV05 dovecot: auth: Debug: client in:
CONT#0112#011TlRMQ=
Jun 26 17:02:53 SBSMTPNV05 dovecot: auth: winbind(?,10.20.2.0): user
not authenticated: NT_STATUS_UNSUCCESSFUL
Jun 26 17:02:55 SBSMTPNV05 postfix/smtpd[2221]: warning:
nvit01b.mydomain.com[10.20.2.0]: SASL NTLM authentication failed:
TlRMA
Jun 26 17:02:55 SBSMTPNV05 dovecot: auth: Debug: client out: FAIL#0112
Jun 26 17:02:59 SBSMTPNV05 postfix/smtpd[2221]: disconnect from
nvit01b.mydomain.com[10.20.2.0]

--


 log file from GSSAPI mechanism used -

Jun 26 17:02:08 SBSMTPNV05 postfix/smtpd[2221]: connect from
nvit01b.mydomain.com[10.20.2.0]
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: auth client connected
(pid=2221)
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: client in:
AUTH#0111#011GSSAPI#011service=smtp#011nologin#011lip=10.20.4.12#011rip=10.20.2.0#011resp=YIIN
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: g==
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: gssapi(?,10.20.2.0):
Obtaining credentials for smtp@
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug:
gssapi(myusern...@mydomain.com,10.20.2.0): security context state
completed.
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: client out:
CONT#0111#011YIGVBE=
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: client in: CONT#0111#011
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug:
gssapi(myusern...@mydomain.com,10.20.2.0): Negotiated security layer
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: client out:
CONT#0111#011BQQF/wM=
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: client in:
CONT#0111#011BQQE/wu
Jun 26 17:02:08 SBSMTPNV05 dovecot: auth: Debug: client out:
OK#0111#011user=myusername
Jun 26 17:02:08 SBSMTPNV05 postfix/smtpd[2221]: AE80A80592:
client=nvit01b.mydomain.com[10.20.2.0], sasl_method=GSSAPI,
sasl_username=myusername
Jun 26 17:02:08 SBSMTPNV05 postfix/cleanup[2219]: AE80A80592:
message-id=51cb8100.1010...@example.com
Jun 26 17:02:08 SBSMTPNV05 postfix/qmgr[1999]: AE80A80592:
from=matt...@example.com, size=2178, nrcpt=1 (queue active)
Jun 26 17:02:08 SBSMTPNV05 postfix/smtpd[2221]: disconnect from
nvit01b.mydomain.com[10.20.2.0]
Jun 26 17:02:09 SBSMTPNV05 postfix/smtp[2220]: AE80A80592:
to=uteg...@gmail.com,
relay=gmail-smtp-in.l.google.com[74.125.129.27]:25, delay=0.93,
delays=0.09/0/0.15/0.69, dsn=2.0.0, status=sent (250 2.0.0 OK
1372291329 y9si419401pay.83 - gsmtp)
Jun 26 17:02:09 SBSMTPNV05 postfix/qmgr[1999]: AE80A80592: removed

--


 log file from plain text mechanism -

Jun 26 17:01:08 SBSMTPNV05 postfix/smtpd[2209]: connect from
nvit01b.mydomain.com[10.20.2.0]
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Loading modules from
directory: /usr/lib64/dovecot/auth
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libmech_gssapi.so
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: auth client connected
(pid=2209)
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: client in:
AUTH#0111#011PLAIN#011service=smtp#011nologin#011lip=10.20.4.12#011rip=10.20.2.0#011secured#011resp=AG1sYXJzZW4ASWRvbnR3YW50Mg==
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Loading modules from
directory: /usr/lib64/dovecot/auth
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libmech_gssapi.so
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: Debug:
pam(myusername,10.20.2.0): lookup service=dovecot
Jun 26 17:01:08 SBSMTPNV05 dovecot: auth: 

Re: [Dovecot] Dovecot FTS using ElasticSearch

2013-06-26 Thread Tim Groeneveld

- Original Message -
 I would like to know if is possible to use ElasticSearch instead of
 Solr for FTS.

I have started work on an ElasticSearch implementation based on fts-solr.

There is still around 20-30 hours more work for me to do until it is complete
(and I need to hunt down the reason for a random crash that happens every
now and then) but I would be more then happy to share the code with you
when I am done if you are interested?

Regards,
Tim


[Dovecot] Changing location of vmail folder, mail started downloading again

2013-06-26 Thread Manoj Singh
Dear Team,



Due to some reasons I need to move vmail folder to another drive. I tried
to do rsync  I was able to copy all the files and structure with same old
date and time stamp.
I made symbolic link and new mail flow was fine but problem is, all the
mail boxes started downloading old mails again .

Is there any way where I can copy location of the folder without this
problem.



Please find the below details.





Dovecot Version

===

dovecot-pigeonhole-0.2.6-21.el6.x86_64

dovecot-2.0.18-1_134.el6.x86_64

dovecot-managesieve-0.2.6-21.el6.x86_64



# dovecot –n



# 2.0.18: /etc/dovecot/dovecot.conf

# OS: Linux 2.6.32-279.el6.x86_64 x86_64 CentOS release 6.3 (Final)

auth_mechanisms = PLAIN LOGIN

dict {

  acl = mysql:/etc/dovecot/dovecot-share-folder.conf

  expire = db:/var/lib/dovecot/expire/expire.db

  quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf

}

last_valid_uid = 500

listen = *

log_path = /var/log/dovecot.log

mail_gid = 500

mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/

mail_uid = 500

managesieve_notify_capability = mailto

managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date ihave

namespace {

  inbox = yes

  location =

  prefix =

  separator = /

  type = private

}

namespace {

  list = children

  location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u

  prefix = Shared/%%u/

  separator = /

  subscriptions = yes

  type = shared

}

passdb {

  args = /etc/dovecot/dovecot-ldap.conf

  driver = ldap

}

plugin {

  acl = vfile

  acl_shared_dict = proxy::acl

  auth_socket_path = /var/run/dovecot/auth-master

  autocreate = INBOX

  autocreate2 = Sent

  autocreate3 = Trash

  autocreate4 = Drafts

  autocreate5 = Junk

  autosubscribe = INBOX

  autosubscribe2 = Sent

  autosubscribe3 = Trash

  autosubscribe4 = Drafts

  autosubscribe5 = Junk

  expire = Trash 7 Trash/* 7 Junk 30

  expire_dict = proxy::expire

  quota = dict:user::proxy::quotadict

  quota_rule = *:storage=1G

  quota_warning = storage=85%% quota-warning 85 %u

  quota_warning2 = storage=90%% quota-warning 90 %u

  quota_warning3 = storage=95%% quota-warning 95 %u

  sieve = /%Lh/sieve/dovecot.sieve

  sieve_dir = /%Lh/sieve

  sieve_global_dir = /var/vmail/sieve

  sieve_global_path = /var/vmail/sieve/dovecot.sieve

}

protocols = pop3 imap sieve

service auth {

  unix_listener /var/spool/postfix/dovecot-auth {

group = postfix

mode = 0666

user = postfix

  }

  unix_listener auth-master {

group = vmail

mode = 0666

user = vmail

  }

  unix_listener auth-userdb {

group = vmail

mode = 0660

user = vmail

  }

}

service dict {

  unix_listener dict {

group = vmail

mode = 0660

user = vmail

  }

}

service quota-warning {

  executable = script /usr/local/bin/dovecot-quota-warning.sh

  unix_listener quota-warning {

group = vmail

mode = 0660

user = vmail

  }

}

ssl = required

ssl_cert = /etc/pki/tls/certs/iRedMail_CA.pem

ssl_key = /etc/pki/tls/private/iRedMail.key

userdb {

  args = /etc/dovecot/dovecot-ldap.conf

  driver = ldap

}

protocol lda {

  auth_socket_path = /var/run/dovecot/auth-master

  lda_mailbox_autocreate = yes

  log_path = /var/log/sieve.log

  mail_plugins = quota sieve autocreate

  postmaster_address = root

}

protocol imap {

  imap_client_workarounds = tb-extra-mailbox-sep

  mail_plugins = quota imap_quota autocreate

}

protocol pop3 {

  mail_plugins = quota

  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

  pop3_uidl_format = %08Xu%08Xv

}





Thanks in advance,

Manoj Singh.