doveadm edit headers?

2016-12-04 Thread MRob

Hello, is there a way to edit a message header using doveadm?

I see how I can fetch the things I need, but even if I can't edit in 
place; if I extract the full message, edit it, there doesn't seem to be 
a way to append it back again?


Re: v2.2.27 released

2016-12-04 Thread Alexey Asemov (Alex/AT)

Thanks a lot for indexing fixes, Dovecot team.

Any news for Pigeonhole? Currently had to rollup some commits from GIT 
to make it pass vacation test set with 2.2.27.


---

On 03.12.2016 20:48, Timo Sirainen wrote:

https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz
https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz.sig



Re: No stats under FreeBSD 10.3

2016-12-04 Thread Michael Grimm
Larry Rosenman  wrote:

>  fifo_listener stats-mail {
>group =
>mode = 0666
>user =
>  }
>  fifo_listener stats-user {
>group =
>mode = 0666
>user =
>  }

BTW: What is "stats-user" used for? 
I cannot find a reference in http://wiki2.dovecot.org/Statistics

Thanks and regards,
Michael


Show pigeonhole version?

2016-12-04 Thread MRob
How can I query the current pigeonhole version from a running instance 
to verify it is what I expect?


Possible to get `dovecot --version` to show things like that?


Re: Show pigeonhole version?

2016-12-04 Thread Timo Sirainen
On 4 Dec 2016, at 14.20, MRob  wrote:
> 
> How can I query the current pigeonhole version from a running instance to 
> verify it is what I expect?
> 
> Possible to get `dovecot --version` to show things like that?

doveconf -n header shows the installed version (practically the same as the 
running version).


Re: v2.2.27 released

2016-12-04 Thread Ruga
var-expand.c:686:17: warning: passing an object that undergoes default argument 
promotion to 'va_start' has undefined behavior [-Wvarargs]


va_start(args, key2);


^


var-expand.c:673:58: note: parameter of type 'char' is declared here


var_expand_table_build(char key, const char *value, char key2, ...)


^












 Original Message 
Subject: v2.2.27 released
Local Time: 3 December 2016 6:48 PM
UTC Time: 3 December 2016 17:48
From: t...@iki.fi
To: dovecot-n...@dovecot.org, Dovecot Mailing List 

https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz
https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz.sig

Note that the download URLs are now https with a certificate from Let's Encrypt.

* dovecot.list.index.log rotation sizes/times were changed so that
the .log file stays smaller and .log.2 is deleted sooner.

+ Added mail_crypt plugin that allows encryption of stored emails.
See http://wiki2.dovecot.org/Plugins/MailCrypt
+ stats: Global stats can be sent to Carbon server by setting
stats_carbon_server=ip:port
+ imap/pop3 proxy: If passdb returns proxy_not_trusted, don't send
ID/XCLIENT
+ Added generic hash modifier for %variables:
%{;rounds=,truncate=,salt=s>:field}
Hash algorithm is any of the supported ones, e.g. md5, sha1, sha256.
Also "pkcs5" is supported using SHA256. For example: %{sha256:user}
or %{md5;truncate=32:user}.
+ Added support for SHA3-256 and SHA3-512 hashes.
+ config: Support DNS wildcards in local_name, e.g.
local_name *.example.com { .. } matches anything.example.com, but
not multiple.anything.example.com.
+ config: Support multiple names in local_name, e.g.
local_name "1.example.com 2.example.com" { .. }
- Fixed crash in auth process when auth-policy was configured and
authentication was aborted/failed without a username set.
- director: If two users had different tags but the same hash,
the users may have been redirected to the wrong tag's hosts.
- Index files may have been thought incorrectly lost, causing
"Missing middle file seq=.." to be logged and index rebuild.
This happened more easily with IMAP hibernation enabled.
- Various fixes to restoring state correctly in un-hibernation.
- dovecot.index files were commonly 4 bytes per email too large. This
is because 3 bytes per email were being wasted that could have been
used for IMAP keywords.
- Various fixes to handle dovecot.list.index corruption better.
- lib-fts: Fixed assert-crash in address tokenizer with specific input.
- Fixed assert-crash in HTML to text parsing with specific input
(e.g. for FTS indexing or snippet generation)
- doveadm sync -1: Fixed handling mailbox GUID conflicts.
- sdbox, mdbox: Perform full index rebuild if corruption is detected
inside lib-index, which runs index fsck.
- quota: Don't skip quota checks when moving mails between different
quota roots.
- search: Multiple sequence sets or UID sets in search parameters
weren't handled correctly. They were incorrectly merged together.

Re: First steps in Dovecot; IMAP not working

2016-12-04 Thread Marnaud
Le 18 oct. 2016 à 13:32, Richard  a 
écrit:

> Assuming that "barbu.sytes.net" is the intended hostname (not
> something made up to obscure the real name), there is an MX-record
> for that that points to "mail.barbu.sytes.net", but there is no
> A-record for the "mail." hostname. There is an A-record for
> "mail.sytes.net", in case that is what you were intending, in which
> case you'd need to fix the MX on "barbu.sytes.net".

Hello,
Sorry for the delay in responding, I’ve been busy with something else.

I just wanted to thank you for your answer.
I have to admit I don’t have enough knowledge in that matter; I’ll stay with my 
existing mail provider and stop playing with things I don’t understand.

Regards,
Arnaud

Re: v2.2.27 released --- libressl

2016-12-04 Thread Ruga
>openssl version
Libressl 2.4.4

Patch for dovecot:

perl -i -ple 's/^(#if OPENSSL_VERSION_NUMBER < 0x1010L\s*)$/$1 || defined 
(LIBRESSL_VERSION_NUMBER)/' ./src/lib-dcrypt/dcrypt-openssl.c;
perl -i -ple 's/^(#if OPENSSL_VERSION_NUMBER < 0x1010L\s*)$/$1 || defined 
(LIBRESSL_VERSION_NUMBER)/' ./src/lib-ssl-iostream/dovecot-openssl-common.c;
perl -i -ple 's/^(#if OPENSSL_VERSION_NUMBER >= 0x1010L\s*)$/$1 && !defined 
(LIBRESSL_VERSION_NUMBER)/' ./src/lib-dcrypt/dcrypt-openssl.c;
perl -i -ple 's/^(#if OPENSSL_VERSION_NUMBER >= 0x1010L\s*)$/$1 && !defined 
(LIBRESSL_VERSION_NUMBER)/' ./src/lib-ssl-iostream/dovecot-openssl-common.c;

Both configuration and compilation are OK.

The test fails as follows:
[...]

test_load_v1_public_key .. : ok


Panic: file randgen.c: line 21 (random_fill): assertion failed: (init_refcount 
> 0)


Error: Raw backtrace: 2 libdcrypt_openssl.so 0x000103413d24 
default_fatal_finish + 36 -> 3 libdcrypt_openssl.so 0x000103413afd 
default_fatal_handler + 61 -> 4 libdcrypt_openssl.so 0x000103414069 i_panic 
+ 169 -> 5 libdcrypt_openssl.so 0x00010344110c random_fill + 220 -> 6 
libdcrypt_openssl.so 0x00010340a63d dcrypt_openssl_store_private_key + 1037 
-> 7 test-crypto 0x000103387f54 test_load_v2_key + 580 -> 8 test-crypto 
0x00010338990e test_run + 142 -> 9 test-crypto 0x000103386921 main + 81 
-> 10 libdyld.dylib 0x7fff9da95255 start + 1


/bin/sh: line 1: 56954 Abort trap: 6 ./$bin


make[2]: *** [check-test] Error 1


make[1]: *** [check-recursive] Error 1


make: *** [check-recursive] Error 1












 Original Message 
Subject: v2.2.27 released
Local Time: 3 December 2016 6:48 PM
UTC Time: 3 December 2016 17:48
From: t...@iki.fi
To: dovecot-n...@dovecot.org, Dovecot Mailing List 

https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz
https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz.sig

Note that the download URLs are now https with a certificate from Let's Encrypt.

* dovecot.list.index.log rotation sizes/times were changed so that
the .log file stays smaller and .log.2 is deleted sooner.

+ Added mail_crypt plugin that allows encryption of stored emails.
See http://wiki2.dovecot.org/Plugins/MailCrypt
+ stats: Global stats can be sent to Carbon server by setting
stats_carbon_server=ip:port
+ imap/pop3 proxy: If passdb returns proxy_not_trusted, don't send
ID/XCLIENT
+ Added generic hash modifier for %variables:
%{;rounds=,truncate=,salt=s>:field}
Hash algorithm is any of the supported ones, e.g. md5, sha1, sha256.
Also "pkcs5" is supported using SHA256. For example: %{sha256:user}
or %{md5;truncate=32:user}.
+ Added support for SHA3-256 and SHA3-512 hashes.
+ config: Support DNS wildcards in local_name, e.g.
local_name *.example.com { .. } matches anything.example.com, but
not multiple.anything.example.com.
+ config: Support multiple names in local_name, e.g.
local_name "1.example.com 2.example.com" { .. }
- Fixed crash in auth process when auth-policy was configured and
authentication was aborted/failed without a username set.
- director: If two users had different tags but the same hash,
the users may have been redirected to the wrong tag's hosts.
- Index files may have been thought incorrectly lost, causing
"Missing middle file seq=.." to be logged and index rebuild.
This happened more easily with IMAP hibernation enabled.
- Various fixes to restoring state correctly in un-hibernation.
- dovecot.index files were commonly 4 bytes per email too large. This
is because 3 bytes per email were being wasted that could have been
used for IMAP keywords.
- Various fixes to handle dovecot.list.index corruption better.
- lib-fts: Fixed assert-crash in address tokenizer with specific input.
- Fixed assert-crash in HTML to text parsing with specific input
(e.g. for FTS indexing or snippet generation)
- doveadm sync -1: Fixed handling mailbox GUID conflicts.
- sdbox, mdbox: Perform full index rebuild if corruption is detected
inside lib-index, which runs index fsck.
- quota: Don't skip quota checks when moving mails between different
quota roots.
- search: Multiple sequence sets or UID sets in search parameters
weren't handled correctly. They were incorrectly merged together.

Re: SAML | Input buffer full (no auth attempts in 0 secs)

2016-12-04 Thread mj


On 12/03/2016 08:04 PM, Timo Sirainen wrote:


If SOGo used AUTHENTICATE PLAIN instead of LOGIN, it should work. The
SASL authentication buffer is larger (8 kB) than regular commands'
buffer (~1 kB).

Thanks Timo, that worked! :-)

MJ


Re: v2.2.27 released

2016-12-04 Thread Stephan Bosch
Op 12/4/2016 om 11:42 AM schreef Alexey Asemov (Alex/AT):
> Thanks a lot for indexing fixes, Dovecot team.
>
> Any news for Pigeonhole? Currently had to rollup some commits from GIT
> to make it pass vacation test set with 2.2.27.
>

What problem are you seeing? No Pigeonhole release is currently planned.

> ---
>
> On 03.12.2016 20:48, Timo Sirainen wrote:
>> https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz
>> https://dovecot.org/releases/2.2/dovecot-2.2.27.tar.gz.sig
>>


Mail marked read upon download

2016-12-04 Thread Curtis Vaughan
Just set up a new server with postfix and dovecot. I don't know why, 
but as soon as mail is accessed it is marked read. I'll see emails 
momentarily marked unread, but then switch to read later although I 
haven't opened them.

This has never been an issue before.
Any ideas why?

Thanks.

Curtis


move IMAP folder

2016-12-04 Thread James

I am trying to move an IMAP folder from Thunderbird and nothing happens.
What /var/log file should I look in?


Re: LMTP delivery honours .forward by default?

2016-12-04 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 2 Dec 2016, MRob wrote:

I was under the impression that Dovecot does not look at .forward by default, 
since of course, Sieve is where that kind of logic should go.  However, I'm 
seeing a .forward file being honoured by the LMTP delivery agent.  Is this to 
be expected?


What version of Dovecot are you using?
In my installation the MTA handles .forward.

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWEUUw3z1H7kL/d9rAQI18Af+PErZBLD76iIaPitbT2dimCgkTAc1jnxT
jYsi85LF2QILdWGvqE3KETzSD8U8zx0Nf0krqU7Lj7WgaVnxdMWR2+kt+HsMdsz8
Px8pywSYQWYOwO/I3ELSouZlBuJgMEga/itT9zklLi/NOXQr0qQ9BACAjbk3HdpU
7Mwdx986sBctD6+R+nOaMCj1gB+FHTVmsdktveG9kViyXTGbHJbRFKmZg25T8bir
j1c/V4KzsRIjF0pC9Jcxj66rPLdMWKpQqu9jc7MSSC2bdVxnjerRgMdH4xIj/tqV
LUjtDqV35/q48kWj814eQ8Hz4exXQ0js55wUPA4dRegwMyVFx73HpQ==
=blfZ
-END PGP SIGNATURE-


Re: doveadm edit headers?

2016-12-04 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 4 Dec 2016, MRob wrote:


Hello, is there a way to edit a message header using doveadm?


I guess not.

I see how I can fetch the things I need, but even if I can't edit in place; 
if I extract the full message, edit it, there doesn't seem to be a way to 
append it back again?


check out doveadm import
http://wiki2.dovecot.org/Tools/Doveadm/Import

it should be easy to fake a maildir or mbox structure.

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWEUYnHz1H7kL/d9rAQIefgf/aO5IqfQsI7Xu4Xy6/wzxrMw8aAkDyf3j
RNa58av4udtZtNufSA9Im95lt3cTK6cAeRn0ccBTYNwaWKA4L45WDJkrgtfbRjYu
ZRlJJ1Z3FvbFtn/89ywgndU3qYo/5lwxPL1IssjX2LrHmg+zPUYR5dwlahWyfp92
UQpHL3z4z714mEc2Qdd9rZS+axSEJIAbYG3Yz1XODxLotnMC2umT9ulKLzxoNcQr
5Ini/XcYH/zlR9/DMAsRxESR77Rj5/5k/ecxO+oY9s1UfZmlrv7UUItIJ2hwv+z6
Ncw+j0KoyDQmhLzxuw1XR5+m3i4F8eRXLJitvDiDR2nwn/BBz1QmkA==
=mDfu
-END PGP SIGNATURE-


Re: doveadm edit headers?

2016-12-04 Thread Aki Tuomi


On 05.12.2016 09:34, Steffen Kaiser wrote:
> On Sun, 4 Dec 2016, MRob wrote:
>
> > Hello, is there a way to edit a message header using doveadm?
>
> I guess not.
>
> > I see how I can fetch the things I need, but even if I can't edit in
> place; if I extract the full message, edit it, there doesn't seem to
> be a way to append it back again?
>
> check out doveadm import
> http://wiki2.dovecot.org/Tools/Doveadm/Import
>
> it should be easy to fake a maildir or mbox structure.
>
> -- Steffen Kaiser

Hi!

You can edit message in a roundabout way:

1. Use doveadm fetch to retrieve the message
2. Edit the message
3. Use doveadm delete to delete the original message
4. Use doveadm save to save the message

You cannot directly edit a message

Aki


Re: Virtual mailboxes, please help

2016-12-04 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, 3 Dec 2016, Peter Hodur wrote:


I'm trying to setup virtual mailboxes. My setup:

- migrated from Courier, so:

separator = .
prefix = INBOX.
inbox = yes


In doc i have read, thant i need to create separate namespace.

namespace {  prefix = virtual/  separator = /  location =
virtual:~/Maildir/virtual

So i need to change / with . (Dot) in prefix and separator?

Do i need to append LAYOUT=maildir++ to location?

Where must location point? To the same directory where mail_location? Or do
i need to create separate hierarchy for virtual mailboxes?


Do you mix virtual users with virtual mailboxes?

A virtual mailbox displays messages according some search / selection 
expressions, hence, there is no layout.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWEUZ13z1H7kL/d9rAQKO3wf/VaPNWwPu2cnzTboV6Mj+JFmjDZ9Q4Vqp
IgNbLU9XHfb5mEVxoRm9yOJbPdnQqE1o3rh7NRPkP/89uzXQRYzzMIYXV/ozTHo7
DA0KdLm15fri1B+w4DTxa1aX51O/AwNOW8hMgPn0qQC/zsyPVnnmuPh4gn7TTXgH
YScYWDftPVoX7MPuKXfo4IYFl6K1PeYy1pi7evFGvhfBVw0HWI+msCvrFSb6c8QE
qQ1D91n5u4dO1QK3aZO9JdfEpY1rXMUx79Tx7zxzlKRPo7g2BDRdkfepRj1ke3VN
q1/nOLI5jAVQVGAQgVTrCMA8/D5EsX7/ZVd/yieu94Ywznp1xfpo0w==
=qOpD
-END PGP SIGNATURE-


Re: doveadm edit headers?

2016-12-04 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 5 Dec 2016, Aki Tuomi wrote:

On 05.12.2016 09:34, Steffen Kaiser wrote:

On Sun, 4 Dec 2016, MRob wrote:


Hello, is there a way to edit a message header using doveadm?


I guess not.


I see how I can fetch the things I need, but even if I can't edit in

place; if I extract the full message, edit it, there doesn't seem to
be a way to append it back again?

check out doveadm import
http://wiki2.dovecot.org/Tools/Doveadm/Import

it should be easy to fake a maildir or mbox structure.



4. Use doveadm save to save the message


Oh, "save" is not documented on:
http://wiki2.dovecot.org/Tools/Doveadm

There seems to be no man page either.

:-)

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWEUapnz1H7kL/d9rAQJHKAf9HzgdzqZlNKso7kSxInIMBV/ccS2V07ni
XnlKVWVueNjY43DQbOPod3MUXmWu8RZOa5IMFlOCrh42MxjZGLJRkPa7SAxdCVDk
RocTifagUNWpvK+j6Hqs3z8tXPikBQ61wS5rFUEAGjFBbk8Ei0YuSV/PyOcrWe04
qy2QDXvOAUwJbfVJfFHv1Zq6MrQy04Qmpqar56nCA/hHo5pIP9LwkHmJEQHYcrio
YpVtiwS+6BB6UZXMloluJh6gL4ycWDi92CLoQU8VrS18+rpnu4Vm837QUqzgllPl
E+XEauYYHQzQ9AqPQUBreSyuVds4yeouzXl9bryVs4NuG4Fh0BfSAA==
=6eXV
-END PGP SIGNATURE-


Re: CVE-2016-8562 in dovecot

2016-12-04 Thread Marc Schiffbauer
* Aki Tuomi schrieb am 02.12.16 um 08:00 Uhr:

Hi Aki,

> We are sorry to report that we have a bug in dovecot, which merits a
> CVE. See details below. If you haven't configured any auth_policy_*
> settings you are ok. This is fixed with
> https://git.dovecot.net/dovecot/core/commit/c3d3faa4f72a676e183f34be960cff13a5a725ae
> and
> https://git.dovecot.net/dovecot/core/commit/99abb1302ae693ccdfe0d57351fd42c67a8612fc
> 
> Important vulnerability in Dovecot (CVE-2016-8562)
> CVSS score: 7.4 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H)
> Affected version(s): 2.2.25.1 up to 2.2.26.1
> Fixed in: 2.2.27.1rc1

I think either it should read "up to 2.2.27"
or
"Fixed in: 2.2.27"

Or how about version 2.2.27? (without .1)

TIA
-Marc

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

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