- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- STOP INCOMING MAIL (SENDMAIL)
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
01-25-2004 07:12 AM
01-25-2004 07:12 AM
How can I stop all incoming mail while still allowing sendmail to send outgoing only ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 08:14 AM
01-25-2004 08:14 AM
Re: STOP INCOMING MAIL (SENDMAIL)
correct me if I'm wrong, but isn't it enough to stop the sendmail daemon?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 08:16 AM
01-25-2004 08:16 AM
Re: STOP INCOMING MAIL (SENDMAIL)
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 08:32 AM
01-25-2004 08:32 AM
SolutionIf you don't want mail coming in, just stop sendmail. Don't forget to edit /etc/rc.config.d/mailservs and set the appropriate variable to 0 so that sendmail will not start next time you reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 08:54 AM
01-25-2004 08:54 AM
Re: STOP INCOMING MAIL (SENDMAIL)
Patrick is right on it. You don't need sendmail running on the system to send mails out.
/sbin/init.d/sendmail stop
Edit /etc/rc.config.d/mailsrvs and make SEND_MAIL=0.
However, sendmail will be invoked as a client when it is to send mail out.
Make sure you have proper MX records setup in your DNS or have a smart relay host defined in your /etc/mail/sendmail.cf that can deal with sending mails out.
Also have a cronjob setup that run once in every 5 mins or so to run 'sendmail -q' to clean the queues. So, in case if the mail is undelivered for any reason, sendmail in cron will try to clear it every 5 mins.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 11:50 AM
01-25-2004 11:50 AM
Re: STOP INCOMING MAIL (SENDMAIL)
Not so. Setting the sendmail daemon setting to 1 as noted in the prior post will easily accomplish your goal.
Do take note of the fact that you are still running sendmail to get mailx and other traffic off the box and you need to keep up to date on security issues.
You never know when you need to actually accept mail again.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 07:30 PM
01-25-2004 07:30 PM
Re: STOP INCOMING MAIL (SENDMAIL)
However, you should not neglect to run sendmail to process the run queue from time to time (for instance "sendmail -q" run every hour from cron) This is because when you send e-mail and the destination server is down, the message is queued locally in /var/spool/mqueue, the sendmail daemon processes this queue at regular interval (-q
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 07:43 PM
01-25-2004 07:43 PM
Re: STOP INCOMING MAIL (SENDMAIL)
I think you should consider prevention as well as cure. Is this mail spam, or is it coming from badly configured local hosts/ rogue apps?
If your looking at the latter, I would consider receiving the mail for a while, and analysing the source(s). There maybe ways of getting your ISP to stem the flow, or of reconfiguring systems so that they don't generate it in the first place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2004 08:31 PM
01-25-2004 08:31 PM
Re: STOP INCOMING MAIL (SENDMAIL)
As Sridhar rightly pointed out, I would like to add.
If you are using sendmail version 8.11.1 all you got to do is edit the file - /etc/rc.config.d/mailservs file and set the SENDMAIL_SENDONLY flag is set to 1,
then sendmail performs "send only" function. In other words, users are not allowed to receive mails in this domain.
Hope this helps !
Thanks
Asif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 02:34 AM
01-26-2004 02:34 AM
Re: STOP INCOMING MAIL (SENDMAIL)
Version is 8.9.3.1, Getting Flak from my
Network security folks. That's why I'm trying to close incoming mail, This Server is not used for mail but I have a few shells
That send mail with files attached to our Exchange mail system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 03:03 AM
01-26-2004 03:03 AM
Re: STOP INCOMING MAIL (SENDMAIL)
Just add the servers IP to /etc/mail/relay-domains.
That should keep the Network Sec guys happy.