- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to stop sendmail at system boot?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 12:52 AM
07-21-2003 12:52 AM
how to stop sendmail at system boot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 12:58 AM
07-21-2003 12:58 AM
Re: how to stop sendmail at system boot?
simply remove file /sbin/init.d/sendmail
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:02 AM
07-21-2003 01:02 AM
Re: how to stop sendmail at system boot?
SENDMAIL=0
#/sbin/init.d/sendmail stop
then, try to send mail again, see if it disabled?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:03 AM
07-21-2003 01:03 AM
Re: how to stop sendmail at system boot?
root@MY_BIG_SERVER:(rc.config.d)# more mailservs
#########################################
# Mail configuration. See sendmail(1m) #
#########################################
#
# BSD's popular message handling system
#
# SENDMAIL_SERVER: Set to 1 if this is a mail server and should
# run the sendmail deamon.
# SENDMAIL_SERVER_NAME: If this is not a mail server, but a client being
# served by another system, then set this variable
# to the name of the mail server system name so that
# site hiding can be performed.
#
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:27 AM
07-21-2003 01:27 AM
Re: how to stop sendmail at system boot?
/usr/sbin/ch_rc -a -p SENDMAIL_SERVER="0"
2.
# /sbin/init.d/sendmail stop
3.
Check if sendmail is still running.
# ps -ef | grep sendmail
Otherwise kill the sendmail process.
# /usr/sbin/killsm
Now sendmail is disabled to run as mail server but it will still be used as client programm to send mail to a server if you use programms like mailx or mail.
Regards
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:49 AM
07-21-2003 01:49 AM
Re: how to stop sendmail at system boot?
and the next time when you boot the server the sendmail wont start.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 03:29 AM
07-21-2003 03:29 AM
Re: how to stop sendmail at system boot?
Modify /etc/rc.config.d/mailservs is the best one!
You also can remove the system start-up script in /sbin/rc2.d , that's typically like "S***sendmail"!
Manually stop the Sendmail service by:
#/sbin/init.d/sendmail stop
-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 03:48 AM
07-21-2003 03:48 AM
Re: how to stop sendmail at system boot?
Changing /etc/rc.config.d/mailservs file will still allow users to fire up and use sendmail to get mail off the box.
So it depends on the actual goal, what you should do. If you never want sendmail to run, you need to do both. If its temporary, and you can tolerate users running the program, then /etc/rc.config.d/mailservs modification shown by my peers is good enough.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com