- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: sendmail issue
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-2010 01:27 AM
12-14-2010 01:27 AM
we have edited sendmail.mc file as per messaging team requirement. Modified 'SMART_HOST' entry in /etc/mail/sendmail.mc. Then customer was able to receive mails. Everything is fine now. But I forget that after we edit .mc file we need to generate a sendmail.cf file also with the following command.
#m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
It is a very important production server. Now my question is if I fire this command now will there be any impact.. do u have any idea on this kind of scenario. Please explain me ..
# more /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2010 02:33 AM
12-14-2010 02:33 AM
Re: sendmail issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2010 05:50 AM
12-14-2010 05:50 AM
Re: sendmail issue
Due to the complexity of the /etc/mail/sendmail.cf file, a much simpler file named /etc/sendmail.mc was created, and it contains more understandable instructions for systems administrators to use. These are then interpreted by a number of macro routines to create the sendmail.cf file. After editing sendmail.mc, you must always run the macros and restart sendmail for the changes to take effect.
When sendmail is restarted it should automatically update the sendmail.cf file as these days many initscripts handle this task automatically. However you can manually do it using that command.
Below link has more information on how sendmail works.
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers
Hope this answers your query.
Chhaya
I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2010 06:19 AM
12-14-2010 06:19 AM
Solution> messaging team requirement. Modified
> 'SMART_HOST' entry in
> /etc/mail/sendmail.mc. Then customer was
> able to receive mails.
So, you changed only "sendmail.mc", but your
change was effective? This suggests to me
that someone/something also changed
"sendmail.cf".
> [...] When sendmail is restarted it should
> automatically update the sendmail.cf file
> [...]
That would explain this behavior. Have you
looked at the modification date-time of your
files?
ls -l /etc/mail/sendmail.*
> #m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
If you're really worried about what that will
do to your "very important production server,
then why not do something safe, like, say:
#m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cfXXX
and then compare "sendmail.cfXXX" with your
existing "sendmail.cf"? If they're the same,
then you may be able to guess what happened,
and what you still need to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2010 05:39 PM
12-14-2010 05:39 PM
Re: sendmail issue
Make sure the "sendmail-cf" package is present on the system before you proceed. It contains necessary m4 macros that may not be installed already.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2010 10:03 PM
12-14-2010 10:03 PM
Re: sendmail issue
Regards,
Ani