On Fri, Apr 15, 2005 at 09:14:35PM -0700, Andrew Pimlott wrote: > I have just installed a Debian unstable machine and configured exim4 for > "mail sent by smarthost; no local mail". This has two weird effects > (which I don't think are the same as bug 297841): (Throughout this > message, I have replaced my domain with example.com.) > > 1. Mail to real-andrew is not delivered locally; instead, exim tries to > deliver to [EMAIL PROTECTED]
This is unreproducible here, it delivers fine to the smarthost: [17/[EMAIL PROTECTED] sid]:~$ /usr/sbin/exim4 -bt [EMAIL PROTECTED] R: smarthost for [EMAIL PROTECTED] [EMAIL PROTECTED] router = smarthost, transport = remote_smtp_smarthost host 82018.int0.torres.int.l21.ma.zugschlus.de [192.168.130.1] [18/[EMAIL PROTECTED] sid]:~$ On a satellite host, the system cannot know which accounts to exist on the smarthost, and [EMAIL PROTECTED] could be something different from [EMAIL PROTECTED] The real- prefix is something local to the _local_ system. > Since root is aliased to > real-andrew, this means that system messages are not delivered. So it would be a good idea to alias root to something else. > The > debconf questions imply that real- mail should be delivered locally > even with "mail sent by smarthost; no local mail". No. "no local mail" does really mean, "no local mail", and the templates cannot be changed before sarge release. > 2. Mail to [EMAIL PROTECTED] fails with "451 Temporary local problem". > The log message looks bizarre: > > 2005-04-15 13:12:40 H=localhost [127.0.0.1]:33800 I=[127.0.0.1]:25 > U=andrew F=<[EMAIL PROTECTED]> temporarily rejected RCPT <[EMAIL PROTECTED]>: > error in redirect data: domain missing or malformed in "andrew@" > > I don't know where "andrew@" came from. I think that @localhost > mail should be delivered locally even with "mail sent by smarthost; > no local mail", especially since that's what fetchmail uses. If you use fetchmail, "no local mail" is the wrong choice. You need the configuration option which explicitly mentions fetchmail. > However, even if you want to reject such mail, the error status and > log message should probably made more clear. The wrong domain is caused by the domain part being rewritten to the empty string since "dc_readhost" remains unset when you choose not to hide the system's mailname. I have to consult Andreas whether this is intended or not. 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]