File: dovecot-lmtpd.postinst

package info (click to toggle)
dovecot 1%3A2.4.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 59,852 kB
  • sloc: ansic: 824,112; makefile: 8,144; sh: 6,334; cpp: 1,867; python: 1,828; yacc: 412; lex: 320; perl: 281; xml: 232
file content (23 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
  CONFFILES="conf.d/20-lmtp.conf"

  for conffile in $CONFFILES ; do
    # Tell ucf that the file in /usr/share/dovecot is the latest
    # maintainer version, and let it handle how to manage the real
    # configuration file in /etc/dovecot.
    ucf --three-way "/usr/share/dovecot/$conffile" "/etc/dovecot/$conffile"
    ucfr dovecot-lmtpd "/etc/dovecot/$conffile"
  done

  cat <<EOF > /usr/share/dovecot/protocols.d/lmtpd.protocol
protocols {
  lmtp = yes
}
EOF
fi

#DEBHELPER#