Checking and enabling the SMTP service (506 Views)
Reply
Occasional Contributor
Posts: 5
Registered: ‎03-07-2006
Message 1 of 5 (506 Views)
Accepted Solution

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?

Exalted Contributor
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 5 (506 Views)

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
Honored Contributor
Posts: 7,167
Registered: ‎06-04-2001
Message 3 of 5 (506 Views)

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.
Occasional Contributor
Posts: 5
Registered: ‎03-07-2006
Message 4 of 5 (506 Views)

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.

Honored Contributor
Posts: 1,354
Registered: ‎03-04-2004
Message 5 of 5 (506 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.