~ubuntu-branches/ubuntu/hardy/exim4/hardy-security

« back to all changes in this revision

Viewing changes to debian/exim4-config.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber, Andreas Metzler, Marc Haber, Christian Perrier
  • Date: 2007-06-18 10:26:20 UTC
  • Revision ID: james.westby@ubuntu.com-20070618102620-vsu15bc4kj2v72bw
Tags: 4.67-3
[ Andreas Metzler ]
* Initialize permissions of bug-script and exim-adduser as 755, since diff
  does not preserve permissions. Both were shipped as 644 in binary packages
  not built with svn-buildpackage.  Closes: #420446

[ Marc Haber ]
* Merge experimental changes from revision 2018:2073
  * Fix "Zahlendreher" in closure of #427690. Closes: #427690
  * update-exim4.conf:
    * finally get rid of the DEBCONFfooDEBCONF stuff. That information
      is now passed to the configuration by ue4c by directly setting exim
      macros in the configuration. This has caused both the configuration
      and ue4c to be much shorter.
    * run with -e, -C and -u.
    * convert input read from update-exim4.conf.conf to lower case
    * barf if strange characters are found in ue4cc. Closes: #400294
  * Remove superfluous "x$foo" = "xbar" constructs from scripts
  * Add routers to reject mail to accounts with low UID.
    Closes: #400790.
  * Make daily cron job barf if /usr/bin/mail is not found. Have
    exim4-base recommend mailx. Closes: #427690
  * Have all -daemon packages provide exim4-localscanapi-1.0 and
    exim4-localscanapi-1.1 as requested by Magnus Holmgren while fixing
    #426425. Also include exim4-localscan-plugin-config script with
    exim4-dev. Thanks to Magnus for helping with this. Closes: #428274
  * remove /etc/exim4/email-addresses symlink and document this.
    Thanks to Josip Rodin. Closes: #420578
  * introduce conf.d/250_exim4-config_lowuid which optionally allows
    to reject (or alias away) mail to low-uid accounts that are not
    listed in an exception list. Thanks to Dominic Hargreaves,
    Marc Sherman and Ross Boylan. Closes: #400790, #307768, #331716
  * remove versioned depends on cron, since the version we need is
    well before sarge.
  * Add cron | fcron dependency. Fcron is going to be removed again
    at the first sign of trouble. Closes: #381806
  * remove move_exim3_spool debconf template. Closes: #391762
  * replace openssl gendh with openssl dhparam. Closes: #413235
  * adapt docs, README and manpages
  * have Hilko fix the lynx-dump postprocessing to repair generating
    README.Debian text version. Thanks!
  * increase README.Debian generation robustness. Thanks to Hilko.
  * debconf:
    * Partly apply Christian Perrier's patch for reviewed
      templates and control file. Closes: #426980
    * Other minor template changes.
    * get rid of "mails" in debconf templates, use "messages" instead.
      Re-word local_interface debconf template. Other minor changes.
      Thanks to Jens Seidel and Christian Perrrier. Closes: #394976
    * re-work exim4-config.config logic to have split/non-split config
      asked last instead of first. This partly addresses #410756.
    * Add exim4-daemon-heavy.templates, exim4-daemon-light.templates
      and exim4.templates to POTFILES.in
    * Re-Word dc_other_hostnames debconf template.
      Thanks to Hans G. Ehrbar. Closes: #421860

  [ Christian Perrier ]

  * Debconf translation updates:
    - French
    - Ukrainian. Closes: #427793
    - Bulgarian.
    - Thai.
    - Galician.
    - Swedish.
    - Punjabi.
    - Indonesian.
    - Italian.
    - Khmer.
    - Traditional Chinese. Closes: #428072, #428069.
    - Portuguese.
    - Simplified Chinese. Closes: #428072, #428069.
    - Marathi
    - Romanian. Closes: #429242
    - Russian. Closes: #429352

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
# changes, so this is usually fine, but will break local schemes that mess
37
37
# around with multiple versions of the file.
38
38
#
39
 
# update-exim4.conf uses this file to determine variable values to replace
40
 
# the DEBCONFsomethingDEBCONF strings in the configuration template files.
 
39
# update-exim4.conf uses this file to determine variable values to generate
 
40
# exim configuration macros for the configuration file.
41
41
#
42
42
# Most settings found in here do have corresponding questions in the
43
43
# Debconf configuration, but not all of them.
51
51
# remove leading and ending whitespace, shrink multiple whitespace, separate
52
52
# entries with commas
53
53
poma="$(echo "$1" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' -e 's/[[:space:];][[:space:]]*/,/g')"
54
 
if [ "xnone" != "x$poma" ] && [ "x" != "x$poma" ]; then
 
54
if [ "none" != "$poma" ] && [ "" != "$poma" ]; then
55
55
        echo "root: ${poma}" >> /etc/aliases
56
56
fi
57
57
}
280
280
        
281
281
        # overwrite dc_localdelivery with value stored in debconf db unless
282
282
        # it is set to something else than maildir_home or mail_spool.
283
 
        if [ "x${dc_localdelivery}" = "x" ] ||
 
283
        if [ "${dc_localdelivery}" = "" ] ||
284
284
                [ "$(convert_transport_to_long ${dc_localdelivery})" != "locally customized" ] ; then 
285
285
                db_get exim4/dc_localdelivery || true
286
286
                dc_localdelivery="$(convert_transport_to_short "$RET")"
296
296
        db_fget "exim4/dc_other_hostnames" mailname || true
297
297
        dc_mailname_in_oh="$RET"
298
298
 
299
 
        [ "x${CFILEMODE}" = "x" ] && CFILEMODE=644
 
299
        [ "${CFILEMODE}" = "" ] && CFILEMODE=644
300
300
 
301
301
        db_get exim4/dc_postmaster
302
302
        dc_postmaster="$(printf '%s\n' "$RET" | stripwhitespace)"
305
305
                writealiases
306
306
        fi
307
307
        if ! grep -q '^root:[[:space:]]*[[:alnum:]]' /etc/aliases && \
308
 
                [ "x${dc_postmaster}" != "xnone" ]; then
 
308
                [ "${dc_postmaster}" != "none" ]; then
309
309
                addrootalias "${dc_postmaster}"
310
310
        fi
311
311