Bug#249314: marked as done (exim4-config: better headers_rewrite & return_path)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 01 Dec 2004 08:33:22 -0800


Your message dated Wed, 1 Dec 2004 17:21:19 +0100
with message-id <20041201162119.GA3345@laptopasus.logic.univie.ac.at>
and subject line Bug#249314: exim4-config: better headers_rewrite & return_path
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 May 2004 17:33:33 +0000
>From verbovet@mccme.ru Sun May 16 10:33:33 2004
Return-path: <verbovet@mccme.ru>
Received: from cmail.yandex.ru [213.180.193.1] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BPPW1-0003i6-00; Sun, 16 May 2004 10:33:33 -0700
Received: from renard (ppp230.dialup.comptek.ru [213.180.195.230])
	by cmail.yandex.ru (8.12.11/8.12.11) with ESMTP id i4GHXPaw044503
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO)
	for <submit@bugs.debian.org>; Sun, 16 May 2004 21:33:28 +0400 (MSD)
	(envelope-from verbovet@mccme.ru)
Received: from alik (helo=localhost)
	by renard with local-esmtp (Exim 4.32)
	id 1BPPVs-0007xi-UJ
	for submit@bugs.debian.org; Sun, 16 May 2004 21:33:24 +0400
Date: Sun, 16 May 2004 21:33:24 +0400 (MSD)
From: Alexander Verbovetsky <verbovet@mccme.ru>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: exim4-config: better headers_rewrite & return_path
Message-ID: <Pine.LNX.4.58.0405162131510.1493@renard>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Ystatus: hits=-48.8 	ALLTRUSTEDIP
 	STRANGE_DUPLETS
 	LV_PAROL
 	BAYES_099
 	SHINGLES_1_2
 	PWORDS_80
 	CSHINGLES_1_2
 	NEWBAYES_099
 	CWORDS_80
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: exim4-config
Version: 4.32-2
Severity: wishlist

In case of smarthost, update-exim4.conf creats variables such that the
domain is rewritten, but name is preserved:
-----------------------------
case "$dc_eximconfig_configtype" in
        satellite|smarthost)
        if [ "${dc_hide_mailname}" = "true" ] && [ -n "${dc_readhost}" ] ; then
                DEBCONFheaders_rewriteDEBCONF='headers_rewrite = *@+local_domains $1@DCreadhost frs'
                DEBCONFreturn_pathDEBCONF='return_path = ${if match_domain{$sender_address_domain}{+local_domains}{${sender_address_local_part}@DCreadhost}fail}'
        fi
-----------------------------

It seems to me more logical to rewrite the whole address acording
/etc/email-addresses. I use the following:

headers_rewrite = *@+local_domains \
    ${lookup{${local_part}}lsearch{/etc/email-addresses}{$value}fail}
return_path = ${if match{$return_path}{\N^([^@]+)@renard$\N}\
        {${lookup{$1}lsearch{/etc/email-addresses}{$value}fail}}fail}

where "renard" is the name of my box.

Regards,
Alex

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.24
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R

Versions of packages exim4-config depends on:
ii  adduser                       3.52       Add and remove users and groups
ii  debconf [debconf-2.0]         1.4.25     Debian configuration management sy
ii  passwd                        1:4.0.3-28 Change and administer password and

-- debconf information:
  exim4/dc_noalias_regenerate: false
* exim4/dc_smarthost: ${readfile{/etc/smarthost}{}}
* exim4/dc_relay_domains:
* exim4/dc_relay_nets:
* exim4/mailname: renard
* exim4/dc_local_interfaces: 127.0.0.1
* exim4/dc_minimaldns: false
  exim4/exim3_upgrade: true
* exim4/dc_other_hostnames:
* exim4/dc_eximconfig_configtype: mail sent by smarthost; received via SMTP or fetchmail
  exim4/no_config: true
* exim4/hide_mailname: true
  exim4/dc_postmaster: none
* exim4/dc_readhost: mccme.ru
* exim4/use_split_config: true
  exim4/exim4-config-title:

---------------------------------------
Received: (at 249314-done) by bugs.debian.org; 1 Dec 2004 16:21:21 +0000
>From ametzler@logic.univie.ac.at Wed Dec 01 08:21:21 2004
Return-path: <ametzler@logic.univie.ac.at>
Received: from server.logic.univie.ac.at [131.130.190.41] ([PK8i9qzHAZNLOctH5hyAWKVRJJ1lrEnh])
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CZXEG-0003Yd-00; Wed, 01 Dec 2004 08:21:21 -0800
Received: from [131.130.190.61] (helo=labtopasus.logic.univie.ac.at ident=Debian-exim)
	by server.logic.univie.ac.at with esmtp (Exim 4.34)
	id 1CZXEF-000190-My
	for 249314-done@bugs.debian.org; Wed, 01 Dec 2004 17:21:19 +0100
Received: from andreas by labtopasus.logic.univie.ac.at with local (Exim 4.34)
	id 1CZXEF-0000sX-PQ
	for 249314-done@bugs.debian.org; Wed, 01 Dec 2004 17:21:19 +0100
Date: Wed, 1 Dec 2004 17:21:19 +0100
From: Andreas Metzler <ametzler@logic.univie.ac.at>
To: 249314-done@bugs.debian.org
Subject: Re: Bug#249314: exim4-config: better headers_rewrite & return_path
Message-ID: <20041201162119.GA3345@laptopasus.logic.univie.ac.at>
References: <Pine.LNX.4.58.0405162131510.1493@renard>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.58.0405162131510.1493@renard>
User-Agent: Mutt/1.5.6+20040722i
Delivered-To: 249314-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

On Sun, May 16, 2004 at 09:33:24PM +0400, Alexander Verbovetsky wrote:
> Package: exim4-config
> Version: 4.32-2
> Severity: wishlist
 
> In case of smarthost, update-exim4.conf creats variables such that the
> domain is rewritten, but name is preserved:
[quote from rewriing rules in remote_smtp_smarthost transport.] 
> It seems to me more logical to rewrite the whole address acording
> /etc/email-addresses. I use the following:
[...]

Hello,
That is already happening because normal rewriting

------------------
| begin rewrite
| # This rewriting rule is particularily useful for dialup users who
| # don't have their own domain, but could be useful for anyone.
| # It looks up the real address of all local users in a file
| *@+local_domains ${lookup{${local_part}}lsearch{/etc/email-addresses}\
|                    {$value}fail} Ffrs
------------------

already happens in addition[1] to the rewriting-at-transport-time,
therefore trying to do the same rewriting at transport-time is useless.
                  cu andreas
[1] much earlier, immediately after message _reception_.