- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Linux /etc/mail.rc & mail command...
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
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
тАО11-22-2004 05:57 AM
тАО11-22-2004 05:57 AM
I need to be able to send mail without running sendmail. We use a smarthost, i.e. another server to relay mail. That is in the sendmail.cf, but unfortunately the 'mail' command line utility won't use that if sendmail is not running. I've tried the mail.rc file in /etc but haven't been able to get anything working right...
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 08:53 AM
тАО11-22-2004 08:53 AM
Re: Linux /etc/mail.rc & mail command...
Either run it like that, or completely reconfigure the sendmail subsystems (you good at configuring sendmail m4's?).
RH's sendmail has been that way since RH8.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 01:50 AM
тАО11-23-2004 01:50 AM
Re: Linux /etc/mail.rc & mail command...
I guess the bottom line is that we need to run sendmail on the server in order to relay mail using the 'mail' program? I tried changing the port in sendmail.cf, but then mail won't send. Our security guys just don't like sendmail to be running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 02:04 AM
тАО11-23-2004 02:04 AM
Re: Linux /etc/mail.rc & mail command...
Currently on Tru64, the sendmail daemon doesn't have to be running for mail to be sent. The mail program starts sendmail automatically when it needs to send a mail, and directly after sending it kills sendmail again. However, how this happens I'm still figuring out :-).
I'll try my best to get you an answer quick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 12:23 PM
тАО11-23-2004 12:23 PM
SolutionCurrently in /etc/mail/submit.mc you probably have the following line.
FEATURE(`msp', `[127.0.0.1]')dnl
Modify 127.0.0.1 to IP address of your smart host (relay).
FEATURE(`msp', `[
I think you will have to install sendmail-cf rpm for the following to work (m4 needs /usr/share/sendmail-cf/m4/cf.m4 which is in sendmail-cf).
# m4 /etc/mail/submit.mc > /etc/mail/submit.cf
Now /bin/mail should forward email to your smart host.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 06:27 PM
тАО11-23-2004 06:27 PM
Re: Linux /etc/mail.rc & mail command...
The last entry about the submit.mc and submit.cf files do work. I've just tested it. However, does your system only need to send mail, or should it receive mail too.
I've sent a mail to the system on which I configured submit, and I'm still waiting for it. It could be slow mail servers, but I'm 99% sure it won't receive mail without an MTA running.
Just a thought.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2004 12:54 AM
тАО11-24-2004 12:54 AM
Re: Linux /etc/mail.rc & mail command...
Thanks!!!!!!