Subject: Local pine traffic goes via Internet

From: Clarence Dold <[email-masked]>
Date: 22 Mar 1995 04:17:34 GMT

I am running Pine 3.91, as compiled and available on the ftp server
ftp.novell.de, on Unixware 1.1.2. 
If I send mail to another user on my system, it is routed via my Internet
provider and back to my system as a domain name address.
I can send mail from elm, and it stays local to my machine.
Traffic intended for the internet works fine, and actually, so does the
local mail, except for the extra hop or two that it makes.

The only "config" options that I set were to make an smtp mailer equal to
localhost, and specify my domain name, as suggested in the Novell tips.  
I also tried using my machine name, rather than localhost, as the
smtp-mailer, with the same effect.
-- 
---
Clarence A Dold - [email-masked]
                - Pope Valley & Napa CA.

---

From: [email-masked] (Andrew Josey)
Date: Wed, 22 Mar 1995 13:32:03 GMT

Clarence Dold ([email-masked]) wrote:
: I am running Pine 3.91, as compiled and available on the ftp server
: ftp.novell.de, on Unixware 1.1.2. 
: If I send mail to another user on my system, it is routed via my Internet
: provider and back to my system as a domain name address.
: I can send mail from elm, and it stays local to my machine.
: Traffic intended for the internet works fine, and actually, so does the
: local mail, except for the extra hop or two that it makes.

: The only "config" options that I set were to make an smtp mailer equal to
: localhost, and specify my domain name, as suggested in the Novell tips.  
: I also tried using my machine name, rather than localhost, as the
: smtp-mailer, with the same effect.

This is a problem/feature of your local mail configuration. You need
to set your mailsurr to recognise your domain address as a local
delivery. The following extracts from the HINTS doc on novell.de
should help....

Q. Mail sent to my domain mydom.com does not arrive locally on the
machine. It gets here but the local mailsystem does not recognise it
as local.

A. Add an entry to /etc/mail/mailcnfg

%d=mydom.com

If you have the nuc package installed , edit /usr/lib/mail/mailsurr.proto
to create a translation entry in  that file.  The user@domain
entry is shown below from the mailsurr.proto file:

# Map all names of the form user@local-machine -> user
# Map all names of the form user@uname -> user
# Map all names of the form user@domain
# Then loop back through from the top.
#
'.+'  '(.+)@%L'    'Translate R=\\1'
'.+'  '(.+)@%U'    'Translate R=\\1'
'.+'  '(.+)@%d'    'Translate R=\\1'   #This is the added entry for user@domain

Then run the script /usr/lib/mail/surrcmd/createSurr.

If you don't have the nuc package installed, add an entry to
/etc/mail/mailsurr as:

####
#### Part 2
####

# Map all names of the form host.uucp!user -> host!user
# Map all names of the form host.local-domain!user -> host!user
#       (host must not have a . in it)
# Comment out if you do not want these translations.
#
#'.+'   '!([^!]+)\\.uucp!(.+)'  'Translate R=!\\1!\\2'
#'.+'   '!([^!.]+)%D!(.+)'      'Translate R=!\\1!\\2'
'.+'    '!%d!(.+)'      'Translate R=\\2'                 

Andrew

---

From: Clarence Dold <[email-masked]>
Date: 22 Mar 1995 23:53:08 GMT

I,  Clarence Dold ([email-masked]) snivelled:
: : I am running Pine 3.91, as compiled and available on the ftp server
: : ftp.novell.de, on Unixware 1.1.2. 
: : If I send mail to another user on my system, it is routed via my Internet
: : provider and back to my system as a domain name address.
: : I can send mail from elm, and it stays local to my machine.
: : Traffic intended for the internet works fine, and actually, so does the
: : local mail, except for the extra hop or two that it makes.

I did not delineate that I was sending mail to "clarence", and had not
specifically tried "[email-masked]", although pine seemed to expand to
that as it filled in the "Full" name of the recipient.

Andrew Josey ([email-masked]) wrote:
: delivery. The following extracts from the HINTS doc on novell.de

Oh, no, not an existing document!!  I hate it when I miss the notes that
apply to me, when scanning through stuff like this.

: A. Add an entry to /etc/mail/mailcnfg
: %d=mydom.com

I have a line that has DOMAIN=nvts.com.  Did I misread this somewhere, or
are two lines required, one DOMAIN, and the other %d?

: If you have the nuc package installed , edit /usr/lib/mail/mailsurr.proto
: # Map all names of the form user@domain
: '.+'  '(.+)@%d'    'Translate R=\\1'   #This is the added entry for user@domain

This was missing from mine.

: Then run the script /usr/lib/mail/surrcmd/createSurr.

Now all seems well.  I have sent from pine to clarence and
[email-masked], and they both appeared immediately, and without the added
Internet system header lines.

elm didn't appear sensitive to this, so elm must do its own checking of the
local domain.  I thought the fix was a pine-specific fix.

Thanks.