Mail not working and probably never has


 
Thread Tools Search this Thread
Operating Systems BSD Mail not working and probably never has
# 1  
Old 04-04-2011
Mail not working and probably never has

Hi hopefully I am in the right forum

I am trying to get mail working on a 15 year old server which has probably never been configured to work before

The server is on a network with TCP installed and the different servers on this network can all see each other with ping and rsh

when I try this
Code:
# 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
Code:
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
Code:
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

I have also tried sendmail but it does not seem to recognise that I am requesting mail to be sent to a different server and just sends it to the same user on the local server

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
Code:
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

Last edited by Scott; 04-04-2011 at 02:57 PM.. Reason: Please use code tags
# 2  
Old 04-04-2011
check if some mail process deamon are running

Code:
ps -ef | grep -i mail

(even if some deamon run, maybe they have never been setup in the past, so you should do it first)

I think you shoul first configure some mail deamon (you would have to know the network topology, you would need to know you SMTP gateway or relay, and have the required network route/port/firwall open accordingly.)

You can then configure your deamon (usually sendmail) so that i can send mail through this gateway.
At a very final test, you could try to send mail using mail/mailx commands or whatever.
# 3  
Old 04-06-2011
Thanks for the reply. This is what I get
ps -ef|grep -i mail
root 2000 1 0 Mar 04 ? 0:00 /usr/lib/mail/surrcmd/smtpd -H ki2_isp1 -r
ki2_isp1 is the server it is on
I am not sure what you mean by network topology but for ease to get this working I am using servers all on the same flat network and there are no firewalls eq server 1 is 10.1.1.17 server 2 is 10.1.1.19 and there is only a hub between them no routes need to be setup. I am therefor assuming the SMTP gateway would be the IP address of the server I am on but do not know wher to set this up
I have read a bit on send mail and have initiated /etc/init.d/sendmail start and now when I do a ps -ef |grep -i mail i get
root 2000 1 0 Mar 04 ? 0:00 /usr/lib/mail/surrcmd/smtpd -H ki2_isp1 -r
root 10593 1 0 11:26:25 ? 0:00 /usr/ucblib/sendmail -bd -q30m but this process dies after a few mins but not sure where to look for errors
I have tried sending another mail while this process is still running
mail root@cro_isp1
fhfdsslkas
UX:mail: ERROR: Can't send to !cro_isp1!root (root@cro_isp1)
UX:mail: ERROR: Return to root
and get the above error and the bolw error in the email of the sending server
From postmaster Wed Apr 6 11:31 BST 2011
To: root
Date: Wed Apr 6 10:31:22 GMT 2011
Original-Date: Wed Apr 6 11:31 BST 2011
Not-Delivered-To: due to 11 Transfer Failure
ORIGINAL MESSAGE ATTACHED
(mail: Error # 22 'Surrogate command failed', rc = 11)
En-Route-To: !cro_isp1!root
======= Surrogate command =======
:/usr/bin/uux -aroot - cro_isp1!rmail (root)
==== Start of stdout ===
==== Start of stderr ===
:bad system name: cro_isp1
:uux failed ( 11 )
En-Route-To: !cro_isp1!root
Content-Length: 67
below is the proof that this system exists and that the destination server can be seen
PING cro_isp1 (10.1.1.19): 56 data bytes
64 bytes from cro_isp1 (10.1.1.19): icmp_seq=0 ttl=64 time=0 ms
64 bytes from cro_isp1 (10.1.1.19): icmp_seq=1 ttl=64 time=0 ms
64 bytes from cro_isp1 (10.1.1.19): icmp_seq=2 ttl=64 time=0 ms

--- cro_isp1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
Hope this is not too much info regards Dan
# 4  
Old 04-06-2011
Maybe you can have a look at this link and look for surrcmd keyword or just read all
# 5  
Old 04-06-2011
@ctsgnb Creat link
Worth reading the first section:
Subject: M1) What is the default Mailer on UnixWare?


The error messages you are receiving suggest to me that this server is configured for uucp mail. Messages mention "/usr/bin/uux" which is part of the original AT&T unix communications package. The address format includes exclamation marks.

The transport for uucp does not have to be TCP/IP . Recommend you find out what you have go before changing settings.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Mail not working

Hello All, we have got a new linux server where the mailx/sendmail/uuencode doesn't seem to be working. The system admin guys have told me that they have configured the mail on port 25, the servers are in very secured zone which dont have internet connection hence i'm not able to understand... (1 Reply)
Discussion started by: Mahesh_RPM
1 Replies

2. Shell Programming and Scripting

Uuencode for mail attachments not working

Hi, I'm trying to send mail with attachments using uuencode, but it doesn't work. Command (also tried with mailx): uuencode testfile testfile | mail emailadress The email I get doesn't have an attachment, and has this in the message body: begin 664 testfile %=&5S=`H` ` end ... (4 Replies)
Discussion started by: Subbeh
4 Replies

3. BSD

mail command is not working

Hi, Mail command is not working. mail -s "hello" abc@google.com < samplefile I am new to BSD.what do i need to do? Please help. Thnaks, Gita. Please use code tags next time for your code and data. (2 Replies)
Discussion started by: gita
2 Replies

4. Red Hat

mail not working with company id

Hi, I have a fresh new installation of red hat linux. I am trying to send an email from the "mail" utility from inside my Linux box to my company id "xxx@company.com". We are using microsoft exchange server online version to host our company's email. I am able to send emails to gmail and... (2 Replies)
Discussion started by: priya33184
2 Replies

5. Shell Programming and Scripting

mail function - script not working

#!/bin/bash { m() $mail='("$someemail@gmail.com ", Cc:"$me" -t, Subject:"$emailmyself" -s, $someinputfile")' } what I am trying to do is create a function have it load when type the letter "m" so all have to do type an address after it send email. it tell me syntax on line 4 but which... (2 Replies)
Discussion started by: ericde
2 Replies

6. AIX

Why is mail not working?

I've configured sendmail.cf file and sent a test. Failed. /var/adm/messages log file showed "Unknown Domain" error. Added my domain to the sendmail.cf file and error went away but I still don't receive messages. And now there's no errors in the log file to point to another issue. mailx -s "This... (2 Replies)
Discussion started by: bbbngowc
2 Replies

7. UNIX for Dummies Questions & Answers

mail command not working

Hi I am trying to runmail command to send some text to my email id. But its getting hanged up. Not sure what is the problem. Please help. mail -s "testing" abc@somearess.com Thanks (1 Reply)
Discussion started by: infyanurag
1 Replies

8. UNIX for Dummies Questions & Answers

Urgent -Please help me 'mail' option not working

Hi , I have already posted a post regarding this, but i didn't get my problem solve, so some body help me as it was urgent for me, my mail option is not working, when i send a mail, it is strucking in /var/spool/mqueue folder. and i am getting struck there itself, i see below two files are... (1 Reply)
Discussion started by: mars_girish9
1 Replies

9. Shell Programming and Scripting

mail command not working

hi all I am not able to send mail from unix box to my mail id. do i need to do any settings for that? when i issue this command:- mail -s "letter" <abc.txt the $ pompt goes away and the unix is on wait state. what should I do? (3 Replies)
Discussion started by: infyanurag
3 Replies

10. UNIX for Advanced & Expert Users

Mail services not working

Hello, all. We currently have three UNIX boxes run Reliant Unix, a System V Release 4 variant. Mail can't be sent out of one of the boxes to anywhere outside the box. For a client we use the mail command. I am not sure how to determine the message transfer daemon that is running. When... (2 Replies)
Discussion started by: petrosi
2 Replies
Login or Register to Ask a Question