Bug#314184: exim4-config: Missing macro for SMTP smarthosts which require AUTH but do not provide encrypted connection.

Matej Cepl Matej Cepl <matej@ceplovi.cz>, 314184@bugs.debian.org
Wed, 15 Jun 2005 00:55:51 -0400


This is a multi-part MIME message sent by reportbug.

--===============1564689336==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: exim4-config
Version: 4.50-8
Severity: normal
Tags: patch


Many free SMTP servers require authentication (which is IMHO
very good thing), but do not provide encrypted connection (which
is not that good, but what could I do?). Exim4 provides for this
purpose configuration macro AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS
(which is not documented at all), but it is not used in
transport/30_exim4-config_remote_smtp_smarthost, which breaks
the delivery. Please, consider applying the attached patch (or
creating a better solution).

Thanks,

    Matej

- Package-specific info:
Exim version 4.50 #1 built 27-May-2005 08:08:19
Copyright (c) University of Cambridge 2004
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Configuration file is /var/lib/exim4/config.autogenerated
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to replace
# the DEBCONFsomethingDEBCONF strings in the configuration template files.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file

dc_eximconfig_configtype='smarthost'
dc_other_hostnames='vysocina'
dc_local_interfaces=''
dc_readhost='chelcicky:localhost'
dc_relay_domains=''
dc_minimaldns='true'
dc_relay_nets='192.168.0.0/24'
dc_smarthost='smtp.seznam.cz'
#dc_smarthost='mitmanek'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
mailname:chelcicky.vysocina

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.11
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)

Versions of packages exim4-config depends on:
ii  adduser                 3.63             Add and remove users and groups
ii  debconf [debconf-2.0]   1.4.30.13        Debian configuration management sy
ii  passwd                  1:4.0.3-31sarge5 change and administer password and

-- debconf information:
* exim4/dc_smarthost: mitmanek
  exim4/dc_relay_domains:
* exim4/exim3_upgrade: true
* exim4/dc_eximconfig_configtype: mail sent by smarthost; received via SMTP or fetchmail
* exim4/dc_readhost: chelcicky:localhost
  exim4/exim4-config-title:
  exim4/dc_noalias_regenerate: false
* exim4/dc_relay_nets: 192.168.0.0/24
* exim4/mailname: chelcicky.vysocina
* exim4/dc_local_interfaces:
* exim4/dc_minimaldns: true
* exim4/dc_other_hostnames: vysocina
* exim4/no_config: true
* exim4/hide_mailname: true
* exim4/dc_postmaster: matej
* exim4/use_split_config: false
  exim4/internal/exim4-config.reconfigure: false

--===============1564689336==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="exim4.conf.template.diff"

--- exim4.conf.template	2005/06/15 04:15:48	1.3
+++ exim4.conf.template	2005/06/15 04:48:34
@@ -1357,8 +1357,11 @@
 remote_smtp_smarthost:
   debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
   driver = smtp
-  #MC#hosts_try_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
-  hosts_require_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
+  .ifdef AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS
+    hosts_require_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
+  .else
+    hosts_try_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
+  .endif
   tls_tempfail_tryclear = false
   DEBCONFheaders_rewriteDEBCONF
   DEBCONFreturn_pathDEBCONF

--===============1564689336==--