Re: lmtp-Eroor

2017-11-26 Thread Aki Tuomi


On 27.11.2017 09:29, Jakob Schürz wrote:
> Am 2017-11-27 um 07:45 schrieb Aki Tuomi:
>>
>> On 27.11.2017 08:37, Jakob Schürz wrote:
>>> Hi!
>>>
>>>
>>> Am 2017-11-27 um 01:35 schrieb Stephan Bosch:
 Op 11/27/2017 om 12:53 AM schreef Jakob Schürz:
> Hi There!
>
> I can not find anything about this message:
>
> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
> UID=1 because: header Message-ID (Cache file is unusable)
> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
> UID=1 because: virtual size (Cache file is unusable)
 These are debug messages. The incoming LMTP DATA stream is a raw
 message, which has no cache (hence 'Cache file is unusable'). This is
 normal.
>>> Ok. I did a lot of debugging the last weeks for another bug. But I've
>>> never seen this message before. So i thought it is new. But obviously I
>>> haven't seen this, but it was there.
>> It just means that the cache file wasn't available, because it had been
>> removed. It's not a serious problem.
> Ok Thank you.
>
>> There has been significant amount of fixes to virtual plugin after
>> 2.2.27. It's possible it's fixed, I was not able to directly confirm
>> this, would need to have your virtual folder configuration to try.
> INBOX/Sent is not a virtual folder. But i have several virtual folders.
>
> Do you need the dovecot-virtual files from my folders?
>
> /var/mail/virtual: # tree
> .
> ├── AKTUELL
> │   └── dovecot-virtual
> ├── Archives
> │   └── dovecot-virtual
> ├── dovecot-acl-list
> ├── Drafts
> │   └── dovecot-virtual
> ├── GINBOX
> │   └── dovecot-virtual
> ├── Markierte
> │   └── dovecot-virtual
> ├── Neue
> │   └── dovecot-virtual
> ├── Sent
> │   └── dovecot-virtual
> ├── Trash
> │   └── dovecot-virtual
> └── Ungelesene
> └── dovecot-virtual
>
> cat ./GINBOX/dovecot-virtual
> !Real/Alle
>  or all younger 31536000 inthread refs x-mailbox INBOX
> INBOX/*
>  flagged
>
> cat ./Neue/dovecot-virtual
> Real/Alle
>  recent unseen
>
> cat ./Markierte/dovecot-virtual
> Real/Alle
>  flagged
>
> cat ./Ungelesene/dovecot-virtual
> Real/Alle
>  unseen
>
> cat ./Sent/dovecot-virtual
> !INBOX/Sent
> INBOX/Sent$*
>  all
>
> cat ./Drafts/dovecot-virtual
> !INBOX/Drafts
> INBOX/Drafts$*
>  all
>
> cat ./Trash/dovecot-virtual
> !INBOX/Trash
> INBOX/Trash$*
>  all
>
> cat ./AKTUELL/dovecot-virtual
> Real/Alle
>  inthread refs younger 2592000
>
> cat ./Archives/dovecot-virtual
> !INBOX/Archives
> INBOX/Archives$*
>  all
>
> /var/mail/real: # tree
> .
> ├── Alle
> │   └── dovecot-virtual
> └── dovecot-acl-list
> cat ./Alle/dovecot-virtual
> !INBOX
> INBOX/*
> -INBOX/Trash
> -INBOX/Trash$*
> -INBOX/Archives
> -INBOX/Archives$*
> -INBOX/Drafts
> -INBOX/Drafts$*
> -INBOX/Junk
> -INBOX/Junk$*
> -INBOX/SYSTEM
> -INBOX/SYSTEM$*
>  all
>
>
> The definition of this two namespaces is in my first mail.
>
> Do you need more?
>
> Jakob
>
>
>
>

The problem, however, seems to affect some virtual folder. Do you have
idea how to reproduce this issue? Can you try causing it?

Aki



Re: lmtp-Eroor

2017-11-26 Thread Jakob Schürz
Am 2017-11-27 um 07:45 schrieb Aki Tuomi:
> 
> 
> On 27.11.2017 08:37, Jakob Schürz wrote:
>> Hi!
>>
>>
>> Am 2017-11-27 um 01:35 schrieb Stephan Bosch:
>>> Op 11/27/2017 om 12:53 AM schreef Jakob Schürz:
 Hi There!

 I can not find anything about this message:

 dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
 UID=1 because: header Message-ID (Cache file is unusable)
 dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
 UID=1 because: virtual size (Cache file is unusable)
>>> These are debug messages. The incoming LMTP DATA stream is a raw
>>> message, which has no cache (hence 'Cache file is unusable'). This is
>>> normal.
>> Ok. I did a lot of debugging the last weeks for another bug. But I've
>> never seen this message before. So i thought it is new. But obviously I
>> haven't seen this, but it was there.
> 
> It just means that the cache file wasn't available, because it had been
> removed. It's not a serious problem.

Ok Thank you.

> There has been significant amount of fixes to virtual plugin after
> 2.2.27. It's possible it's fixed, I was not able to directly confirm
> this, would need to have your virtual folder configuration to try.

INBOX/Sent is not a virtual folder. But i have several virtual folders.

Do you need the dovecot-virtual files from my folders?

/var/mail/virtual: # tree
.
├── AKTUELL
│   └── dovecot-virtual
├── Archives
│   └── dovecot-virtual
├── dovecot-acl-list
├── Drafts
│   └── dovecot-virtual
├── GINBOX
│   └── dovecot-virtual
├── Markierte
│   └── dovecot-virtual
├── Neue
│   └── dovecot-virtual
├── Sent
│   └── dovecot-virtual
├── Trash
│   └── dovecot-virtual
└── Ungelesene
└── dovecot-virtual

cat ./GINBOX/dovecot-virtual
!Real/Alle
 or all younger 31536000 inthread refs x-mailbox INBOX
INBOX/*
 flagged

cat ./Neue/dovecot-virtual
Real/Alle
 recent unseen

cat ./Markierte/dovecot-virtual
Real/Alle
 flagged

cat ./Ungelesene/dovecot-virtual
Real/Alle
 unseen

cat ./Sent/dovecot-virtual
!INBOX/Sent
INBOX/Sent$*
 all

cat ./Drafts/dovecot-virtual
!INBOX/Drafts
INBOX/Drafts$*
 all

cat ./Trash/dovecot-virtual
!INBOX/Trash
INBOX/Trash$*
 all

cat ./AKTUELL/dovecot-virtual
Real/Alle
 inthread refs younger 2592000

cat ./Archives/dovecot-virtual
!INBOX/Archives
INBOX/Archives$*
 all

/var/mail/real: # tree
.
├── Alle
│   └── dovecot-virtual
└── dovecot-acl-list
cat ./Alle/dovecot-virtual
!INBOX
INBOX/*
-INBOX/Trash
-INBOX/Trash$*
-INBOX/Archives
-INBOX/Archives$*
-INBOX/Drafts
-INBOX/Drafts$*
-INBOX/Junk
-INBOX/Junk$*
-INBOX/SYSTEM
-INBOX/SYSTEM$*
 all


The definition of this two namespaces is in my first mail.

Do you need more?

Jakob






signature.asc
Description: OpenPGP digital signature


doveadm backup or sync Read status

2017-11-26 Thread DurgaPrasad - DatasoftComnet
Hello All,
Sorry for reposting. Earlier I was in digest mode hence could not update the
previous post.

I am trying to migrate mail from a dovecot-2.0.13-1_129.el5 maildir to
dovecot-2.2.10-8.el7.x86_64 centos 7 mdbox.

I am using this command 
doveadm -v -o mail_fsync=never backup -R -u u...@domain.com  imapc:
also tried 
doveadm -v -o mail_fsync=never sync -1 -R -u u...@domain.com imapc:

Both work flawlessly - Timo is great !!! - My issue is the source folders
are all marked as read. The target folders of-course have unread OK. POP3
UIDLs are also ok (tested for one user).

(1) My question is how can I make the source remain same (unread status
etc.) so that I do migrate the various domains in a transparent manner and
then switch servers ?. I have multiple virtual domains.
(2) One more question do I have to do both imapc_ & also pop3c_ migration
since I need the POP UIDLs to work properly for my outlook POP3 users after
migration ?.

I want to know the possibilities.

Thanks
DP


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



Re: lmtp-Eroor

2017-11-26 Thread Aki Tuomi


On 27.11.2017 08:37, Jakob Schürz wrote:
> Hi!
>
>
> Am 2017-11-27 um 01:35 schrieb Stephan Bosch:
>> Op 11/27/2017 om 12:53 AM schreef Jakob Schürz:
>>> Hi There!
>>>
>>> I can not find anything about this message:
>>>
>>> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
>>> UID=1 because: header Message-ID (Cache file is unusable)
>>> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
>>> UID=1 because: virtual size (Cache file is unusable)
>> These are debug messages. The incoming LMTP DATA stream is a raw
>> message, which has no cache (hence 'Cache file is unusable'). This is
>> normal.
> Ok. I did a lot of debugging the last weeks for another bug. But I've
> never seen this message before. So i thought it is new. But obviously I
> haven't seen this, but it was there.

It just means that the cache file wasn't available, because it had been
removed. It's not a serious problem.

>>> And the next is:
>>> dovecot[23202]: lmtp(jakob): rphlK01SG1qiWgAAk1Mx3g: sieve:
>>> msgid=: stored mail into mailbox
>>> 'INBOX/TESTORDNER'
>> Your Sieve script stored the message in INBOX/TESTORDNER. Also not strange>
>>> It happens when a mail gets delivered through lmtp.
>> Any particular problem you're facing?
> I don't know, if this is another or the same problem.
> Since i tried to find out, what is this unusable cache-file, I realized
> this error-Message, sending an Email with Thunderbird (not from
> commandline with mail):
>
>
> Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): Debug: Mailbox
> INBOX/Sent: Opened mail UID=0 because: mail stream
> Nov 27 07:35:42 aldebaran spamd[1258]: prefork: child states: II
> Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): Error: Log
> synchronization error at seq=5,offset=25508 for
> /var/lib/dovecot/db/indexes/Maildir/jakob/Sent/dovecot.index: Append
> with UID 2431, but next_uid = 2432
> Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): Warning: fscking
> index file /var/lib/dovecot/db/indexes/Maildir/jakob/Sent/dovecot.index
> Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): save:
> box=INBOX/Sent, uid=2431,
> msgid=<010ba14b-3791-11af-ac3a-6fd574f6a...@.xxx>, size=2693

This is caused by the following

> And then i got this many times:
>
> Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Debug: Mailbox
> INBOX/Sent: Opened mail UID=2427 because: access
> Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Debug: Mailbox
> INBOX/Sent: Opened mail UID=2427 because: mail stream
> Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Panic: file
> mail-index.c: line 679 (mail_index_close): assertion failed:
> (index->open_count > 0)
> Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Error: Raw
> backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x95272) [0x7f4e03f4b272]
> -> /usr/lib/dovecot/libdovecot.so.0(+0x9536d) [0x7f4e03f4b36d] ->
> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f4e03ee1951] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(+0xe0d18) [0x7f4e042b7d18] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(+0xc6f91) [0x7f4e0429df91] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(+0xc7023) [0x7f4e0429e023] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(+0xbe6c4) [0x7f4e042956c4] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_free+0x19)
> [0x7f4e042176b9] ->
> /usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9dac)
> [0x7f4e028cddac] ->
> /usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9e59)
> [0x7f4e028cde59] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
> [0x7f4e0421762a] ->
> /usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9e0c)
> [0x7f4e028cde0c] ->
> /usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9e59)
> [0x7f4e028cde59] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
> [0x7f4e0421762a] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_free+0x13)
> [0x7f4e042176b3] -> dovecot/imap [jakob 192.168.0.14 select](+0x142eb)
> [0x560e9dc052eb] -> dovecot/imap [jakob 192.168.0.14
> select](cmd_select_full+0x129) [0x560e9dc05449] -> dovecot/imap [jakob
> 192.168.0.14 select](command_exec+0xa5) [0x560e9dc0c735] -> dovecot/imap
> [jakob 192.168.0.14 select](+0x199c2) [0x560e9dc0a9c2] -> dovecot/imap
> [jakob 192.168.0.14 select](+0x19a4c) [0x560e9dc0aa4c] -> dovecot/imap
> [jakob 192.168.0.14 select](client_handle_input+0x1b5) [0x560e9dc0ae55]
> -> dovecot/imap [jakob 192.168.0.14 select](client_input+0x86)
> [0x560e9dc0b3c6] ->
> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x7f4e03f5fdd2]
> -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x109)
> [0x7f4e03f61409] ->
> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c)
> [0x7f4e03f5fe6c] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38)
> [0x7f4e03f60018] ->
> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13)
> [0x7f4e03ee7e93] -> dovecot/imap [jakob 192.168.0.14 select](main+0x328)
> [0x560e9dbfde68]
> Nov 27 07:28:43 aldebaran 

Re: lmtp-Eroor

2017-11-26 Thread Jakob Schürz
Hi!


Am 2017-11-27 um 01:35 schrieb Stephan Bosch:
> Op 11/27/2017 om 12:53 AM schreef Jakob Schürz:
>> Hi There!
>>
>> I can not find anything about this message:
>>
>> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
>> UID=1 because: header Message-ID (Cache file is unusable)
>> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
>> UID=1 because: virtual size (Cache file is unusable)
> 
> These are debug messages. The incoming LMTP DATA stream is a raw
> message, which has no cache (hence 'Cache file is unusable'). This is
> normal.

Ok. I did a lot of debugging the last weeks for another bug. But I've
never seen this message before. So i thought it is new. But obviously I
haven't seen this, but it was there.

> 
>> And the next is:
>> dovecot[23202]: lmtp(jakob): rphlK01SG1qiWgAAk1Mx3g: sieve:
>> msgid=: stored mail into mailbox
>> 'INBOX/TESTORDNER'
> 
> Your Sieve script stored the message in INBOX/TESTORDNER. Also not strange>
>> It happens when a mail gets delivered through lmtp.
> 
> Any particular problem you're facing?

I don't know, if this is another or the same problem.
Since i tried to find out, what is this unusable cache-file, I realized
this error-Message, sending an Email with Thunderbird (not from
commandline with mail):


Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): Debug: Mailbox
INBOX/Sent: Opened mail UID=0 because: mail stream
Nov 27 07:35:42 aldebaran spamd[1258]: prefork: child states: II
Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): Error: Log
synchronization error at seq=5,offset=25508 for
/var/lib/dovecot/db/indexes/Maildir/jakob/Sent/dovecot.index: Append
with UID 2431, but next_uid = 2432
Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): Warning: fscking
index file /var/lib/dovecot/db/indexes/Maildir/jakob/Sent/dovecot.index
Nov 27 07:35:42 aldebaran dovecot[706]: imap(jakob): save:
box=INBOX/Sent, uid=2431,
msgid=<010ba14b-3791-11af-ac3a-6fd574f6a...@.xxx>, size=2693

And then i got this many times:

Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Debug: Mailbox
INBOX/Sent: Opened mail UID=2427 because: access
Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Debug: Mailbox
INBOX/Sent: Opened mail UID=2427 because: mail stream
Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Panic: file
mail-index.c: line 679 (mail_index_close): assertion failed:
(index->open_count > 0)
Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Error: Raw
backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x95272) [0x7f4e03f4b272]
-> /usr/lib/dovecot/libdovecot.so.0(+0x9536d) [0x7f4e03f4b36d] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f4e03ee1951] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0xe0d18) [0x7f4e042b7d18] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0xc6f91) [0x7f4e0429df91] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0xc7023) [0x7f4e0429e023] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0xbe6c4) [0x7f4e042956c4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_free+0x19)
[0x7f4e042176b9] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9dac)
[0x7f4e028cddac] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9e59)
[0x7f4e028cde59] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
[0x7f4e0421762a] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9e0c)
[0x7f4e028cde0c] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9e59)
[0x7f4e028cde59] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
[0x7f4e0421762a] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_free+0x13)
[0x7f4e042176b3] -> dovecot/imap [jakob 192.168.0.14 select](+0x142eb)
[0x560e9dc052eb] -> dovecot/imap [jakob 192.168.0.14
select](cmd_select_full+0x129) [0x560e9dc05449] -> dovecot/imap [jakob
192.168.0.14 select](command_exec+0xa5) [0x560e9dc0c735] -> dovecot/imap
[jakob 192.168.0.14 select](+0x199c2) [0x560e9dc0a9c2] -> dovecot/imap
[jakob 192.168.0.14 select](+0x19a4c) [0x560e9dc0aa4c] -> dovecot/imap
[jakob 192.168.0.14 select](client_handle_input+0x1b5) [0x560e9dc0ae55]
-> dovecot/imap [jakob 192.168.0.14 select](client_input+0x86)
[0x560e9dc0b3c6] ->
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x7f4e03f5fdd2]
-> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x109)
[0x7f4e03f61409] ->
/usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c)
[0x7f4e03f5fe6c] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38)
[0x7f4e03f60018] ->
/usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13)
[0x7f4e03ee7e93] -> dovecot/imap [jakob 192.168.0.14 select](main+0x328)
[0x560e9dbfde68]
Nov 27 07:28:43 aldebaran dovecot[706]: imap(jakob): Fatal: master:
service(imap): child 6631 killed with signal 6 (core dumps disabled)

What is this?

jakob



signature.asc
Description: OpenPGP digital signature


Re: Server migration

2017-11-26 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 24 Nov 2017, Gandalf Corvotempesta wrote:


I've asked this before, but now it's time to move one server to
another, I can't delay the operation anymore (the older server is
failing)

Both server are pretty old: 1.2.15

Probably, faster way would be to rsync all mailboxes from the older
server to the newer one.
I can start migrating everything while running then, stop the older
server and sync only what is changed, keeping downtime at minimum.

Any better solution ?


No, it would go this way.

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWhuqEMQnQQNheMxiAQJxDQf/UHW0IdjQclo81XtGIzs2Wo6L/h6Zw1gd
BBwpS8KaqKSprxOVJY375ybzvwU+POuujmaN2v8TXPRuJY6ptyy57cqfgPPMN1gG
eDp4SoDtQQk0Y1rocM9GdNx5yWb3RLukvpAxLXHaFoQlNRkbIB7kCvNofxiCTcdA
1xcQ7rB1gh+HxCOxf+tLWR/S29EqJeIhxlBUGjTcY42t2hQLBnVwqUJN53GkSWet
h+V10iihSkpd3mXPbc49DV0NWUZTVMuspFNWp74sEeJSaOTYbPQU+im60n93ZWBO
wotPioiQfES561G2+/SOe0ySvG0h92b2ICZWXKRwSRhcCGI4sNdeiw==
=pxDV
-END PGP SIGNATURE-


Re: [SPAMMY]Re: Dovecot LMTP Proxy + STARTTLS?

2017-11-26 Thread Stephan Bosch
Op 11/23/2017 om 8:44 PM schreef tobiswo...@gmail.com:
> Hi
>
> thanks for the link. Read that page before but somehow missed the
> comment about ssl+lmtp proxy :-)
>
> Are there any plans to implement that to dovecot in future?

Shouldn't be a problem for v2.3.

Regards,

Stephan.

> Regards
>
> tobi
>
> Am 23.11.2017 um 18:38 schrieb Carsten Rosenberg:
>> NOTE: LMTP/doveadm proxying doesn't support SSL/TLS currently - any 
>> ssl/starttls extra field is ignored
>>
>> https://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy
>>
>> Am 23. November 2017 09:31:41 MEZ schrieb Tobi :
>>> Hi
>>>
>>> I got dovecot 2.2.26 on a Centos7 with latest updates. Dovecot is
>>> configured to act as director and delivers to my two backend servers.
>>> I enabled lmtp proxy on director to listen on port 24.
>>>
>>> Now I see in msg headers that the connection to the lmtp proxy uses
>>> STARTTLS but the connection from proxy to backend seems to be
>>> unencrypted. Is it possible to enforce the use of STARTTLS in the
>>> connection from the director to the backend as well?
>>>
>>> Regards
>>>
>>> tobi



Re: lmtp-Eroor

2017-11-26 Thread Stephan Bosch
Op 11/27/2017 om 12:53 AM schreef Jakob Schürz:
> Hi There!
>
> I can not find anything about this message:
>
> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
> UID=1 because: header Message-ID (Cache file is unusable)
> dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
> UID=1 because: virtual size (Cache file is unusable)

These are debug messages. The incoming LMTP DATA stream is a raw
message, which has no cache (hence 'Cache file is unusable'). This is
normal.

> And the next is:
> dovecot[23202]: lmtp(jakob): rphlK01SG1qiWgAAk1Mx3g: sieve:
> msgid=: stored mail into mailbox
> 'INBOX/TESTORDNER'

Your Sieve script stored the message in INBOX/TESTORDNER. Also not strange.

> It happens when a mail gets delivered through lmtp.

Any particular problem you're facing?

Regards,

Stephan.



lmtp-Eroor

2017-11-26 Thread Jakob Schürz
Hi There!

I can not find anything about this message:

dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
UID=1 because: header Message-ID (Cache file is unusable)
dovecot[23202]: lmtp(jakob): Debug: Mailbox : Opened mail
UID=1 because: virtual size (Cache file is unusable)

And the next is:
dovecot[23202]: lmtp(jakob): rphlK01SG1qiWgAAk1Mx3g: sieve:
msgid=: stored mail into mailbox
'INBOX/TESTORDNER'

It happens when a mail gets delivered through lmtp.

My exim-Transport is this:

dovecot_lmtp:
  driver = lmtp
  socket = /var/run/dovecot/lmtp
  #maximum number of deliveries per batch, default 1
  batch_max = 200


And my dovecot-Conf is this:

# dovecot -n
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.13.0-trunk-amd64 x86_64 Debian 9.1 btrfs
auth_debug = yes
auth_mechanisms = plain login cram-md5 digest-md5
auth_socket_path = /var/run/dovecot/auth-userdb
auth_verbose = yes
first_valid_uid = 1000
imap_capability = +XDOVECOT
imap_client_workarounds = tb-extra-mailbox-sep
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = *, ::1
login_trusted_networks = 127.0.0.1/8 192.168.0.0/24 192.168.1.0/24
172.17.0.0/24 172.18.0.0/24
mail_debug = yes
mail_gid = vmail
mail_home =  /var/mail/%u
mail_location =
maildir:/var/mail/%u/Maildir:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/Maildir/%u:INDEXPVT=/var/lib/dovecot/db/indexes/Maildir/%u:CONTROL=/var/lib/dovecot/db/control/Maildir/%u
mail_plugins = zlib quota acl listescape mail_log notify virtual
mail_privileged_group = vmail
mail_server_admin = mailto:ja...@xundeenergie.at
mail_shared_explicit_inbox = yes
mail_uid = vmail
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 index ihave duplicate mime foreverypart extracttext
mmap_disable = yes
namespace {
  hidden = no
  inbox = no
  list = children
  location =
maildir:/var/mail/mailarchiv/%u/:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/mailarchiv/%u:INDEXPVT=/var/lib/dovecot/db/indexes/mailarchiv/%u
  mailbox incoming {
auto = create
  }
  mailbox outgoing {
auto = create
  }
  prefix = Mailarchiv/
  separator = /
  subscriptions = no
  type = private
}
namespace {
  list = children
  location =
maildir:/var/mail/public/:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/public/%u:INDEXPVT=/var/lib/dovecot/db/indexes/public/%u
  prefix = Roseggergasse/
  separator = /
  subscriptions = no
  type = public
}
namespace Geteilt {
  hidden = no
  inbox = no
  list = children
  location =
maildir:/var/mail/%%u/Maildir:LAYOUT=fs:INDEXPVT=/var/lib/dovecot/db/indexes/shared/%u/%%u:INDEX=/var/lib/dovecot/db/indexes/shared/%u/%%u
  prefix = Geteilt/%%n/
  separator = /
  subscriptions = no
  type = shared
}
namespace Real {
  hidden = yes
  list = no
  location =
virtual:/var/mail/real:INDEX=/var/lib/dovecot/db/indexes/real/%u
  prefix = Real/
  separator = /
  subscriptions = no
}
namespace Synoptic {
  hidden = no
  list = children
  location =
virtual:/var/mail/virtual:INDEX=/var/lib/dovecot/db/indexes/virtual/%u
  mailbox INBOX/Archives {
auto = no
special_use = \Archive
  }
  mailbox INBOX/Drafts {
auto = no
special_use = \Drafts
  }
  mailbox INBOX/Entwürfe {
auto = no
special_use = \Drafts
  }
  mailbox INBOX/Junk {
auto = no
special_use = \Junk
  }
  mailbox INBOX/Spam {
auto = no
special_use = \Junk
  }
  mailbox Sent {
auto = no
special_use = \Sent
  }
  prefix = Synoptic/
  separator = /
  subscriptions = no
}
namespace inbox {
  hidden = no
  inbox = yes
  location =
  mailbox Archiv {
auto = no
special_use = \Archive
  }
  mailbox Archive {
auto = no
special_use = \Archive
  }
  mailbox Archives {
auto = no
special_use = \Archive
  }
  mailbox "Deleted Messages" {
auto = no
special_use = \Trash
  }
  mailbox Drafts {
auto = no
special_use = \Drafts
  }
  mailbox Entwürfe {
auto = no
special_use = \Drafts
  }
  mailbox "Gelöschte Elemente" {
auto = no
special_use = \Trash
  }
  mailbox "Gelöschte Objekte" {
auto = no
special_use = \Trash
  }
  mailbox Gesendet {
auto = no
special_use = \Sent
  }
  mailbox "Gesendete Elemente" {
auto = no
special_use = \Sent
  }
  mailbox "Gesendete Objekte" {
auto = no
special_use = \Sent
  }
  mailbox Important {
auto = no
  }
  mailbox Junk {
auto = subscribe
autoexpunge = 30 days
special_use = \Junk
  }
  mailbox Mistkübel {
auto = no
special_use = \Trash
  }
  mailbox Papierkorb {
auto = no
special_use = \Trash
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox "Sent Messages" {
auto = no
special_use = \Sent
  }
  mailbox Spam {
auto = no
special_use = \Junk
  }
 

[SPAMMY]Re: Dovecot LMTP Proxy + STARTTLS?

2017-11-26 Thread Carsten Rosenberg
NOTE: LMTP/doveadm proxying doesn't support SSL/TLS currently - any 
ssl/starttls extra field is ignored

https://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy

Am 23. November 2017 09:31:41 MEZ schrieb Tobi :
>Hi
>
>I got dovecot 2.2.26 on a Centos7 with latest updates. Dovecot is
>configured to act as director and delivers to my two backend servers.
>I enabled lmtp proxy on director to listen on port 24.
>
>Now I see in msg headers that the connection to the lmtp proxy uses
>STARTTLS but the connection from proxy to backend seems to be
>unencrypted. Is it possible to enforce the use of STARTTLS in the
>connection from the director to the backend as well?
>
>Regards
>
>tobi


Re: Dovecot LMTP Proxy + STARTTLS?

2017-11-26 Thread Matt Bryant
Not according to dovecot doco ... from
https://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy

*NOTE: LMTP/doveadm proxying doesn't support SSL/TLS currently - any
ssl/starttls extra field is ignored

*rgds

Matt


> Tobi 
> 23 November 2017 at 6:31 pm
> Hi
>
> I got dovecot 2.2.26 on a Centos7 with latest updates. Dovecot is
> configured to act as director and delivers to my two backend servers.
> I enabled lmtp proxy on director to listen on port 24.
>
> Now I see in msg headers that the connection to the lmtp proxy uses
> STARTTLS but the connection from proxy to backend seems to be
> unencrypted. Is it possible to enforce the use of STARTTLS in the
> connection from the director to the backend as well?
>
> Regards
>
> tobi



doveadm backup or sync Read status

2017-11-26 Thread DurgaPrasad - DatasoftComnet
Hello all,
I am trying to migrate mail from a dovecot-2.0.13-1_129.el5 maildir to
dovecot-2.2.10-8.el7.x86_64 centos 7 mdbox.

I am using this command 
doveadm -v -o mail_fsync=never backup -R -u u...@domain.com  imapc:
also tried 
doveadm -v -o mail_fsync=never sync -1 -R -u u...@domain.com imapc:

Both work flawlessly - Timo is great !!! - My issue is the source folders
are all marked as read. The target folders of-course have unread OK. POP3
UIDLs are also ok (tested for one user).

(1) My question is how can I make the source remain same (unread status
etc.) so that I do migrate the various domains in a transparent manner and
then switch servers ?. I have multiple virtual domains.
(2) One more question do I have to do both imapc_ & also pop3c_ migration
since I need the POP UIDLs to work properly for my outlook POP3 users after
migration ?.

Thanks
DP


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