sendmail : connect local host (brocken)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sendmail : connect local host (brocken)
# 1  
Old 05-16-2002
Question sendmail : connect local host (brocken)

hi there

I've got a strange problem with a webserver box (suse linux 7.2). My MTA is sendmail, and when I tried manually send a mail.

Sendmail -v "user@something" < /etc/hosts

The Server tried
"simon@localhost... Connecting to local..." but nothing happend and the system hold on.

This happend to every mailadresse.

Incomming mails from an other server stay in the mque and won't send to the local user.

why could this happen? What's wrong? I don't see the solutions for this problem.

BTW webmin gives in the mque list a description to this holded mails: " operations system error"

thanks for your help!

best regrards,
mrsaint
# 2  
Old 05-16-2002
Hammer & Screwdriver sendmail

it seems sendmail can't find it route.

things to check for is to make sure
your loop back address is in the /etc/hosts file

that is 127.0.0.1 localhost

Make sure sendmail is listen to port 25
netstat -an | grep -i listen | grep 25

test sendmail by

telnet localhost 25

if you get through port 25 that means sendmail is listen the issue

helo localhost
you should received code 220 meaning ready. if you
received any other code then sendmail is not responding. check sendmail log file or any dead.letter file for clues

in case sendmail is not responding issue
ps -ef |grep sendmail
kill -9 PID
restart sendmail
sendmail -bd -q15m

Since mail are queued on server is highly unlikely to be DNS problem but just to sure make you could resolve your domainname and Mx record
you could use the nslookup command
# 3  
Old 05-16-2002
strange... i've tried to connect to port 25, but yet I dont get any response. stupid!

Port 25 listen, but under 0.0.0.0 ????I have to look at it

Thanks!

kind regards
# 4  
Old 05-24-2002
I used the command and get this results

server104:/etc # netstat -an | grep -i listen | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN

I think this should be 127.0.0.1 ! That's loopback, other I could connect to localhost especially the sendmail MTA.

How could I change this?

thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to connect to a DB installed on another host using shell script?

Hi Experts There are two hosts say A and B. On host B, Oracle DB is installed and running. I am trying to check if the DB on host B is up and running fine from a script on host A. Is this possible. I tried using commands like sql plus but those doesn't seem to help. Could you please guide. (8 Replies)
Discussion started by: harishshankar
8 Replies

2. Shell Programming and Scripting

Set variable to path that does not exist on local host

Can anyone suggest a workaround zone_5.org='/qaz/qwe/path/tns.osn' output /home/bingo/XXX_script.sh: line 180: zone_5.org=/qaz/qwe/path/tns.osn: no parent The path does not exist on the local machine, the allocation used to work till the server was upgraded. Red Hat Enterprise Linux... (2 Replies)
Discussion started by: squrcles
2 Replies

3. Shell Programming and Scripting

Connect to target host from Source host.

Hi All, Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution. Is there a utility/command using which we can connect to target host ? Please suggest. Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

4. Shell Programming and Scripting

CURL getting Error- couldn't connect to host

Hi i am trying to open HTTP by curl command. i am tryng to do that from command or script BASH. also iptables is off it doesnt work i am getting an error: curl: (7) coudn't connect to host the scipt is: #! /bin/bash curl http://www.cnn.com (1 Reply)
Discussion started by: zigizag
1 Replies

5. Shell Programming and Scripting

Print all Host on local network

Hello guys, I would like to develop a script which takes a host name as argument and displays a message whether the host is on the local network or not. How can I accomplish that? Is there a file or command that I can use to list all host on the local network? :confused: (4 Replies)
Discussion started by: Learn4Life
4 Replies

6. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

7. Solaris

How to delete the files from local host to remote host

Hi all, i am copying .gz files from production server to development server using "scp" command.my requirement is after copying .gz files i want to delete old .gz files(two days back) in development server from production server. like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Discussion started by: krishna176
3 Replies

8. UNIX for Dummies Questions & Answers

local host

Dear Guys , Please again , i could not find a solution for my server linux red hat 9 . when i leave it about more than 5 min ideal it goes to something like sleep mode and all services stop and even TCP/IP .. what shall i do ??? another thing please , when i installed the server , i gave... (3 Replies)
Discussion started by: tamemi
3 Replies

9. UNIX for Dummies Questions & Answers

local host setup

I am running Redhat 7.2. I am using a router with dhcp setup for my computer. When logging in, I get the error "dhcppc1 not found". My router assigned that host name to my pc for dhcp. It says to modify the /etc/hosts file to keep from having any problems. Everything seems to be working ok... (2 Replies)
Discussion started by: jeremiebarber
2 Replies

10. UNIX for Advanced & Expert Users

sendmail : 550 host unknown

Hi I try to configure snedmail as smtp for my solaris box. if the useres are local there's no problem everything's working fine, but is it outside, sendmail says it could find the host. why?! all other tools find diffrent host? Could anyone tell me how I set up an easy mx ? So I test it with... (29 Replies)
Discussion started by: mrsaint
29 Replies
Login or Register to Ask a Question