- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disable sendmail except MTA
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
02-03-2004 05:33 AM
02-03-2004 05:33 AM
I'd like to setup a box so that all parts of sendmail are disabled, with the exception of the MTA so I can send mail out of the server.
Essentially I only want to be able to send email from the server and do not want to receive or relay any mail.
Does anyone have a doc that outlines the best way to do this?
TIA,
Sean
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 05:37 AM
02-03-2004 05:37 AM
Re: Disable sendmail except MTA
/etc/rc.config.d/mailserv
export SENDMAIL_SERVER=0
done.
oh, kill the current sendmail running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 05:37 AM
02-03-2004 05:37 AM
Re: Disable sendmail except MTA
You don't need to have sendmail running to send outgoing mail. Just disable the startup!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 05:38 AM
02-03-2004 05:38 AM
SolutionYou don't need to run 'sendmail' as a daemon to send mail out. Stop sendmail by running '/sbin/init.d/sendmail stop'. Edit /etc/rc.config.d/mailsrvs and make SEND_MAIL_SERVER=0.
Add MX records or a relay host to your sendmail.cf file (DS macro) if you have a relay to send the mail out. Sendmail will be invoked but only as a client while sending the mail out.
However, since sendmail is not running daemon mode, any failed messages will not be delivered and will be sitting in the mail queue. So, I suggest you enable your cron to run 'sendmail -q' once every 5 mins. It will take care of pending mail if any.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 05:40 AM
02-03-2004 05:40 AM
Re: Disable sendmail except MTA
This is very easy.
Just
1) /sbin/init.d/sendmail stop
2) Edit /etc/rc.config.d/mailservs & set SENDMAIL_SERVER=0
Then it will never start sendmail as a daemon.
But remember that the delivery will be a "one-time" shot. So you may wish to set up a cron to periodically run
sendmail -q
to try another one-time delivery attempt.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 02:05 AM
02-04-2004 02:05 AM
Re: Disable sendmail except MTA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 02:19 AM
02-04-2004 02:19 AM
Re: Disable sendmail except MTA
Yes that's somewhat true. The local mail processors (mailx, elm, etc.) typically only fork a sendmail process to deliver the mail.
They do not use sendmail to receive mail as it's already in the user's mail file.
There's *no* way I know of to disable that as it's coded into those binaries. But again sendmail is only used for delivery.
Rgds,
Jeff