Sponsored Content
Operating Systems BSD Mail not working and probably never has Post 302511203 by DanJSC on Wednesday 6th of April 2011 06:56:30 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
mailq(1)						      General Commands Manual							  mailq(1)

NAME
mailq - Displays the contents of the mail queue SYNOPSIS
mailq [-v] DESCRIPTION
The mailq command displays a list of messages in the mail queue. The mailq command is the same as the sendmail command with the -bp option; see sendmail for more information. EXAMPLES
The mailq command lists the mail queue as shown in the following example: Mail Queue (1 request) --QID--- -Size- ---Q- Time------- --Sender/Recipient--- AA002508 3 Thu Dec 17 10:01 root The mailq -v command lists the mail queue as shown in the following example: Mail Queue (1 request) --QID--- -Size- -Priority- ---Q-Time---- -Sender/Recipient- AA002508 3 1005 Dec 17 10:01 root (Output might be formatted differently on your system.) The fields have the following meaning: Contains the message queue ID of the message. Contains the number of bytes in the body of the message (header information not included). Contains the priority of the message. Contains the date that the message entered the queue. Contains the user ID of the sender (first), and then the user ID of the receiver of the message. In this example, a message also indicates the status of the message. FILES
Contains the log file and temporary files associated with the messages in the mail queue. SEE ALSO
Commands: sendmail(8) mailq(1)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy