Bug#280207: Some more information on this one

John Goerzen John Goerzen <jgoerzen@complete.org>, 280207@bugs.debian.org
Mon, 8 Nov 2004 10:11:53 -0600


On Mon, Nov 08, 2004 at 04:50:56PM +0100, Andreas Metzler wrote:
> On Mon, Nov 08, 2004 at 08:34:00AM -0600, John Goerzen wrote:
> > However, the wrong value got written to /etc/mailname -- it held the
> > hostname I entered (at the mailname question), not the mailname.  (See
> > Policy 11.6).  Note that this behavior also disagrees with that of other
> > MTAs, such as postfix.
> 
> Do you by chance know by heart whether postfix (and other MTAs) use
> /etc/mailname to qualify recipient addresses? I.e. does
> "echo foo | sendmail bar"
> end up at foo@<contents of /etc/mailname> or at foo@<local fqdn>?

Yes, it ends up at bar@<contents of /etc/mailname>.

I have the exact same setup with Postfix on another machine (satellite
system/nullmailer.)  Here's some data:

heinrich:~# cat /etc/mailname
complete.org
heinrich:~# grep complete.org /etc/postfix/main.cf
myhostname = heinrich.complete.org
mydestination = heinrich.complete.org, localhost, heinrich
 [ snip ]
heinrich:~# grep mailname /etc/postfix/main.cf
# is /etc/mailname.
#myorigin = /etc/mailname
myorigin = /etc/mailname
heinrich:~# echo foo | sendmail jgoerzen
heinrich:~# tail -n1 /var/log/mail.log
Nov  8 10:02:00 heinrich postfix/smtp[26261]: 4BFBC79B:
to=<jgoerzen@complete.org>, orig_to=<jgoerzen>,
relay=[removed for public post], delay=7,status=sent (250
Ok: queued as 73B81223)

> > This seems to be covered somewhat in #244095 and #259459.  However, I
> > disagree with waiting for post-sarge.  Right now, everyone will get a
> > broken setup if they answer the questions in the usual sense.  If you
> > fix it now, at least English speakers will get a working setup.
> [...]
> 
> I disagree on your evaluation, as it is not "everybody" but only every
> nullmailer setup without local mail, however I strongly consider
> opening this can of worms before sarge.

OK, I thought that this question may cause confusion with other setups,
though, too.  Though I admit I haven't looked at the debconf code at
all.

-- John