Showing results for 
Search instead for 
Did you mean: 

mail not delivered

Super Advisor

mail not delivered

i was try to send the mail using the command mailx . kindly find the below error


(Deferred: Connection refused by

kindly help us to solve the problme
Steven Schweda
Honored Contributor

Re: mail not delivered

uname -a

> (Deferred: Connection refused by

Normally, "Connection refused" means that
there's no suitable server running (or
registered) on the port requested. For
e-mail, I'd guess port 25, and for HP-UX,
I'd guess that "" is not running
"sendmail" (or some similar mail agent).

With my weak psychic powers, I have no idea
where you're running this "mailx" command, or
exactly what what this command says, or what
"" might really be.

> kindly help us to solve the problme

You first. You might start by showing what
you're doing. As usual, showing actual
commands with their actual output can be more
helpful than vague descriptions and
interpretations. When you provide almost no
useful information about what you're doing,
hiding actual details ("") only makes
everything harder.
Raj D.
Honored Contributor

Re: mail not delivered

Also learn how to assign points to those who try to help with their time & responses to your query:

Your profile says:
I have assigned points to 101 of 167 responses to my questions.

Make it 167 of 167 and you will see a change in response to your threads, subjected to how you post the question and not like this one as mentioned by Steven above.

> (Deferred: Connection refused by

-Have you checked the DS setting for mail realy server on /etc/mail/ file. DS= should be mentioned there.
Can you reach to that server with ping.
- Also do /sbin/init.d/sendmail stop or # killsm
- Then /sbin/init.d/sendmail start and check again.


" If u think u can , If u think u cannot , - You are always Right . "
Michael Steele_2
Honored Contributor

Re: mail not delivered


a) ps -ef | grep -i sendmail (* NO? then b) )
b) /sbin/init.d/sendmail start
c) /var/adm/syslog/mail.log (* post errors here *)
d) mailq (* same problem? then c) )
e) echo test | mailx -s "SUBJECT OF EMAIL" (* test email *)
f) grep DS /etc/mail/ (* note mail server hostname, i.e., *)
g) nslookup
h) nslookup ip address of

If you have to add into /etc/mail/ then you'll have to

/sbin/init.d/sendmail stop / start
Support Fatherhood - Stop Family Law