- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail mail should display only internal mai...
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
12-14-2004 04:40 PM
12-14-2004 04:40 PM
Sendmail mail should display only internal mails?
I am new to sendmail concepts. I want to change sendmail configurations such that sendmail should not send/receive any mail from/to other systems. But as cronjobs are not having a display to send output to, the meachnism is, that stdout is sent via email. So sendmail should be able to accept message from a cronjobs on its own system.
Can anyone help me to know how can I do this?
Thanks
-Irfan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 05:11 PM
12-14-2004 05:11 PM
Re: Sendmail mail should display only internal mails?
vi
/etc/rc.config/mailservs
change the first variable from 1 to 0.
save the file
/sbin/init.d/sendmail stop
This will stop most inbound mail. However as long as port 25 is open its possible for other sendmail servers to push mail to your system.
Further, any user on the system with a command line can send mail to other uesrs on the system or other systems with tools provided with the OS like mail and elm.
If you disable the sendmail binary or remove the software then cron can't send mail either.
To learn the wonders of sendmail: http://www.sendmail.org
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
12-14-2004 05:54 PM
12-14-2004 05:54 PM
Re: Sendmail mail should display only internal mails?
If I understood your message correctly, you don't need to do anything special. Even if 'sendmail' daemon is not running, 'local mail' will still get deposited on the box. So, your crontab outputs should get mailed to the local account unless it is terribly messed up like .forward, vacation etc., that are not setup correctly.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 06:41 PM
12-14-2004 06:41 PM
Re: Sendmail mail should display only internal mails?
As you said disabling the sendmail demon will not have any effect on transfer of local mails. It can be done using the binary file.
I checked out my cronjobs which sends output through mail. They are using mailx instead of sendmail.
Now a doubt came to my mind.
How is mailx different from mailx?
Regards
-Irfan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 06:41 PM
12-14-2004 06:41 PM
Re: Sendmail mail should display only internal mails?
As you said disabling the sendmail demon will not have any effect on transfer of local mails. It can be done using the binary file.
I checked out my cronjobs which sends output through mail. They are using mailx instead of sendmail.
Now a doubt came in my mind.
How is mailx different from sendmail?
Regards
-Irfan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 07:03 PM
12-14-2004 07:03 PM
Re: Sendmail mail should display only internal mails?
'mailx', 'mail', 'elm' etc are merely clients that can read the mail that is already received and handover the mail to 'sendmail' that is to be sent out. 'sendmail' will be invoked when mail is sent. In order for you to receive the mail on the box from remote systems, you will need to have sendmail running in daemon mode attached to port 25.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 07:16 PM
12-14-2004 07:16 PM
Re: Sendmail mail should display only internal mails?
Thanks once again. Sorry to trouble you.
I executed mailx again by doing this.
chmod 444 /usr/sbin/sendmail
cat file_name | mailx -s "subject" root
Also I have stopped the sendmail demon.
Even now I am able to receive message.
If mailx uses sendmail, then how am I able to receive the message.
Regards
-Irfan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 07:42 PM
12-14-2004 07:42 PM
Re: Sendmail mail should display only internal mails?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 08:39 PM
12-14-2004 08:39 PM
Re: Sendmail mail should display only internal mails?
According to my understanding - mail,mailx,mailr all these are User Agents. They does almost the same activity with slight difference.
But sendmail is a Transfer agent.
Regards
-Irfan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 08:43 PM
12-14-2004 08:43 PM
Re: Sendmail mail should display only internal mails?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 08:45 PM
12-14-2004 08:45 PM
Re: Sendmail mail should display only internal mails?
Regards,