Bug#312361: marked as done (exim4: Exim incorrectly rejects "'" as illegal character in email address)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 07 Jun 2005 12:33:42 -0700


Your message dated Tue, 7 Jun 2005 21:21:28 +0200
with message-id <20050607192128.GA2019@torres.l21.ma.zugschlus.de>
and subject line Bug#312361: exim4: Exim incorrectly rejects "'" as illegal character in email address
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; 7 Jun 2005 17:23:44 +0000
>From simon@mungewell.org Tue Jun 07 10:23:44 2005
Return-path: <simon@mungewell.org>
Received: from shawidc-mo1.cg.shawcable.net (pd3mo2so.prod.shaw.ca) [24.71.223.10] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Dfhnk-0000Ds-00; Tue, 07 Jun 2005 10:23:44 -0700
Received: from pd2mr1so.prod.shaw.ca
 (pd2mr1so-qfe3.prod.shaw.ca [10.0.141.110]) by l-daemon
 (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004))
 with ESMTP id <0IHQ00D2S5MH7L40@l-daemon> for submit@bugs.debian.org; Tue,
 07 Jun 2005 11:23:05 -0600 (MDT)
Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151])
 by pd2mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar
 15 2004)) with ESMTP id <0IHQ00BE85MHAHJ0@pd2mr1so.prod.shaw.ca> for
 submit@bugs.debian.org; Tue, 07 Jun 2005 11:23:05 -0600 (MDT)
Received: from slone.mungewell.org
 (S010600045adae6e6.lb.shawcable.net [24.64.165.44])
 by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003))
 with ESMTP id <0IHQ00B2M5MGVK@l-daemon> for submit@bugs.debian.org; Tue,
 07 Jun 2005 11:23:05 -0600 (MDT)
Received: from simon by slone.mungewell.org with local (Exim 4.50)
	id 1Dfhn0-0000WQ-1S; Tue, 07 Jun 2005 11:22:58 -0600
Date: Tue, 07 Jun 2005 11:22:57 -0600
From: Simon Wood <simon@mungewell.org>
Subject: exim4: Exim incorrectly rejects "'" as illegal character in email
 address
To: Debian Bug Tracking System <submit@bugs.debian.org>
Message-id: <E1Dfhn0-0000WQ-1S@slone.mungewell.org>
MIME-version: 1.0
X-Mailer: reportbug 3.12
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.4 required=4.0 tests=BAYES_00,FAKE_HELO_SHAW_CA,
	HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: exim4
Version: 4.50-8
Severity: normal

When replying to an email with a "'" in the address, Exim4 rejects the
address as containing "restricted characters".

According to RFC2822 the "'" is legal.

Example error:
---
* Connecting to SMTP server: localhost ...
[18:48:53] SMTP< 220 slone.mungewell.org ESMTP Exim 4.50 Mon, 06 Jun
2005 18:48:53 -0600
[18:48:53] SMTP> HELO slone.mungewell.org
[18:48:53] SMTP< 250 slone.mungewell.org Hello localhost [127.0.0.1]
[18:48:53] SMTP> MAIL FROM:<simon@mungewell.org>
[18:48:53] SMTP< 250 OK
[18:48:53] SMTP> RCPT TO:<simon'stest@localhost>
[18:48:53] SMTP< 550 restricted characters in address
** error occurred on SMTP session
** Error occurred while sending the message.
---

Strangely enough the offending email had already made it through the
fetchmail/exim system for me to read it in the first place....

Mail client is sylpeed-claws.

Simon.

-- 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'

dc_eximconfig_configtype='smarthost'
dc_other_hostnames='mungewell.org:mungewell.tele2.net:mungewell.plus.com:mungewell.org'
dc_local_interfaces='127.0.0.1'
dc_readhost='mungewell.org'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='shawmail.lb.shawcable.net'
#dc_smarthost='relay.plus.net'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
mailname:mungewell.org

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.31
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages exim4 depends on:
ii  exim4-base                    4.50-8     support files for all exim MTA (v4
ii  exim4-daemon-light            4.50-8     lightweight exim MTA (v4) daemon

-- no debconf information

---------------------------------------
Received: (at 312361-done) by bugs.debian.org; 7 Jun 2005 19:21:31 +0000
>From mh+debian-packages@zugschlus.de Tue Jun 07 12:21:31 2005
Return-path: <mh+debian-packages@zugschlus.de>
Received: from 5301d.unt0.torres.l21.ma.zugschlus.de (torres.int.l21.ma.zugschlus.de) [217.151.83.1] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Dfjdi-0005gt-00; Tue, 07 Jun 2005 12:21:31 -0700
Received: from mh by torres.int.l21.ma.zugschlus.de with local (Exim 4.50)
	id 1Dfjdg-0000oP-PI; Tue, 07 Jun 2005 21:21:28 +0200
Date: Tue, 7 Jun 2005 21:21:28 +0200
From: Marc Haber <mh+debian-packages@zugschlus.de>
To: Simon Wood <simon@mungewell.org>, 312361-done@bugs.debian.org
Subject: Re: Bug#312361: exim4: Exim incorrectly rejects "'" as illegal character in email address
Message-ID: <20050607192128.GA2019@torres.l21.ma.zugschlus.de>
References: <E1Dfhn0-0000WQ-1S@slone.mungewell.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1Dfhn0-0000WQ-1S@slone.mungewell.org>
User-Agent: Mutt/1.3.28i
Delivered-To: 312361-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(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_2005_01_02
X-Spam-Level: 

Hi,

On Tue, Jun 07, 2005 at 11:22:57AM -0600, Simon Wood wrote:
> When replying to an email with a "'" in the address, Exim4 rejects the
> address as containing "restricted characters".
> 
> According to RFC2822 the "'" is legal.

That is a feature. See /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt.

If you really need these strange characters, you can override the setting.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835