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
the email error returned is this
If I do dthe same command from the local system but include the system name
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
Thanks in advance for any help
Dan
Last edited by Scott; 04-04-2011 at 02:57 PM..
Reason: Please use code tags
(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.
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
@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.
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)
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)
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)
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)
#!/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)
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)
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)
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)
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)
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)