]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Wed, 17 Jul 2013 07:23:21 +0000 (10:23 +0300)]
liblib: connection_disconnect() didn't close fd_out if it was different from fd_in.
Timo Sirainen [Fri, 12 Jul 2013 00:06:26 +0000 (03:06 +0300)]
director: Don't log an error if login connection gets closed with ECONNRESET.
Timo Sirainen [Fri, 12 Jul 2013 00:01:31 +0000 (03:01 +0300)]
auth: With multiple passdbs the previous passdb's userdb_* fields weren't cleared.
Timo Sirainen [Thu, 11 Jul 2013 23:43:43 +0000 (02:43 +0300)]
auth: If blocking passdb returned only NULLs for userdb_ fields, use userdb prefetch anyway.
Timo Sirainen [Thu, 11 Jul 2013 23:29:00 +0000 (02:29 +0300)]
auth: Use fewer syscalls for sending user list.
Timo Sirainen [Thu, 11 Jul 2013 23:26:44 +0000 (02:26 +0300)]
lib-auth: auth_master_user_list_*() no longer reads the entire user list into memory.
Timo Sirainen [Thu, 11 Jul 2013 23:17:31 +0000 (02:17 +0300)]
lib-storage: mail_storage_service_all_init() no longer returns total number of users.
In preperation for removing the count functionality, since it requires
reading all the users into memory for it to work.
This also required removing the /total from verbosity counter with
doveadm -A.
Timo Sirainen [Thu, 11 Jul 2013 22:57:45 +0000 (01:57 +0300)]
auth: Avoid wasting data stack when iterating users.
Timo Sirainen [Thu, 11 Jul 2013 22:39:47 +0000 (01:39 +0300)]
man: Updated doveadm-director man page.
Timo Sirainen [Thu, 11 Jul 2013 22:36:41 +0000 (01:36 +0300)]
lib-ssl-iostream: Crashfix for recent change.
Timo Sirainen [Thu, 11 Jul 2013 11:29:05 +0000 (14:29 +0300)]
lib-http: Added a very dummy test-http-server
Timo Sirainen [Thu, 11 Jul 2013 11:18:42 +0000 (14:18 +0300)]
lib-http: Implemented http-request-parser for HTTP servers.
Moved code common with it and http-response-parser to http-message-parser.
Timo Sirainen [Thu, 11 Jul 2013 09:54:02 +0000 (12:54 +0300)]
lib-http: Moved struct http_response* to http-response.h
Also http-client.h now #includes only http-response.h
Timo Sirainen [Thu, 11 Jul 2013 07:25:32 +0000 (10:25 +0300)]
lib-http: Minor change to make sure http_response_header.size is always correct.
The current http-header-parser already guaranteed that it is, but this
change just adds extra guarantees that it won't break in future. Besides,
this change improves the performance slightly by avoiding strlen().
Timo Sirainen [Thu, 11 Jul 2013 07:19:43 +0000 (10:19 +0300)]
lib-http: Minor fix/cleanup to detecting stream errors when skipping payload.
Timo Sirainen [Thu, 11 Jul 2013 07:17:49 +0000 (10:17 +0300)]
lib-http: Updated test-http-response-parser
Timo Sirainen [Thu, 11 Jul 2013 06:33:13 +0000 (09:33 +0300)]
lib-http: test-http-header-parser makes sure the parser works one byte at a time.
Timo Sirainen [Thu, 11 Jul 2013 06:29:36 +0000 (09:29 +0300)]
lib-http: Fixed previous test-http-response-parser change.
Timo Sirainen [Thu, 11 Jul 2013 06:25:53 +0000 (09:25 +0300)]
lib-http: Fixed handling responses whose header arrives in smaller pieces.
Timo Sirainen [Thu, 11 Jul 2013 06:23:14 +0000 (09:23 +0300)]
lib-http: Simplify http response status-line parsing code.
Also by not using a temporary string buffer the istream can at least in
theory limit the maximum status-line length (=max memory usage).
Timo Sirainen [Wed, 10 Jul 2013 21:30:28 +0000 (00:30 +0300)]
lib-http: Http requests weren't freed when connection was aborted.
Patch by Stephan Bosch.
Timo Sirainen [Wed, 10 Jul 2013 21:28:54 +0000 (00:28 +0300)]
lib-ssl-iostream: Compiler warning fix
Timo Sirainen [Wed, 10 Jul 2013 07:01:26 +0000 (10:01 +0300)]
lib-ssl-iostreams: ssl_protocols setting supports now TLSv1.1 and TLSv1.2 values.
Timo Sirainen [Wed, 10 Jul 2013 06:43:19 +0000 (09:43 +0300)]
auth: Fixed crash for some lookups that didn't specify service name.
Timo Sirainen [Wed, 10 Jul 2013 06:37:06 +0000 (09:37 +0300)]
Maildir++ quota: When recreating, don't use maildirsize.lock file.
The point was never to even try to lock it, it just used to be an easier API
to create the file. Nowadays safe_mkstemp_hostpid_group() works just as
easily. This normally doesn't matter, but apparently Exim+CPanel leaves
maildirsize.lock files lying around, causing Dovecot to not update
maildirsize.
Timo Sirainen [Wed, 10 Jul 2013 05:58:36 +0000 (08:58 +0300)]
lib-ssl-iostream: Added support for ECDH/ECDHE cipher suites
Based on the login-common patch by David Hicks.
Timo Sirainen [Wed, 10 Jul 2013 05:47:49 +0000 (08:47 +0300)]
login-common: Compiler warning fix with OpenSSL v1.0.2+
Timo Sirainen [Wed, 10 Jul 2013 05:42:09 +0000 (08:42 +0300)]
lib-http: Minor comment update.
David Hicks [Sat, 6 Jul 2013 04:46:16 +0000 (14:46 +1000)]
login-common: Add support for ECDH/ECDHE cipher suites
ECDH temporary key parameter selection must be performed during OpenSSL
context initialisation before ECDH and ECDHE cipher suites can be used.
OpenSSL >= 1.0.2 automatically handles ECDH temporary key parameter selection.
For OpenSSL < 1.0.2 we must manually specify a named elliptic curve that
Dovecot will use to generate an ephemeral key pair. By default we try to use
the same named curve as that used in the server's private EC key file. If this
attempt fails, a fall back curve of NIST P-384 (secp384r1) is used instead.
RFC 6460 states that NIST P-384 MUST be used for cipher suites that include
AES-256. For cipher suites that include AES-128, RFC 6460 states that NIST
P-256 MUST be used. No matter which curve is used as a fall back option,
Dovecot will be non-compliant. The reason for selecting NIST P-384 as a fall
back curve is to ensure that the non-compliance is in the form of providing
too great a level of security for AES-128 cipher suites rather than too little
security for AES-256 cipher suites.
Timo Sirainen [Wed, 10 Jul 2013 03:54:57 +0000 (06:54 +0300)]
imapc: Reorganize code so that imapc_list works without imapc_storage.
Most importantly fixes crashes when imapc_list is trying to lookup hierarchy
separator before storage is created.
Timo Sirainen [Wed, 10 Jul 2013 03:05:20 +0000 (06:05 +0300)]
imapc: Code cleanup: Don't access imapc settings via storage.
Timo Sirainen [Wed, 10 Jul 2013 02:57:36 +0000 (05:57 +0300)]
imapc: Minor code cleanup.
Timo Sirainen [Wed, 10 Jul 2013 02:37:01 +0000 (05:37 +0300)]
auth: If passdb ldap returned no values for userdb_ fields, use userdb prefetch anyway.
Timo Sirainen [Wed, 10 Jul 2013 02:29:45 +0000 (05:29 +0300)]
auth: If passdb sql returned only NULLs for userdb_ fields, use userdb prefetch anyway.
Timo Sirainen [Wed, 10 Jul 2013 02:19:22 +0000 (05:19 +0300)]
pop3: Avoid assert-crash if client disconnects during LIST.
Timo Sirainen [Wed, 10 Jul 2013 00:27:52 +0000 (03:27 +0300)]
lib-http: Fix/cleanup to handling connect failures.
There was some kind of double-error handling which messed up things.
Timo Sirainen [Tue, 9 Jul 2013 23:50:04 +0000 (02:50 +0300)]
lib-http: Fixed tracking number of pending connections to host-port.
Timo Sirainen [Tue, 9 Jul 2013 23:31:05 +0000 (02:31 +0300)]
lib-http: Don't assert-crash in case of somewhat unexpected failing connections.
Timo Sirainen [Tue, 9 Jul 2013 22:44:40 +0000 (01:44 +0300)]
lib-http: Always try to connect to host's all IPs when connections fail.
Previously this was done only when the new connections started from the
first IP.
Timo Sirainen [Fri, 28 Jun 2013 16:48:37 +0000 (19:48 +0300)]
dns, lib-dns: Added support for async DNS PTR lookups.
Timo Sirainen [Fri, 28 Jun 2013 16:48:15 +0000 (19:48 +0300)]
Added net_gethostbyaddr() for DNS PTR lookups.
This code assumes we have IPv6 capability. Perhaps we should just require it
everywhere already..
Timo Sirainen [Thu, 27 Jun 2013 20:07:20 +0000 (23:07 +0300)]
lib-http: Added more debug messages.
Timo Sirainen [Thu, 27 Jun 2013 19:49:50 +0000 (22:49 +0300)]
lib-http: When successfully connected to a peer, don't drop the peer's pending connections.
They could have been intentionally created for other urgent requests.
Timo Sirainen [Thu, 27 Jun 2013 17:37:46 +0000 (20:37 +0300)]
lib-http: Don't crash if payload stream is referenced by caller after its connection is freed.
Timo Sirainen [Thu, 27 Jun 2013 17:32:01 +0000 (20:32 +0300)]
lib-http: Remove request timeout from being used during payload read.
The reading is done by the lib-http caller, which should have its own
timeouts.
Timo Sirainen [Thu, 27 Jun 2013 17:28:51 +0000 (20:28 +0300)]
lib-http: Call request's destroy callback always, not just on success.
Timo Sirainen [Thu, 27 Jun 2013 17:27:57 +0000 (20:27 +0300)]
lib-http: If connection times out, set the stream's errno to ETIMEDOUT in case it's used.
Timo Sirainen [Thu, 27 Jun 2013 17:26:50 +0000 (20:26 +0300)]
lib-http: When connection is freed, abort also the pending request.
Timo Sirainen [Thu, 27 Jun 2013 17:26:13 +0000 (20:26 +0300)]
lib-http: Timeouts were being handled wrong/leaked by ioloop switching.
Timo Sirainen [Thu, 27 Jun 2013 17:24:45 +0000 (20:24 +0300)]
lib-http: Minor code cleanup.
Timo Sirainen [Thu, 27 Jun 2013 15:04:04 +0000 (18:04 +0300)]
lib-http: Fixed hang when many connections were being created and closed.
Timo Sirainen [Thu, 27 Jun 2013 15:03:38 +0000 (18:03 +0300)]
lib-http: Added http_client_get_pending_request_count()
Timo Sirainen [Wed, 26 Jun 2013 19:23:20 +0000 (22:23 +0300)]
dsync: Recent changes broke remote dsync
Timo Sirainen [Wed, 26 Jun 2013 18:35:37 +0000 (21:35 +0300)]
config: Give a somewhat better warning for when using protocols=imaps or pop3s.
Timo Sirainen [Wed, 26 Jun 2013 17:53:01 +0000 (20:53 +0300)]
dsync: Added -1 parameter to do a "one way sync" without reverting changes.
This can be useful during migration when you don't want to delete any mails,
but you also don't want to send changes to the old server either.
Timo Sirainen [Wed, 26 Jun 2013 17:03:26 +0000 (20:03 +0300)]
dsync: Send DSYNC_BRAIN_FLAG_NO_MAIL_SYNC via ibc-stream to slave brain.
Timo Sirainen [Wed, 26 Jun 2013 16:47:40 +0000 (19:47 +0300)]
pop3c: Fixed mail saving to fail nicely, not assert-crash.
Timo Sirainen [Wed, 26 Jun 2013 16:33:38 +0000 (19:33 +0300)]
dsync: Fixed syncing when one of the backends supported GUIDs.
Timo Sirainen [Wed, 26 Jun 2013 12:44:08 +0000 (15:44 +0300)]
pop3c: Return error instead of crashing when trying to save a mail.
Timo Sirainen [Wed, 26 Jun 2013 12:29:43 +0000 (15:29 +0300)]
dsync: Fixed handling expunges when GUIDs aren't supported by the backend(s).
Timo Sirainen [Wed, 26 Jun 2013 11:37:34 +0000 (14:37 +0300)]
lib-sasl: Use dsasl_ prefix so we don't conflict with Cyrus SASL library.
Timo Sirainen [Tue, 25 Jun 2013 13:03:04 +0000 (16:03 +0300)]
dsync: Don't log index errors if modseq points beyond the current view.
Timo Sirainen [Tue, 25 Jun 2013 12:48:24 +0000 (15:48 +0300)]
mdbox: Resize mdbox index header if necessary also when rebuilding indexes.
Timo Sirainen [Tue, 25 Jun 2013 12:47:48 +0000 (15:47 +0300)]
lib-index: Assert-crash instead of writing a broken transaction with too large ext header update.
Timo Sirainen [Tue, 25 Jun 2013 12:46:50 +0000 (15:46 +0300)]
lib-index: Don't write a broken transaction if extension resize is done at first use.
Timo Sirainen [Mon, 24 Jun 2013 23:23:02 +0000 (02:23 +0300)]
Added signature for changeset
4b3c9c3e4fb8
Timo Sirainen [Mon, 24 Jun 2013 23:22:59 +0000 (02:22 +0300)]
Added tag 2.2.4 for changeset
4b3c9c3e4fb8
Timo Sirainen [Mon, 24 Jun 2013 23:22:58 +0000 (02:22 +0300)]
Released v2.2.4.
Timo Sirainen [Mon, 24 Jun 2013 22:24:51 +0000 (01:24 +0300)]
Make static analyzer happier.
Timo Sirainen [Mon, 24 Jun 2013 22:23:17 +0000 (01:23 +0300)]
doveadm deduplicate: Fixed error handling.
Timo Sirainen [Mon, 24 Jun 2013 21:10:39 +0000 (00:10 +0300)]
quota: Fixed quota_rule with non-uppercase INBOX.
Timo Sirainen [Mon, 24 Jun 2013 20:33:59 +0000 (23:33 +0300)]
imap-login: If CAPABILITY is already in server banner, don't ask for it again.
Timo Sirainen [Mon, 24 Jun 2013 20:14:35 +0000 (23:14 +0300)]
dsync: Fixed "export:/count" value in verbose_proctitle=yes
Timo Sirainen [Mon, 24 Jun 2013 20:10:20 +0000 (23:10 +0300)]
mbox: Avoid assert-crashing by too optimistically upgrading a lock to write-lock.
Timo Sirainen [Mon, 24 Jun 2013 20:06:45 +0000 (23:06 +0300)]
dsync: Don't crash at deinit when dsync fails early.
Timo Sirainen [Mon, 24 Jun 2013 19:25:47 +0000 (22:25 +0300)]
dsync: Don't try to find mailboxes from unwanted namespaces.
Timo Sirainen [Mon, 24 Jun 2013 13:37:48 +0000 (16:37 +0300)]
dsync: If verbose_proctitle=yes, show the current state in it.
Timo Sirainen [Mon, 24 Jun 2013 13:36:32 +0000 (16:36 +0300)]
dsync: State names were wrong in debug/error messages.
Timo Sirainen [Tue, 18 Jun 2013 15:56:15 +0000 (18:56 +0300)]
lib-storage: Fixed crash with some autocreated (e.g. shared) namespaces.
Timo Sirainen [Tue, 18 Jun 2013 15:54:20 +0000 (18:54 +0300)]
sdbox: If sdbox header is corrupted, resize it to make sure its size is correct.
Timo Sirainen [Tue, 18 Jun 2013 14:05:20 +0000 (17:05 +0300)]
doveadm: Added deduplicate command.
By default it deduplicates only by GUIDs. With -m parameter it deduplicates
by Message-Id: header.
Timo Sirainen [Tue, 18 Jun 2013 12:14:42 +0000 (15:14 +0300)]
doveadm: Added "flags" command to modify messages' flags.
Timo Sirainen [Tue, 18 Jun 2013 10:00:23 +0000 (13:00 +0300)]
mdbox: If mdbox header is corrupted, resize it to make sure its size is correct.
Timo Sirainen [Tue, 18 Jun 2013 09:59:17 +0000 (12:59 +0300)]
lib-index: Don't bother tracking if header/records were changed.
They aren't really needed. When mail_index_write() is called, we already
know we want to update the index.
Timo Sirainen [Tue, 18 Jun 2013 09:56:27 +0000 (12:56 +0300)]
lib-index: If error is found from transaction log, update dovecot.index so it won't be read again.
Timo Sirainen [Tue, 18 Jun 2013 09:15:50 +0000 (12:15 +0300)]
lib-sasl: API usage comment update
Timo Sirainen [Tue, 18 Jun 2013 08:59:21 +0000 (11:59 +0300)]
imap/pop3 proxy: Master user logins were broken by lib-sasl change.
Timo Sirainen [Mon, 17 Jun 2013 13:37:46 +0000 (16:37 +0300)]
pop3: Fixed crash at deinit
Timo Sirainen [Mon, 17 Jun 2013 11:39:59 +0000 (14:39 +0300)]
dsync: Minor fixes to checking if namespace is wanted to be synced.
Timo Sirainen [Sun, 16 Jun 2013 21:03:16 +0000 (00:03 +0300)]
Make static analyzer happier.
Timo Sirainen [Sun, 16 Jun 2013 21:31:22 +0000 (00:31 +0300)]
Added signature for changeset
5d9f52c9a287
Timo Sirainen [Sun, 16 Jun 2013 21:31:18 +0000 (00:31 +0300)]
Added tag 2.2.3 for changeset
5d9f52c9a287
Timo Sirainen [Sun, 16 Jun 2013 21:31:18 +0000 (00:31 +0300)]
Released v2.2.3.
Timo Sirainen [Sun, 16 Jun 2013 20:56:28 +0000 (23:56 +0300)]
mdbox: Minor fix to handling corrupted mdbox header.
Timo Sirainen [Sun, 16 Jun 2013 18:25:39 +0000 (21:25 +0300)]
fts-lucene: Fixed building without libstemmer
Timo Sirainen [Sun, 16 Jun 2013 18:15:42 +0000 (21:15 +0300)]
lib-imap: Fixed parsing literal8 in some situations.
Timo Sirainen [Sun, 16 Jun 2013 18:08:40 +0000 (21:08 +0300)]
istream-attachment-extractor: Fixed handling attachment as the message body without MIME.
Don't crash at the end after parsing the base64 data.
Timo Sirainen [Sun, 16 Jun 2013 17:15:42 +0000 (20:15 +0300)]
lib-storage: mail_storage_service_lookup() ignored input->service.
Timo Sirainen [Thu, 13 Jun 2013 23:14:09 +0000 (02:14 +0300)]
Compiler warning fix.
Timo Sirainen [Thu, 13 Jun 2013 21:23:45 +0000 (00:23 +0300)]
dsync: Fixed syncing renaming mailboxes with children.
So that the childrens' rename timestamps are at least as high as their
parents'.