Bernd Schoebel
2007-Apr-29 13:02 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
Hi,
it seems to me as exim is ignorring my ''/etc/email-addresses''.
Do I have to configure exim to use it? I think it is enabled by default.
exim rewrite the part of the email after the @ but not the part before.
I''m using Debian 4.0.
Thnaks
Bernd
Here are logs and config files:
---------------------------------------------------------------------
# This is /etc/email-addresses. It is part of the exim package
#
# This file contains email addresses to use for outgoing mail. Any local
# part not in here will be qualified by the system domain as normal.
#
# It should contain lines of the form:
#
#user: someone@isp.com
#otheruser: someoneelse@anotherisp.com
lix: my.email@gmx.de
----------------------------------------------------------------------
# /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=''Hugo''
dc_local_interfaces=''127.0.0.1''
dc_readhost=''gmx.net''
dc_relay_domains=''''
dc_minimaldns=''false''
dc_relay_nets=''''
dc_smarthost=''mail.gmx.net''
CFILEMODE=''644''
dc_use_split_config=''false''
dc_hide_mailname=''true''
dc_mailname_in_oh=''true''
dc_localdelivery=''mail_spool''
----------------------------------------------------------------------
2007-04-29 14:18:02 1Hi8Lq-000527-HB <= lix@Hugo U=lix P=local S=745
id=20070429121802.GA19341@Hugo
2007-04-29 14:18:03 1Hi8Lq-000527-HB ** bernd.schoebel@phil.stud.uni-erlangen.de
<Bernd.Schoebel@phil.stud.uni-erlangen.de> R=smarthost
T=remote_smtp_smarthost: SMTP error from remote mail server after MAIL
FROM:<lix@gmx.net> SIZE=1785 AUTH=lix@Hugo: host mail.gmx.net
[213.165.64.21]: 550 5.7.0 Sender address does not belong to logged in user
{mp049}
2007-04-29 14:18:03 1Hi8Lr-00052A-OY <= <> R=1Hi8Lq-000527-HB
U=Debian-exim P=local S=1730
2007-04-29 14:18:03 1Hi8Lq-000527-HB Completed
----------------------------------------------------------------------
Marc Haber
2007-May-26 10:35 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
On Sun, Apr 29, 2007 at 02:34:50PM +0200, Bernd Schoebel wrote:> it seems to me as exim is ignorring my ''/etc/email-addresses''.What do you expect it to do?> Do I have to configure exim to use it? I think it is enabled by default. > exim rewrite the part of the email after the @ but not the part before.Actually, it is supposed to rewrite the entire address.> --------------------------------------------------------------------- > # This is /etc/email-addresses. It is part of the exim package > # > # This file contains email addresses to use for outgoing mail. Any local > # part not in here will be qualified by the system domain as normal. > # > # It should contain lines of the form: > # > #user: someone at isp.com > #otheruser: someoneelse at anotherisp.com > > lix: my.email at gmx.deLooks fine.> ---------------------------------------------------------------------- > 2007-04-29 14:18:02 1Hi8Lq-000527-HB <= lix at Hugo U=lix P=local S=745 id=20070429121802.GA19341 at Hugo > 2007-04-29 14:18:03 1Hi8Lq-000527-HB ** bernd.schoebel at phil.stud.uni-erlangen.de <Bernd.Schoebel at phil.stud.uni-erlangen.de> R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after MAIL FROM:<lix at gmx.net> SIZE=1785 AUTH=lix at Hugo: host mail.gmx.net [213.165.64.21]: 550 5.7.0 Sender address does not belong to logged in user {mp049} > 2007-04-29 14:18:03 1Hi8Lr-00052A-OY <= <> R=1Hi8Lq-000527-HB U=Debian-exim P=local S=1730 > 2007-04-29 14:18:03 1Hi8Lq-000527-HB Completed > ----------------------------------------------------------------------What exactly did you do to generate the message that was rejected by GMX? 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 3221 2323190
Bernd Schoebel
2007-May-26 11:51 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
Hello Marc, On Sat, May 26, 2007 at 12:35:21PM +0200, Marc Haber wrote:> On Sun, Apr 29, 2007 at 02:34:50PM +0200, Bernd Schoebel wrote: > > it seems to me as exim is ignorring my ''/etc/email-addresses''. > > What do you expect it to do? >I expect it to rewrite my local email-address lix at Hugo to my gmx-address my.email at gmx.de. But it only rewrites it to lix at gmx.de. But this is not my gmx-address.> > Do I have to configure exim to use it? I think it is enabled by default. > > exim rewrite the part of the email after the @ but not the part before. > > Actually, it is supposed to rewrite the entire address. >I think so too. But actually it doesn''t on my system.> > --------------------------------------------------------------------- > > # This is /etc/email-addresses. It is part of the exim package > > # > > # This file contains email addresses to use for outgoing mail. Any local > > # part not in here will be qualified by the system domain as normal. > > # > > # It should contain lines of the form: > > # > > #user: someone at isp.com > > #otheruser: someoneelse at anotherisp.com > > > > lix: my.email at gmx.de > > > Looks fine. > > > ---------------------------------------------------------------------- > > 2007-04-29 14:18:02 1Hi8Lq-000527-HB <= lix at Hugo U=lix P=local S=745 id=20070429121802.GA19341 at Hugo > > 2007-04-29 14:18:03 1Hi8Lq-000527-HB ** bernd.schoebel at phil.stud.uni-erlangen.de <Bernd.Schoebel at phil.stud.uni-erlangen.de> R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after MAIL FROM:<lix at gmx.net> SIZE=1785 AUTH=lix at Hugo: host mail.gmx.net [213.165.64.21]: 550 5.7.0 Sender address does not belong to logged in user {mp049} > > 2007-04-29 14:18:03 1Hi8Lr-00052A-OY <= <> R=1Hi8Lq-000527-HB U=Debian-exim P=local S=1730 > > 2007-04-29 14:18:03 1Hi8Lq-000527-HB Completed > > ---------------------------------------------------------------------- > > What exactly did you do to generate the message that was rejected by > GMX? >I wrote a message with mutt to my other email bernd.schoebel at phil.stud.uni-erlangen.de. But it was rejected because exim tried to send it as lix at gmx.de which is not the correct address. It should have used my.email at gmx.de. The gmx SMTP-Server claimed that it was a differnet loggedin user. I hope, I made the problem clear now. Greetings Bernd
Marc Haber
2007-May-26 12:11 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
On Sat, May 26, 2007 at 01:51:28PM +0200, Bernd Schoebel wrote:> I wrote a message with mutt to my other email > bernd.schoebel at phil.stud.uni-erlangen.de. But it was rejected because > exim tried to send it as lix at gmx.de which is not the correct address. It > should have used my.email at gmx.de. The gmx SMTP-Server claimed that it > was a differnet loggedin user.Can you reproduce this by piping a message (or even a single line) to exim? For me, it seems to work: $ cat /etc/email-addresses mh: local.test at zugschlus.de $ echo foo | exim -d-all+rewrite mh+debian-packages at zugschlus.de <debug output deleted> Log entries: 2007-05-26 14:06:10 1Hrv2A-0004LI-K9 <= local.test at zugschlus.de U=mh P=local S=336 2007-05-26 14:09:41 1Hrv2A-0004LI-K9 => mh+debian-packages at zugschlus.de R=smarthost T=remote_smtp_smarthost H=torres.zugschlus.de [85.214.68.41] X=TLS-1.0:RSA_AES_256_CBC_SHA1:32 DN="C=DE,L=Mannheim,CN=torres.zugschlus.de (exim4 E-Mail System),EMAIL=mh\+torres.zugschlus.de-exim-tls-cert at zugschlus.de" 2007-05-26 14:09:41 1Hrv2A-0004LI-K9 Completed I''d like to see your Debug output. 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 3221 2323190
Bernd Schoebel
2007-May-26 13:12 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
Hello Marc, On Sat, May 26, 2007 at 02:11:19PM +0200, Marc Haber wrote:> On Sat, May 26, 2007 at 01:51:28PM +0200, Bernd Schoebel wrote: > > I wrote a message with mutt to my other email > > bernd.schoebel at phil.stud.uni-erlangen.de. But it was rejected because > > exim tried to send it as lix at gmx.de which is not the correct address. It > > should have used my.email at gmx.de. The gmx SMTP-Server claimed that it > > was a differnet loggedin user. > > Can you reproduce this by piping a message (or even a single line) to > exim? >Okay I tried that. But I only can do it with debugging output while I am root. So I created a new line in /etc/email-addresses ''root: my.email at gmx.de'' Othwerwiese I get ''exim: debugging permission denied''.> For me, it seems to work: > $ cat /etc/email-addresses > mh: local.test at zugschlus.de > $ echo foo | exim -d-all+rewrite mh+debian-packages at zugschlus.de > <debug output deleted> > > Log entries: > 2007-05-26 14:06:10 1Hrv2A-0004LI-K9 <= local.test at zugschlus.de U=mh P=local S=336 > 2007-05-26 14:09:41 1Hrv2A-0004LI-K9 => mh+debian-packages at zugschlus.de R=smarthost T=remote_smtp_smarthost H=torres.zugschlus.de [85.214.68.41] X=TLS-1.0:RSA_AES_256_CBC_SHA1:32 DN="C=DE,L=Mannheim,CN=torres.zugschlus.de (exim4 E-Mail System),EMAIL=mh\+torres.zugschlus.de-exim-tls-cert at zugschlus.de" > 2007-05-26 14:09:41 1Hrv2A-0004LI-K9 Completed > > I''d like to see your Debug output. >Here it comes: ------------------------------------------------------------------------ Exim version 4.63 uid=0 gid=0 pid=22094 D=1000000 Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005) Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages 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 Size of off_t: 8 configuration file is /var/lib/exim4/config.autogenerated log selectors = 00000ffc 00189001 cwd=/root 3 args: exim -d-all+rewrite bernd.schoebel at phil.stud.uni-erlangen.de trusted user admin user rewritten sender = root at Hugo rewrite_one_header: type=F: From: root <root at Hugo> LOG: MAIN <= root at Hugo U=root P=local S=295>>>>>>>>>>>>>>>> Exim pid=22094 terminating with rc=0 >>>>>>>>>>>>>>>>Hugo:~# Exim version 4.63 uid=102 gid=103 pid=22095 D=1000000 Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005) Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages 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 Size of off_t: 8 configuration file is /var/lib/exim4/config.autogenerated log selectors = 00000ffc 00189001 cwd=/var/spool/exim4 4 args: /usr/sbin/exim4 -d=0x1000000 -Mc 1Hrvqh-0005kM-5S trusted user admin user R: smarthost for bernd.schoebel at phil.stud.uni-erlangen.de T: remote_smtp_smarthost for bernd.schoebel at phil.stud.uni-erlangen.de LOG: MAIN ** bernd.schoebel at phil.stud.uni-erlangen.de R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after MAIL FROM:<root at gmx.net> SIZE=1327 AUTH=root at Hugo: host mail.gmx.net [213.165.64.21]: 550 5.7.1 Sorry, your envelope sender has been denied ( http://portal.gmx.net/serverrules ) {mp020} Exim version 4.63 uid=102 gid=103 pid=22097 D=1000000 Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005) Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages 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 Size of off_t: 8 configuration file is /var/lib/exim4/config.autogenerated log selectors = 00000ffc 00189001 cwd=/var/spool/exim4 8 args: /usr/sbin/exim4 -d=0x1000000 -t -oem -oi -f <> -E1Hrvqh-0005kM-5S trusted user admin user rewrite_one_header: type=F: From: Mail Delivery System <Mailer-Daemon at Hugo> rewrite_one_header: type=T: To: root at Hugo LOG: MAIN <= <> R=1Hrvqh-0005kM-5S U=Debian-exim P=local S=1318>>>>>>>>>>>>>>>> Exim pid=22097 terminating with rc=0 >>>>>>>>>>>>>>>>LOG: MAIN Completed>>>>>>>>>>>>>>>> Exim pid=22095 terminating with rc=0 >>>>>>>>>>>>>>>>Exim version 4.63 uid=102 gid=103 pid=22098 D=1000000 Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005) Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages 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 Size of off_t: 8 configuration file is /var/lib/exim4/config.autogenerated log selectors = 00000ffc 00189001 cwd=/var/spool/exim4 4 args: /usr/sbin/exim4 -d=0x1000000 -Mc 1Hrvqi-0005kP-Sn trusted user admin user R: system_aliases for root at hermodr R: system_aliases for lix at hermodr R: userforward for lix at hermodr R: procmail for lix at hermodr R: maildrop for lix at hermodr R: local_user for lix at hermodr T: appendfile for lix at hermodr LOG: MAIN => lix <root at Hugo> R=local_user T=mail_spool LOG: MAIN Completed>>>>>>>>>>>>>>>> Exim pid=22098 terminating with rc=0 >>>>>>>>>>>>>>>>------------------------------------------------------------------------ I noticed that the domain is also not right it should be @gmx.de but it actually is @gmx.net. Bye Bernd
Marc Haber
2007-May-26 13:51 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
On Sat, May 26, 2007 at 03:12:47PM +0200, Bernd Schoebel wrote:> admin user > rewritten sender = root at Hugo > rewrite_one_header: type=F: > From: root <root at Hugo> > LOG: MAIN > <= root at Hugo U=root P=local S=295I have here: admin user LOG: address_rewrite MAIN "mh at torres.zugschlus.de" from env-from rewritten as "local.test at zugschlus.de" by rule 1 rewritten sender = local.test at zugschlus.de rewrite_one_header: type=F: From: Marc Haber <mh at torres.zugschlus.de> LOG: address_rewrite MAIN "mh at torres.zugschlus.de" from from: rewritten as "local.test at zugschlus.de" by rule 1 newlen=43 newtype=F newtext: From: Marc Haber <local.test at zugschlus.de> remainder: LOG: MAIN <= local.test at zugschlus.de U=mh P=local S=336 I suspect that your exim either chokes about the mixed-case host name (try lower casing it), or about the fact that your box does not have an FQDN. 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 3221 2323190
Bernd Schoebel
2007-May-26 15:04 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
Hello Marc, On Sat, May 26, 2007 at 03:51:51PM +0200, Marc Haber wrote:> On Sat, May 26, 2007 at 03:12:47PM +0200, Bernd Schoebel wrote: > > admin user > > rewritten sender = root at Hugo > > rewrite_one_header: type=F: > > From: root <root at Hugo> > > LOG: MAIN > > <= root at Hugo U=root P=local S=295 > > I have here: > admin user > LOG: address_rewrite MAIN > "mh at torres.zugschlus.de" from env-from rewritten as "local.test at zugschlus.de" by rule 1 > rewritten sender = local.test at zugschlus.de > rewrite_one_header: type=F: > From: Marc Haber <mh at torres.zugschlus.de> > LOG: address_rewrite MAIN > "mh at torres.zugschlus.de" from from: rewritten as "local.test at zugschlus.de" by rule 1 > newlen=43 newtype=F newtext: > From: Marc Haber <local.test at zugschlus.de> > remainder: > LOG: MAIN > <= local.test at zugschlus.de U=mh P=local S=336 > > I suspect that your exim either chokes about the mixed-case host name > (try lower casing it), or about the fact that your box does not have > an FQDN. >Okay I tried it with a lower case hostname in /etc/exim4/update-exim4.conf.conf an now it worked. This line dc_other_hostnames=''Hugo'' I changed into dc_other_hostnames=''hugo'' and now it worked. Perhaps this should apper somewhere in exim4-config or the doc. Thank you for your help Marc. Bye Bernd
Marc Haber
2007-May-28 17:45 UTC
[Pkg-exim4-users] exim seems to ignore /etc/email-addresses
On Sat, May 26, 2007 at 05:04:50PM +0200, Bernd Schoebel wrote:> On Sat, May 26, 2007 at 03:51:51PM +0200, Marc Haber wrote: > > I suspect that your exim either chokes about the mixed-case host name > > (try lower casing it), or about the fact that your box does not have > > an FQDN. > > Okay I tried it with a lower case hostname in > /etc/exim4/update-exim4.conf.conf an now it worked. > This line > dc_other_hostnames=''Hugo'' > I changed into > dc_other_hostnames=''hugo'' > and now it worked.Good to know.> Perhaps this should apper somewhere in exim4-config or the doc.We shold probably lowercase the input read from update-exim4.conf.conf and/or hostname --fqdn. Crossposting to -devel to find out the other people''s opinion. 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 3221 2323190