Operating System - HP-UX
1751693 Members
4944 Online
108781 Solutions
New Discussion юеВ

Re: Checking and enabling the SMTP service

 
SOLVED
Go to solution
Engel Cuadra
Occasional Contributor

Checking and enabling the SMTP service

Hello everybody! I am interested in enabling the SMTP on hp-ux B.11.11. I want to know if there are other methods to inquiry smtp is running and active it.
I have checked the parameter SENDMAIL_SERVER in /etc/rc.config.d/mailservs, its value is 1. Is there something else I have to check?

4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: Checking and enabling the SMTP service

Shalom Engel,

One more thing.

Either reboot your box(not needed)

or:

/sbin/init.d/sendmail start

This will enable sendmail to receive mail. It was already capable of sending it.

There are many configuration issues that will impact how you receive mail, but you'll need to do this step before we can work on this.

HP meayaim oty?
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: Checking and enabling the SMTP service

To inquire:

ps -ef |grep sendmail

Check /var/adm/syslog/maillog

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Engel Cuadra
Occasional Contributor

Re: Checking and enabling the SMTP service

Thanks Steve and Geoff for your advises. I executed the first command to check the sendmail is running, the ouput was:

ps -ef|grep sendmail
root 1208 1 0 Nov 27 ? 65:17 sendmail: accepting connections on port 25

After that, the command "sendmail start" was executed with the next results:

sendmail start
start... User unknown
During this step, the cursor continue blinking, it could be there is not a valid configuration for sendmail.

Jeff_Traigle
Honored Contributor

Re: Checking and enabling the SMTP service

Since the ps | grep showed sendmail was running, you don't need to start it.

However, if it hadn't been started, you'd need to run "/sbin/init.d/sendmail start". Note the fully qualified path. This is the start/stop script that gets run at system boot/halt time. Running "sendmail start" attempts to run the actual sendmail executable in /usr/sbin with argument "start" as the recipient of an email message, which doesn't exist on your system as it complained. You get the "cursor blinking" because it's expecting some input from stdin (the keyboard, in this case) until an end-of-file (Ctrl-D) is entered on a line by itself as the email body.
--
Jeff Traigle