[comp.unix.ultrix] more on mail to VMS from Ultrix

david@dalcs.UUCP (David Trueman) (10/21/87)

Reply-Path:



As previously posted, we are trying to send mail from a uVax II running
Ultrix 2.0, DECnet 2.0 to a VMS machine.  I can bypass sendmail directly
to remove that variable, and invoke:

	/usr/bin/mail11 david David dal1 'in%"david@dalcs.uucp"'

and I get the error message right away:

/usr/bin/mail11: %MAIL-E-SYNTAX, error parsing 'IN'

Is anyone else trying to do anything like this?  Is anyone having any
success or failure?  Thanks for any help.
-- 
UUCP		{uunet utai watmath}!dalcs!david
CDN		david@cs.dal.cdn
INTERNET	david%dalcs@uunet.UU.NET

avolio@decuac.dec.com (Frederick M. Avolio) (10/22/87)

Reply-Path:



In both cases I would guess that the quotes -- double or single,
makes no diff -- are getting stripped off before vms sees it.  In this
example: 

        /usr/bin/mail11 david David dal1 'in%"david@dalcs.uucp"'

VMS mail is seeing
	in%"david@dalcs.uucp"

You should try

	1. back-slashing the single quotes in the mail command at
		the shell prompt

	EG, % mail dal1::\'in%"david@dalcs.uucp"\'

	2. Make sure that you do not have the 's' flag on in
	sendmail.cf for the Dmail mailer.  I bet you do...  Try it with,
	instead of:

	MDmail, P=/usr/bin/mail11, F=mnsF, S=14, R=23, A=mail11 $f $x $h $u

	use this:

	MDmail, P=/usr/bin/mail11, F=mnF, S=14, R=23, A=mail11 $f $x $h $u

I cannot think of anything this would break...  Oh, in case you don't
know, after changing sendmail.cf...

	1. run /usr/lib/sendmail -bz
	2. Kill the running sendmail and restart it (us ps to find and
	kill and then start it up just as it is in the rc.local file).

Fred

jeff@umbc3.umd.edu (Jeffrey Burgan) (10/23/87)

Reply-Path:


We have Ultrix 2.0, DECnet 2.0, and VMS 4.5 w/ DECNET (not my choice).
When I realized DECnet mail from Ultrix to VMS wasn't working,
(because I use a different sendmail.cf - it supports MX records)
I added the appropriate lines from the sendmail.cf distributed w/
2.0 and everything works great. Mail11 works fine from sendmail.
Try it, iof you have questions, you can send me e-mail directly.

Jeffrey Burgan
University of Maryland
(301) 455-3631
jeff@umbc3.umd.edu

cetron@utah-cs.UUCP (Edward J Cetron) (10/23/87)

Reply-Path:



sounds to me like the vms machine is running the pmdf mailserver since
otherwise the in% construct would be illegal.  check the vms machine
and make sure pmdf is installed (in_mailshr.exe in particular).

it sounds like pmdf is NOT installed or possibly the actual in%... string
is getting corrupted on its way to the vms site. 

let me know if you can get more information....

-ed
cetron@cs.utah.edu

richl@penguin.USS.TEK.COM (Rick Lindsley) (10/26/87)

Reply-Path:



In article <9995@felix.UUCP> david@dalcs.UUCP (David Trueman) writes:

> Ultrix 2.0, DECnet 2.0 to a VMS machine.  I can bypass sendmail directly
> to remove that variable, and invoke:
> 
> 	/usr/bin/mail11 david David dal1 'in%"david@dalcs.uucp"'
> 
> and I get the error message right away:
> 
> /usr/bin/mail11: %MAIL-E-SYNTAX, error parsing 'IN'

I can provide a sendmail config file which gateways nicely to VMS machines,
provided you have an Ultrix/Decnet gateway. If this gateway is called, say,
"foo", VMS hosts can reach the outside world from MAIL by sending to
foo::ihnp4::ucbvax::wherever::whoever. This address gets translated to look
like it came from ucbvax!ihnp4!foo!vmshost!user; in other words; transparent
to other Unix systems. It has the advantage of keeping VMS syntax on the VMS
side (none of that site::"user@unix") and the Unix syntax on the Unix side.

The config file, with comments, is 390 lines long and so I hesitate to post
it to this list. I'll entertain mail requests until they overwhelm me; if
necessary I'll post it to a source newsgroup and/or provide it in some
other public way to members of this mailing list.

Anyone fairly familiar with sendmail config files will be able to extend
this in any number of ways. Here at Tek we use a very similar config file
to handle subdomains ... such as that of my home machine penguin
(penguin.uss.tek.com). The sample I'm providing carries the following caveats:

    * assumes one level of domaining: i.e., xxx.tek.com
    * assumes one Ultrix/Decnet gateway (on which this conf file will reside)
    * assumes one "smart gateway" you can pass off unknown addresses to. If you
	don't have this, or your Ultrix gateway IS your smart machine
	(the court of last resort), you will need to make slight changes
	near the end of Ruleset 0 to return an error message rather than
	forward the message to the gateway.
    * because I'm assuming you can hand off mail to a smart gateway, it does
      not contain support for uumail, if you are using that, but
      support for it would be relatively simple to add.

Rick

PS As to your specific question ... I believe that mail11 is unhappy about
    the %. As a test, try "in::dalcs.uucp::david" instead. (no quotes).

david@dalcs.UUCP (David Trueman) (10/26/87)

Reply-Path:



First of all, let me make it clear to those who have posted news or
responded by mail (thank you, by the way) that this is *not* a sendmail
problem.  The problem can be reproduced by calling mail11 directly, and
bypassing sendmail completely.  Furthermore, it does not appear to be a quoting
problem, as I have tried *many* different combinations, and I am familiar
with shell quoting behaviour.

In article <10278@felix.UUCP> Mike S Marshall writes:  
| *In article <9458@felix.UUCP>, david@dalcs.UUCP (David Trueman) writes:
| *> 
| *> Running DECnet 2.0 on Ultrix 2.0 on a uVaxII, we are trying to send
| *> mail to an address like dal1::"in%user@site" on a VMS machine.  The address
| *> is rejected with a message "error parsing 'IN'".  The rejection is
| *> not by sendmail, but by the mail11 program (I have tried calling mail11
| *> directly). 
| 
|     The same problem occurs with ULTRIX1.2... I have struggled with
|     trying to send stuff across DECnet from ULTRIX to a VMS foriegn 
|     mail escape (the IN% part of the above address) for quite a while.
|     If anyone knows how to do it, please post to the net!

We have found a workaround:  define a system logical on the VMS system,
DAL_IN_PERCENT in our case, to be in%, then send mail to dal1::dal_in_percent::
This, amazingly, works, but it's pretty ugly, and I am still trying to get
sendmail to hide all the ugliness from the users.

In article <10290@felix.UUCP> Edward J Cetron writes: 
| sounds to me like the vms machine is running the pmdf mailserver since
| otherwise the in% construct would be illegal.  check the vms machine
| and make sure pmdf is installed (in_mailshr.exe in particular).

Yes, pmdf is running.  in% addresses work fine from the VMS machine, or
from other DECnet machines running VMS.

| or possibly the actual in%... string
| is getting corrupted on its way to the vms site. 

Possible, but if so, it sounds like an Ultrix bug.

In article <10288@felix.UUCP> jeff@umbc3.umd.edu (Jeffrey Burgan) writes:
| We have Ultrix 2.0, DECnet 2.0, and VMS 4.5 w/ DECNET (not my choice).
| I added the appropriate lines from the sendmail.cf distributed w/
| 2.0 and everything works great. Mail11 works fine from sendmail.

Mail over DECnet that does not attempt to use the in% construct, also works
just fine here.
-- 
UUCP		{uunet utai watmath}!dalcs!david
CDN		david@cs.dal.cdn
INTERNET	david%dalcs@uunet.UU.NET