Re: Cannot email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"John Jacks" <mibsun@xxxxxxxxxxx> writes:

> Hi ;
> I am trying to email from my redhat box .This is what is happening .
> [root@root]# ps -aux | sendmail
> Recipient names must be specified
> [root@root]# telnet localhost 25
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused

First .. looks like you are trying to use sendmail directly without
supplying a `to' addressee.  `man sendmail' will guide you here:
   sendmail [option ...] [recipient ...]

You probably ought to just use the `mail' tool which calls sendmail
properly if you supply a recipient:

   ps waux|mail recipient

or if you want a subject:
  
   ps waux| mail -s "ps output" recipient

Calling sendmail direct will work though if you give a recipient.

Far as telnet goes... is sendmail even running?
I get the same message as you posted if I turn sendmail off temporarily.

Try as root:
   service sendmail status

You should see something like:
  # service sendmail status
   sendmail (pid 1142 1134) is running...


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux