Subject: pine: user-domain

From: [email-masked] (Mark Foley)
Date: 10 May 1995 05:28:53 GMT

OK pine experts, I need help. I have a Sales/Marketing weenie in my
office who uses a Mac and doesn't understand good 'ole command line
'mail'. So I have told him to use 'pine'. This works OK for  reading
mail, but pine wants to stick our domain name on all sent messages. Our
domain name is 'novatec', so all this guy's Reply-to: addresses are
dave@novatec. For mail sent outside our domain, we use a uucp mail
server via dialup. With regular mail, return addresses on the mail are
just the user name (no domain) and either sendmail, or the remote mail
server knows to put @novatec.ascinet.com on the end of the user name to
create the return address. However, it seems that if there is already a
domain name on the return address, that name is kept.

So, bottom line is this. When I send mail to a local user on our domain
using 'mail', the From address is:

    mfoley

and when I send this message to a remote user the From address is:

    [email-masked]

When our sales guy using pine sends to a local user the From address is:

    dave@novatec

and when he sends to a remote user the From address is also:

    dave@novatec

Needless to say, any mail of Dave's which is replyed to bounces. How do I
fix this? I have tried changing user-domain and use-only-domain-name in
the .pinerc file with no effect. In fact, I always get

user-domain=

when I do pine -conf, regardless of what I set the value to. I do not
have a system-wide pinerc, even though the pine -conf says I do in 
/usr/local/lib/pine.conf (this file doesn't exist).

What's my problem? Please email advice.

---

From: [email-masked] (Trey Harris)
Date: 11 May 1995 01:42:23 GMT

In article <[email-masked]>,
>What's my problem? Please email advice.

Your problem is that you're trying to get Pine to do more than it can (if 
I'm not mistaken as to what you're trying to say).  You need to make some 
sendmail rewrite rules on your Unix host so that it will properly rewrite 
the header on mail going out on your UUCP link.  (If you haven't messed 
with /etc/sendmail.cf files before, then you're in for a TREAT.  I'd 
suggest _sendmail_ (Costales, Allman & Rickert. Sebastopol, CA:O'Reilly, 
1994) to show you how to do it, it's hairy.)

You could try setting user-domain to novatec.ascinet.com, though, but it 
sounds to me like it's a rewrite rule problem.
-- 
Trey Harris                              http://sunsite.unc.edu/harris
  System Administrator, Project Isis, Office of Information Technology
                       The University of North Carolina at Chapel Hill

---

From: [email-masked] (Mark Foley)
Date: 12 May 1995 06:42:42 GMT

Trey Harris ([email-masked]) wrote:
: In article <[email-masked]>,
: Mark Foley <[email-masked]> wrote:
: >So, bottom line is this. When I send mail to a local user on our domain
: >using 'mail', the From address is:
: >    mfoley
: >and when I send this message to a remote user the From address is:
: >    [email-masked]
: >When our sales guy using pine sends to a local user the From address is:
: >    dave@novatec
: >and when he sends to a remote user the From address is also:
: >    dave@novatec
: >What's my problem? Please email advice.

: Your problem is that you're trying to get Pine to do more than it can (if 
: I'm not mistaken as to what you're trying to say).  You need to make some 
: sendmail rewrite rules on your Unix host so that it will properly rewrite 
: the header on mail going out on your UUCP link.  (If you haven't messed 
: with /etc/sendmail.cf files before, then you're in for a TREAT.  I'd 
: suggest _sendmail_ (Costales, Allman & Rickert. Sebastopol, CA:O'Reilly, 
: 1994) to show you how to do it, it's hairy.)

: You could try setting user-domain to novatec.ascinet.com, though, but it 
: sounds to me like it's a rewrite rule problem.

That's the confusing part. We *have* specified the sendmail rules to
tack on the appropriate address going out UUCP. This is how we got
regular 'mail' to work in the first place. Why does it work for 'mail',
but not for 'pine'? I'm confused.