Operating System - HP-UX
1748245 Members
3732 Online
108760 Solutions
New Discussion юеВ

use which command to sendmail to another hpux

 
SOLVED
Go to solution
thebeatlesguru
Regular Advisor

use which command to sendmail to another hpux

which command i can use to send a mail from one hpux machine to another hpux machine
hihi
6 REPLIES 6
Steven Sim Kok Leong
Honored Contributor

Re: use which command to sendmail to another hpux

Hi,

elm, sendmail, mailx, mail are some of the commands you can use.

You can even telnet xyz.com 25 and use SMTP commands if xyz.com is an SMTP relay/server.

Hope this helps. Regards.

Steven Sim Kok Leong
thebeatlesguru
Regular Advisor

Re: use which command to sendmail to another hpux

i have tried sendmail:
sendmail pin@aa
hello
^D

aa is another unix server,after i sendmail,i telnet aa,but user pin show :no mail
what's the matter

hihi
Steven Sim Kok Leong
Honored Contributor
Solution

Re: use which command to sendmail to another hpux

Hi,

Is the sendmail daemon running on the unix server aa?

Test by doing this:

# telnet aa 25

Does it get connected? You should see something like:
Trying 1.2.3.4...
Connected to aa
Escape character is '^]'.
220 aa ESMTP Sendmail 8.10.0/8.10.0; Fri, 22 Feb 2002 11:20:05 +0800 (SST)

Hope this helps. regards.

Steven Sim Kok Leong
thebeatlesguru
Regular Advisor

Re: use which command to sendmail to another hpux

look here:
Trying...
telnet: Unable to connect to remote host: Connection refused

does it mean sendmail daemon isnt running
,can u tell me how can i to start it.
hihi
Steven Sim Kok Leong
Honored Contributor

Re: use which command to sendmail to another hpux

Hi,

The sendmail daemon on the aa system in not running. To activate it, check that /etc/rc.config.d/mailservs contain the line:

export SENDMAIL_SERVER=1

In addition, verify that the system startup and shutdown scripts exist:

$ ll /sbin/rc2.d/*mailservs
/sbin/rc2.d/*mailservs not found
$ ll /sbin/rc2.d/*sendmail
lrwxr-xr-x 1 root sys 21 Mar 17 2000 /sbin/rc2.d/S540sendmail -> /sbin/init.d/sendmail
$ ll /sbin/rc1.d/*sendmail
lrwxr-xr-x 1 root sys 21 Mar 17 2000 /sbin/rc1.d/K460sendmail -> /sbin/init.d/sendmail
$ ll /sbin/init.d/sendmail
-r-xr-xr-x 1 bin bin 3607 Feb 24 1999 /sbin/init.d/sendmail

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: use which command to sendmail to another hpux

Hi,

If you wish to start the daemon right now, then after updating /etc/rc.config.d/mailservs, you should run this:

# /sbin/init.d/sendmail start

Hope this helps. Regards.

Steven Sim Kok Leong