NCR Unix MP-RAS - Mail not working

I am getting the following error when I send mail to any domain say abc123@xyz.com

Not delivered to :due to 11 transfer failure
(mail: Error #22 'Surrogate command failed ', rc =11)

En Route to: xyz.com!abc123
=======surrogate command==========
:/user/bin/uux -username -xyz.com!rmail
====start of stdout==
====start of stderr===
: bad system name : xyz.com
:uux failed (11)

Appericate your valuable suggestions.

What command did you type?
Please post the command completely and accurately after changing anything confidential.

Does mail to remote accounts normally work for other people on the same computer?

On the surface your command line probably contains an exclamation mark which is unlikely to be correct.

mail -s "test mail" abcx123@xyz.com

I got

Ux mail: Error : can't send testmail
UX:mail: ERROR: Can't send to testmail
UX:mail: ERROR: Return to user_name
UX:mail: ERROR: Can't send to !xyz.com!abc123 (abc123@xyz.com)
UX:mail: ERROR: Return to user_name

and i when I check mail in Unix with user_name as user I got message as posted previously(surrogate command failed)

use this command to send a mail.
echo "text"|mailx -s "subject" abc123&mail.com

its is giving me the same error!

UX:mail: ERROR Can't send to !xyz.com!abc123 (abc123@xyz.com)
UX:mail: ERROR Return to user_name

Thanks

Shouldn't that be:

echo "text"|mailx -s "subject" abc123@mail.com

Yes It might be a typo.

still not solve the mail problem guys.

Does local unix mail work?

Does abc123.com appear in /etc/aliases ?

Has external email ever worked on this computer?

Are you using "sendmail"?

try this - with quoting

DIR='/dors06/data_transfer/mod_send'

mailx -s "send - Mod send - from UNIX for $monthh $day2,$year1" "your.name@somplace.com" , <<-EOF4>$LOG 2>&1
All:

Good- Mod send -
as of-current copy - current.

written to '$DIR'

From Mod_send.sh

This e-mail was system generated

EOF4

Hi I am just wondering if this problem was solved as I have a similar problem

when I try this

# mailx -s "testzzz" "root@sys1"
test testz
EOT
# UX:mail: ERROR: Can't send to !cro_isp1!root (root@sys1)
UX:mail: ERROR: Return to root

the email error returned is this

From postmaster Fri Mar 25 10:16 GMT 2011
To: root@sys2
Date: Fri Mar 25 10:16:12 GMT 2011
Original-Date: Fri Mar 25 10:16 GMT 2011
Original-Subject: testzzz
Not-Delivered-To: due to 11 Transfer Failure
ORIGINAL MESSAGE ATTACHED
(mail: Error # 22 'Surrogate command failed', rc = 11)
En-Route-To: !sys1!root
======= Surrogate command =======
:/usr/bin/uux -aroot - sys1!rmail (root)
==== Start of stdout ===
==== Start of stderr ===
:bad system name: sys1
:uux failed ( 11 )
En-Route-To: !sys1!root
Content-Length: 122

If I do dthe same command from the local system but include the system name

mailx -s "testzzz" "tst@sys2"
tteesstt zz1017
EOT

This works

I am pretty sure mail to other systems has never worked on these boxes but would like to get it workling to set up some mail alerts

There is not etc aliases file on these systems but the remote sytem is in the hosts file
This is the unix system detail if it helps
Welcome to the NCR MP-RAS SVR4 UNIX System
UNIX System V Release 4.0
uname -a
sys2 sys2 4.0 3.0 3487/3488 Pentium III(TM)-ISA/PCI

Thanks in advance for any help

Dan

Welcome to the NCR MP-RAS SVR4 UNIX System
UNIX System V Release 4.0 
uname -a
sys2 sys2 4.0 3.0 3487/3488 Pentium III(TM)-ISA/PCI

@DanJSC
This has nothing to do with HP-UX. Please start a clean thread.
As you seem to be using a 20-year old computer which is configured for unix mail I'd start with checking whether the computer has TCP/IP installed.

Since your uname string says NCR unix, I don't believe it is hpux related as this forum is, but it won't hurt checking if the sys1 is on the same network as your sys2 and listening incoming smtp connections on port 25. Otherwise you might need to configure the smart relay server (the line starting with letters DS in sendmail.cf file)

@rush143
What Operating System and version are you running?

How old is the computer?

Like DanJCS this is looking like an ancient unix mail setup from the days of "uucp".
The path "/user/bin/uux" never came from a modern HP-UX though in DanJCS's case "/usr/bin/uux" is possible.

Sorry

Did not realise I was in the wrong area I will post a new thread
Regards
Dan