Some more information on this one

John Goerzen jgoerzen@complete.org
Mon, 8 Nov 2004 08:34:00 -0600


Hi,

OK, there are two problems here:

1. The templates in the configure program are confusing and misleading;

2. The wrong value is written for /etc/mailname.

I found that if I entered my system's host name (not mail name) at the
mail name prompt, answered yes to the question about rewriting headers,
and then entered the mail name at the question about the rewriting
values, Exim behaved properly.

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.

I think it is very confusing to ask the user for a "mail name" when it
is really looking for a host name.

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.

To address this, I suggest:

1. First, ask the user for the system's mail name -- the default value
for unqualified addresses, etc.  Store this in /etc/mailname.

2. Ask the user for the system's FQDN, using hostname -f for the
default.

3. If the answers for 1 and 2 are different, use the answer for #1 as
the answer from the "rewriting" prompt that's there today.

Thanks for your work on this.

-- John