- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail - disable on workstation & enable on serv...
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
10-10-2004 11:52 PM
10-10-2004 11:52 PM
I want to know how can I disable sendmail in workstations & keep sendmail active only in the server. I am using HP-UX 11.00. Which all files need to be changed.
Is there any way in which by just doing some changes in the server will solve my problem
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2004 11:55 PM
10-10-2004 11:55 PM
Re: Sendmail - disable on workstation & enable on server
modify file
/etc/rc.config.d/mailservs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 12:57 AM
10-11-2004 12:57 AM
Re: Sendmail - disable on workstation & enable on server
in server change it to this
export SENDMAIL_SERVER=1
and on workstation
export SENDMAIL_SERVER=0
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 06:47 PM
10-11-2004 06:47 PM
Re: Sendmail - disable on workstation & enable on server
SENDMAIL_SERVER_NAME=
in mailsrvs, which takes pecedence over SENDMAIL_SERVER variable, and
domain mydom.com
in your resolv.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2004 12:58 AM
10-12-2004 12:58 AM
Re: Sendmail - disable on workstation & enable on server
/sbin/init.d/sendmail stop
In /etc/rc.config.d/mailservs
SENDMAIL_SERVER=0
In cron:
# Make sure any queued mail is delivered, as sendmail isn't a daemon anymore
0,30 * * * * /usr/sbin/sendmail -q
On server, make sure SENDMAIL_SERVER=1 and see if it is running:
ps -ef|grep sendmail
If not:
/sbin/init.d/sendmail start
You may also have to configure sendmail on server in /etc/mail/sendmail.cf
# who I masquerade as (null for no masquerading) (see also $=M)
DMyourdomain.com
# "Smart" relay host (may be null)
DSyourmainmailserver
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2004 01:25 AM
10-12-2004 01:25 AM
SolutionSo long as the binary exists and networking is set up properly, the workstation will still be able to send mail.
The daemon only has to be up for the box to accept mail.
So if you follow the solutions provided thus far, a web server or application or cronjob on the workstation will be able to send mail.
To stop that you can do several things:
1) Change permissions on sendmail binary to not executable.
2) Change networking so hostname resolution fails.
3) Make the sendmail.cf file relay to a server that won't accept mail.
Neither of these ideas is terrific. To provide further advice I would need to know why you are disabline sendmail. If its to stop mail acceptance, the prior posts will work. If its to stop outbound mail on the workstations, more work is required.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com