Package: dovecot-core
Version: 1:2.1.7-6
Severity: wishlist

Hi,

Because 'dovecot-lda' is „special” I've setup the following to make
it work with Postfix securely without 'sudo' of setuid root:

1) info_log path set to a world writable file:
  
  # conf.d/15-lda.conf
  protocol lda {
    info_log_path = /var/log/dovecot/lda.info
    #mail_plugins = $mail_plugins
  }

2) create /var/log/dovecot/lda.info (dovecot:adm 0662)

  install -v -o dovecot -g adm -m 0751 -d /var/log/dovecot

  touch /var/log/dovecot/lda.info
  chown dovecot:adm /var/log/dovecot/lda.info
  chmod 0662 /var/log/dovecot/lda.info

3) add /etc/logrotate.d/dovecot-lda

  /var/log/dovecot/lda.info {
    create 0662 dovecot adm
    compress
    delaycompress
    notifempty
    rotate 60
    weekly
  }

4) remove file /var/log/dovecot/lda.info on purge if empty

5) remove directory /var/log/dovecot on purge if empty (quiet)

If anyone doesn't use dovecot-lda this setup is of no inconvenience.

I didn't figure out yet how dovecot-lmtpd is supposed to integrate
with Postfix. Maybe there is no difference?
  mailbox_command = /usr/lib/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"

Cheers


-- Package-specific info:

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dovecot-core depends on:
ii  adduser         3.113+nmu3
ii  libbz2-1.0      1.0.6-4
ii  libc6           2.13-37
ii  libpam-runtime  1.1.3-7.1
ii  libpam0g        1.1.3-7.1
ii  libssl1.0.0     1.0.1c-4
ii  openssl         1.0.1c-4
ii  ucf             3.0025+nmu3
ii  zlib1g          1:1.2.7.dfsg-13

dovecot-core recommends no packages.

Versions of packages dovecot-core suggests:
pn  dovecot-gssapi        <none>
ii  dovecot-imapd         1:2.1.7-6
pn  dovecot-ldap          <none>
pn  dovecot-lmtpd         <none>
ii  dovecot-managesieved  1:2.1.7-6
pn  dovecot-mysql         <none>
pn  dovecot-pgsql         <none>
ii  dovecot-pop3d         1:2.1.7-6
ii  dovecot-sieve         1:2.1.7-6
pn  dovecot-solr          <none>
pn  dovecot-sqlite        <none>
pn  ntp                   <none>

Versions of packages dovecot-core is related to:
ii  dovecot-core [dovecot-common]  1:2.1.7-6
ii  dovecot-dbg                    1:2.1.7-6
pn  dovecot-dev                    <none>
pn  dovecot-gssapi                 <none>
ii  dovecot-imapd                  1:2.1.7-6
pn  dovecot-ldap                   <none>
pn  dovecot-lmtpd                  <none>
ii  dovecot-managesieved           1:2.1.7-6
pn  dovecot-mysql                  <none>
pn  dovecot-pgsql                  <none>
ii  dovecot-pop3d                  1:2.1.7-6
ii  dovecot-sieve                  1:2.1.7-6
pn  dovecot-sqlite                 <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to