- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To send mails with Sendmail swicthed off and SMTP ...
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
Discussions
Discussions
Forums
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
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
тАО03-13-2002 12:28 AM
тАО03-13-2002 12:28 AM
As part of System hardening we need to disable Sendmail and close mail ports(25,110 etc).
Is it possible to send mails(Receiving not reqd) to my mailid in exchange server?.
This is required to notify me for any critical error messages in logs.
Thanks in advance
Bonny
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2002 12:49 AM
тАО03-13-2002 12:49 AM
Re: To send mails with Sendmail swicthed off and SMTP port disabled
(With the latest versions of sendmail, it is possible to bind the daemon to specific interfaces and ports. What I've done on some systems is have sendmail listen to port 25 on the loopback interface only, so that local processes can use SMTP sockets rather than invoke sendmail directly. CGI script mailers can be made a little more secure this way by eliminating access to sendmail's command line functions.)
I wish I was at work to verify this... Edit /etc/rc.config.d/mailsvr and set DAEMON=no. This will elimiate the -bd command line switch to sendmail in /sbin/init.d/sendmail.
Also edit /etc/mail/sendmail.cf (or /etc/sendmail.cf depending on the version/build of sendmail) and set DS, DH, and DR to your exchange server. I would also set DM to $m (domain name) for good measure.
Port 110 would be used by a POP server not native to HPUX (as far as I know) and may likely be handled by inetd (see /etc/inetd.conf). Some may actually be a proper independed daemon like the latest Qpopper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2002 11:15 AM
тАО03-13-2002 11:15 AM
Re: To send mails with Sendmail swicthed off and SMTP port disabled
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=relayhost
If SENDMAIL_SERVER=0, then sendmail doesn't run.
If SENDMAIL_SERVER_NAME="", then sendmail runs as stand-alone relay on port 25.
If SENDMAIL_SERVER_NAME="relayhost", then sendmail will run and forward all local mail to the relayhost. It will still run on port 25 and relay internet mail itself.
Taking a second look at our configuration, I did not set SENDMAIL_SERVER_NAME, and removed the -bd option from line 90 in /sbin/init.d/sendmail, and set DS, DH, and DR to our exchange server in /etc/mail/sendmail.cf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2002 11:17 PM
тАО03-13-2002 11:17 PM
Re: To send mails with Sendmail swicthed off and SMTP port disabled
Our security advicer wants sendmail server to be down on this server and port 25 to be closed.
Cheers,
Bonny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2002 10:12 AM
тАО03-14-2002 10:12 AM
Re: To send mails with Sendmail swicthed off and SMTP port disabled
I understand that port 25 must be closed, but undeliverable messages will just pile up in the queue and be forgotten if sendmail is not running. In my first reply I explained that you can have sendmail running as a queue processing daemon, not listening to a network socket, if you remove the -bd from the sendmail command line in /sbin/init.d/sendmail around line 90. Just leave the -qXX where XX is an appropriate queue processing interval like 30m or 2h.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2002 10:15 AM