Connection reset by peer query

2016-10-04 Thread voytek
One of my user having trouble 'synchronizing' his mobile with his mailbox

looking at logs I can see like[1]:

searching around, I found some posts suggesting index corruption??
what can or what should I do ?

can I force re-index ? delete index files ? which ones ?

using outlook on Win7, if relevant


[1]
Oct 05 11:24:32 imap(a...@aaa.com.au): Info: Connection closed: Connection
reset by peer in=238 out=1892993

# grep aaa@aaa /var/log/dovecot.log | grep reset | wc
 10 1301117
# grep aaa@aaa /var/log/dovecot.log.1 | grep reset | wc
 30 4063582


Dovecot + SAMBA4

2016-10-04 Thread doys
hello,

I'm new to this forum:) I couldn't found any topic with the same problem and
I'm sorry for the inconvenience if there is already one.

I'd like to use Dovecot with an authentification from Samba4 via Kerberos.
I've followed this procedure :
http://wiki2.dovecot.org/Authentication/Kerberos but I cannot connect to the
domain.

I have not met any difficulty with Samba ; I have others servers that are
connected to the samba4 domain via samba/winbind

wbinfo -u / -g et getent passwod / group works fine.

I don't find the error and the logs are fruitless :

Oct 4 09:03:46 mail dovecot: imap-login: Aborted login (no auth attempts
in 0 secs): user=<>, rip=MY_IP, lip=IP_SERVER, session=<4ilrqQQ+2AAKaBFq>
Oct 4 09:03:46 mail dovecot: imap-login: Aborted login (no auth attempts
in 0 secs): user=<>, rip=MY_IP, lip=IP_SERVER, session=<7SprqQQ+2QAKaBFq>
Oct 4 09:03:55 mail dovecot: imap-login: Disconnected (no auth attempts
in 0 secs): user=<>, rip=MY_IP, lip=IP_SERVER, session=
Oct 4 09:03:55 mail dovecot: imap-login: Disconnected (no auth attempts
in 0 secs): user=<>, rip=MY_IP, lip=IP_SERVER, session=



This is my docevot -n

# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.6
auth_default_realm = DOMAIN.COM
auth_gssapi_hostname = $ALL
auth_mechanisms = gssapi
auth_realms = DOMAIN.COM
auth_username_translation = /@
mail_location = maildir:~/Maildir
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
plugin {
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
}
protocols = " imap pop3"
ssl = no
userdb {
driver = static
}



I wish to use maildir and I wish not to have multidomain. The server is a
Debian 8 with compilated samba 4.4.5 + dovecot 2.2.13 (deb file).

i dovecot-core - secure POP3/IMAP server - core files
i dovecot-gssapi - secure POP3/IMAP server - GSSAPI support
i dovecot-imapd - secure POP3/IMAP server - IMAP daemon
i dovecot-pop3d - secure POP3/IMAP server - POP3 daemon
i dovecot-sieve - secure POP3/IMAP server - Sieve filters su



And this is what telnet returns :

telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE LOGINDISABLED AUTH=GSSAPI] Dovecot ready.



Can you give me a hint, please ? Thank you !

doys
 
Messages: 1
Inscrit le: 2016-10-04 10:31

Haut




--
View this message in context: 
http://dovecot.2317879.n4.nabble.com/Dovecot-SAMBA4-tp57421.html
Sent from the Dovecot mailing list archive at Nabble.com.


Re: Dovecot + SAN with dedup+compression

2016-10-04 Thread Sven Hartge
María Arrea  wrote:

> We have a big Dovecot Server (over 20 TB of mail, 40K users, over 30K
> iops) and we are evaluating a new SAN Array. We have competitive
> proposals from Pure Storage (All Flash) , HP 3Par (Hybrid), NetApp
> FaaS (Hybrid) & EMC Unity (Hybrid). We rely in mdbox+zlib for main
> storage and mdbox+lzma for secondary storage, does anybody in the list
> have experience with SAN-based deduplication/compression?

My experiences and experiments with NetApp and Dovecot mdbox show:

a) Compression is better done in Dovecot, don't enable the compression
   on the filer. 

b) Mail in Maildir or mdbox format does not deduplicate really well on
   the filer, expect to get about 10% to 15% savings. 
   
   It does not hurt the performance if you turn it on (at least on
   NetApp), but you won't get the big savings you get with
   Exchange-Databases. (I suspect this is because of the layout of the
   mails inside mdbox on disk.)

   If you really need to deduplicate, then use the builtin SIS from
   Dovecot.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.


Re: shared folders

2016-10-04 Thread Scherff

Hi Steffen,

thanks.

The ACLs seems ok. Each share generates a dovecot-acl file in the folder 
with a text e.g. user=n...@domain.de lr


How to check ACL for a share?  doveadm acl debug -u u...@domain.de 
shared shows Can't open mailbox shared: Mailbox doesn't exist: shared



namespace now has name "share". Debug shows:

Debug: Namespace share: type=shared, prefix=shared/%u/, sep=/, inbox=no, 
hidden=no, list=children, subscriptions=yes 
location=maildir:/var/vmail/mailboxes/%d/%n/mail:LAYOUT=fs:INDEX=/var/vmail/mailboxes/%d/%n/mail/shared/%u:CONTROL=/var/vmail/mailboxes/DOMAIN/USER/shared/%u


Changing location with :LAYOUT=fs   - no effect




Am 04.10.2016 um 14:03 schrieb Steffen Kaiser:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 3 Oct 2016, Scherff wrote:

you do not write, if you get errors in the log. Enable mail_debug and 
see what Dovecot thinks about the location of mailboxes etc.


Also, use doveadm acl debug -u to verify the ACLs.


mail_home = /var/vmail/mailboxes/%d/%n
mail_location = maildir:~/mail:LAYOUT=fs



namespace {


  ^^ maybe this namespace section is missing a name


 hidden = no
 ignore_on_failure = no
 list = children
 location = 
maildir:%%h/mail:INDEX=%h/mail/shared/%%u:CONTROL=%h/mail/shared/%%u


This location does not match mail_location above, it is missing LAYOUT=fs


 prefix = shared/%%u/
 separator = /
 subscriptions = yes
 type = shared
}


- -- Steffen Kaiser
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBV/Oafnz1H7kL/d9rAQKDlgf8CjTbLVHs9Lfof4vfoHyCXgusB//39+rj
UEl/fsP+4NkWr8naU5Rb4RU+7/LfhhCGPC5H7VeXBNCO+a+VxzJEzncNOdMAaQt/
AUYz9oHnPO/NptVuCV/LbYKaULE8KsXQWUr1BYScmt8F91KDIO6rpkuwaMaA+p+s
XRkh10+ucnPKO1cUv6yBiBu/citff2uQdzX4+jr66djS5DXWZgOh/XsZDGS868Y1
Id88Kh0ZudpFBhEAQbrwbUCbgVx5O+7O9AC9s4RKyMGqCKS7DVIKM2VvCBQgvaad
ApHpTkt6MegAMY0+BW9bsxpdb/lmhfCFbwyexVSwEJRXc4qS0qdE4Q==
=oC93
-END PGP SIGNATURE-


Re: shared folders

2016-10-04 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 3 Oct 2016, Scherff wrote:

you do not write, if you get errors in the log. Enable mail_debug and see 
what Dovecot thinks about the location of mailboxes etc.


Also, use doveadm acl debug -u to verify the ACLs.


mail_home = /var/vmail/mailboxes/%d/%n
mail_location = maildir:~/mail:LAYOUT=fs



namespace {


  ^^ maybe this namespace section is missing a name


 hidden = no
 ignore_on_failure = no
 list = children
 location = maildir:%%h/mail:INDEX=%h/mail/shared/%%u:CONTROL=%h/mail/shared/%%u


This location does not match mail_location above, it is missing LAYOUT=fs


 prefix = shared/%%u/
 separator = /
 subscriptions = yes
 type = shared
}


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBV/Oafnz1H7kL/d9rAQKDlgf8CjTbLVHs9Lfof4vfoHyCXgusB//39+rj
UEl/fsP+4NkWr8naU5Rb4RU+7/LfhhCGPC5H7VeXBNCO+a+VxzJEzncNOdMAaQt/
AUYz9oHnPO/NptVuCV/LbYKaULE8KsXQWUr1BYScmt8F91KDIO6rpkuwaMaA+p+s
XRkh10+ucnPKO1cUv6yBiBu/citff2uQdzX4+jr66djS5DXWZgOh/XsZDGS868Y1
Id88Kh0ZudpFBhEAQbrwbUCbgVx5O+7O9AC9s4RKyMGqCKS7DVIKM2VvCBQgvaad
ApHpTkt6MegAMY0+BW9bsxpdb/lmhfCFbwyexVSwEJRXc4qS0qdE4Q==
=oC93
-END PGP SIGNATURE-


Changing Dovecot's format from Maildir to mdbox

2016-10-04 Thread Kristopher Joyce

Hello,

I am trying to change Dovecot's email format from Maildir to mdbox. I
have changed Maildir to mdbox in Mail_location from:
maildir:/var/vmail/%d/%n to: mdbox:/var/vmail/%d/%n. Nothing seems to
happen after I restart Dovecot. The users are virtual users and not
local users. Is there something I am missing?

Thanks

Kris



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Dovecot + SAN with dedup+compression

2016-10-04 Thread María Arrea

Hello

We have a big Dovecot Server (over 20 TB of mail, 40K users, over 
30K iops) and we are evaluating a new SAN Array. We have competitive 
proposals from Pure Storage (All Flash) , HP 3Par (Hybrid), NetApp FaaS 
(Hybrid) & EMC Unity (Hybrid). We rely in mdbox+zlib for main storage 
and mdbox+lzma for secondary storage, does anybody in the list have 
experience with SAN-based deduplication/compression?

Regards
Maria.