Subject: Pine3.91 & Sendmail 8.7.3 userdb

From: [email-masked] (Mike S)
Date: 29 Jan 1996 16:05:35 -0500

I have recently upgraded to Sendmail 8.7.3 and I'm using the userdb
function to replace mailname@domain to First_Lastname@domain for
outgoing and incoming mail. 

Mailx uses this feature without any problems, but Pine continues to use
the mailname for outgoing mail.  I have tried various changes to .pinerc
to no avail, such as not setting any user or domain information and
quelling mailname lookup in the passwd file.

Could someone let me know if this is do-able with Pine 3.91. or if there
is a newer release that supports this.

Thanks,

---

From: [email-masked] (Jerry Lynch)
Date: 31 Jan 1996 22:50:27 GMT

Here is my attempt at writing a "FAQ-like" description of how I got the 
USERDB to work with pine.  I sent this to the Sendmail FAQ, but it
hasn't been added since I last checked.  I'm using an older version of
sendmail (8.6.12 I think), so there are no guarantees.  I would
encourage you to post a "feature request" or the likes to
comp.mail.sendmail about this.  I did so a while back, but never got
any response.

-------------------------------------------------------------------
  * How do I get the user database (userdb) to work with Pine.

        The basic incompatibility with Pine and the user database option
        is in how Pine writes From addresses in the header.  Most MUAs 
        write the From address as "From: user", while Pine, for reasons
        given in its documentation, write the From address as 
        "From: user@FQDN" (FQDN=fully qualified domain name).  Because of
        this difference, the user database does not rewrite pine headers.

        One solution to this problem is to make the following change in
        /etc/sendmail.cf after you have the user database option installed
        and working with other MUAs:

        In the "local info" section, add the following:

                # Define our userdb file for pine rewrites
                Kuserdb btree -o /etc/userdb.db

        After ruleset 0, add the following as ruleset 1:

   ##################################################
   ### Ruleset 1, rewrite sender header & envelope ##
   ##################################################
   #Thanks to Bjart Kvarme <[email-masked]>
   S1
   R$- < @ $=w . > $*   $: $1 < @ $2 . > $3 ?? $1       username@localhost ?
   R$+ ?? $+            $: $1 ?? $(userdb $2 : mailname $: @ $)
   R$+ ?? @             $@ $1                           Not found
   R$+ ?? $+            $>3 $2                          Found, rewrite
        
   #NOTE      ^^^^^^^^^^       ^^^^^^^^^^^^^^^^^^^^^^^^^
   #          Use Tab Characters  Use Tab Characters in these regions
   # to make three columns (the line with "mailname" only has 2 columns).

        Now the user database should re-write messages sent with Pine.
        If this still does not work for you, try adding the following
        to either the system wide pine.conf, pine.conf.fixed, or your 
        personal .pinerc:

                user-domain=localhost

        This has been known to help solve the problem for some people.
-------------------------------------------------------------------

Any thanks for the above should be sent to: Bjart Kvarme 
<[email-masked]>
who was kind enough to post this solution a while back.

-- 
Jerry	<[email-masked]>