~paelzer/ubuntu/+source/dovecot:re-merge-artful

Last commit made on 2017-08-18
Get this branch:
git clone -b re-merge-artful https://git.launchpad.net/~paelzer/ubuntu/+source/dovecot
Only Christian Ehrhardt  can upload to this branch. If you are Christian Ehrhardt  please log in for upload directions.

Branch merges

Branch information

Name:
re-merge-artful
Repository:
lp:~paelzer/ubuntu/+source/dovecot

Recent commits

a55acd7... by Christian Ehrhardt 

changelog: update paths in mail stack delivery

All related changes to be merged with the changes that brought in the files
on next rebase when creating logical changes.

Signed-off-by: Christian Ehrhardt <email address hidden>

91586f0... by Christian Ehrhardt 

    - adapt autopkgtests

Signed-off-by: Christian Ehrhardt <email address hidden>

6682b92... by Christian Ehrhardt 

  * Use ssl key paths set up by Debian as default
    - adapt mail-stack-delivery default config
    - move old mail-stack-delivery symlinks to the new dovecot-core
      pem/key links

Merge Notes:
 - Debian adapted snakeoil later than Ubuntu
 - It was done with slightly different paths
 - We adapt our config to match on any new install
 - Old modified installations will keep their conf
 - Eventually these are "just" symlinks not considered conffiles
   - So no mv_conffile or such to not mess with existing setups
   - If they would the would ahve changed path and owning package

Details:
Debian places links:
K /etc/dovecot/private/dovecot.key -> /etc/ssl/private/ssl-cert-snakeoil.key
C /etc/dovecot/private/dovecot.pem -> /etc/ssl/certs/ssl-cert-snakeoil.pem

old Ubuntu "dovecot": had None
old Ubuntu package: "mail-stack-delivery"
K /etc/dovecot/private/dovecot.pem -> /etc/ssl/private/ssl-cert-snakeoil.key
C /etc/dovecot/dovecot.pem -> /etc/ssl/certs/ssl-cert-snakeoil.pem

One might ask why did Ubuntu use the .pem name for the key, but that is
the (unchangeable) past.

What will happen:
 - INSTALL: We will be like Debian does it, default works (good)
 - UPGRADE: On a system which never had package mail-stack-delivery the
   ssl setup by Debian works as intended (good)
 - UPGRADE: On a system that had mail-stack-delivery the dovecot postinst
   will try to create the new links to pem/key
   - the link for the cert will fail as that was the old ubuntu
     link for the key (/etc/dovecot/private/dovecot.pem)
     - That will leave the default setup as intended by Debian broken
   - Therefore we move the keys mail-stack-delivery had set up in the
     place dovecot-core does (on upgrade)
     - On new install there is no need, so skip
     - Only on the matchign upgrade (like conffile actions) so with
       version check
     - There are certain cases to this then:
       - if the user had a custom key setup on the deault links this will
         retain this
       - if the user had no custom key setup the links point to the same
         default snakeoil keys as set up by dovecot-core - so the mv
         happens but is a no-op
       - if the user had removed the symlinks the dovecot-core set up keys are
         untouched (check on exist)
       - if a user had installed dovecot-core and mail-stack-delivery but
         upgrades dovecot-core before mail-stack-delivery this could overwrite
         the key it set up, but that is avoided by not moving if already
         pointing to the cert. (That is required as the new cert and the old
         key path collide)

Signed-off-by: Christian Ehrhardt <email address hidden>

e65c157... by Christian Ehrhardt 

update-maintainer

2b5b692... by Christian Ehrhardt 

reconstruct-changelog

Signed-off-by: Christian Ehrhardt <email address hidden>

3529976... by Christian Ehrhardt 

merge-changelogs

d50fe1f... by Christian Ehrhardt 

handle conffile removal of /etc/init/dovecot.conf

(cherry picked from commit 94ebfd6961354830c0bfc66b184898480a712ebc)
Signed-off-by: Christian Ehrhardt <email address hidden>
(cherry picked from commit b8dab90aa2321e0a93a99a78f033564990fd559d)
Signed-off-by: Christian Ehrhardt <email address hidden>

144a83a... by Christian Ehrhardt 

d/control drop build dependency to libclucene-dev

(cherry picked from commit 800699a720008f63890e9c68c208e17cd458cc67)
(cherry picked from commit e03620380d352f2619feffcb8cef38a0c788dff2)

e6de47d... by Christian Ehrhardt 

drop package dovecot-lucene (LP: #1524526)

(cherry picked from commit e3fdfcde13d5aab7a38b0f8910c11b2b535449ba)
Signed-off-by: Christian Ehrhardt <email address hidden>
(cherry picked from commit 25cf9abcb793c8e010ebfb6d9ff06bb013db0f9f)

0e0a923... by Christian Ehrhardt 

2.2.22-1ubuntu Add mail-stack-delivery package

(cherry picked from commit c2eeec1ba4e6b1dd68b068482d7b0edf183feb4a)
Signed-off-by: Christian Ehrhardt <email address hidden>
(cherry picked from commit b2132dfbf30e2057e646654f071c5f009cb429c6)