Subject: disable local address expansion?

From: Dave Rasmussen <[email-masked]>
Date: Wed, 19 Jun 1996 17:02:31 -0500 (CDT)

We want do our local user address expansion at sendmail time, and not have
pine add the qualified host address to everyone's login, be it a single
address message, a message to an addressbook list, or whatever. Has anyone
else done this and if so, could you send me context diffs, pointers to
config file changes if possible, etc?

---

From: Dave Rasmussen <[email-masked]>
Date: Fri, 21 Jun 1996 11:48:20 -0500 (CDT)

>From [email-masked]  Wed Jun 19 17:22:53 1996
>Subject: disable local address expansion?
>To: [email-masked]
>Word-Of-The-Day: zoo
>

I feel like I'm talking to myself. We have a couple Dec Alpha machines
configured to look like one email address to our users. Unfortunately,
stock pine out of the box chooses to fully qualify everyone's address
as alpha1.csd.uwm.edu or alpha2.csd.uwm.edu instead of just csd.uwm.edu,
which is what would show up if pine just let sendmail worry about
qualifying addresses.

Needless to say, I found in init.c where it looks for the hostname and I
clobbered it to return csd.uwm.edu whenever it looks for localhost, which
at the moment looks like it might even work.

---

From: Mike Brudenell <[email-masked]>
Date: Fri, 21 Jun 1996 18:45:24 +0100 (BST)

To make a change from my usual suggestion that people look in the code
when wanting to reconfigure such things... :-)

Try looking in the Setup Configuration screen at a couple of options that
should let you do exactly what you want without any changes to the source
code.  You'll only need to use one of them: decide which is best for your
environment, then set it up in the systemwide default files (and in the
"fixed" systemwide defaults file if you don't want to let users override 
it in their personal settings).

Of interest to you...

----------
        OPTION: Use-Only-Domain-Name

This option is used only if the "user-domain" option is *not* set.  If set
to "Yes" (and user-domain is not used), then Pine strips the hostname from
your return ("From") address and when completing unqualified addresses
that you enter into the composer. 

If you set this, see also the "quell-user-lookup-in-passwd-file" feature. 
----------
        OPTION: User-Domain

This value specifies the domain part (right-hand side) of your return
address on outgoing email and is also used as the default domain for email
composed to a local user.  If unset, Unix Pine will obtain the domain from
the system.  Often this value will be set for your whole site by the
system administrator.

If you set this, see also the "quell-user-lookup-in-passwd-file" feature.
----------

So if your machines are all in the "csd.uwm.edu" domain and this is what
you want in the "@ portion" of unqualified e-mail addresses then just set
the "Use-Only-Domain-Name" to "Yes".

However if some of your machines are in a subdomain of "csd.uwm.edu" BUT
they are still to use "csd.uwm.edu" as the "@ portion" then you will
instead need to set "User-Domain" to "csd.uwm.edu".  (Trying to use
"Use-Only-Domain-Name" would result in host.subdomain.csd.uwm.edu using
"@subdomain.csd.uwm.edu" rather than "@csd.uwm.edu".)

Cheers,

Mike Brudenell                                         <[email-masked]>
------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/