[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Help!  M4 deleted my sendmail.cf

Posted on 2011-04-21
2
Medium Priority
?
656 Views
Last Modified: 2013-12-17
Ok, I'm a little lost and frustrated here.

While trying to setup my sendmail.cf file, I read that the "masquerade as" settings needed to be changed in the sendmail.mc file.  once done it said to use the following command:

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

i did so, I then errored out saying "no such file or directory"  - not true, i just edited the file!!

I went back and found my sendmail.cf had been erased to 0 bytes.  gone.  I stupidly did not make a backup copy.  

How can I get it back?  Keep the answers basic please, I'm a novice!!
Thanks a million, Jay
0
Comment
Question by:Jay
2 Comments
 
LVL 29

Accepted Solution

by:
Jan Springer earned 2000 total points
ID: 35443859
cd /etc/mail
make -C /etc/mail
0
 

Author Comment

by:Jay
ID: 35485777
thanks!

I also figured out I probably ran the m4 command from the from directory which caused the file to be wiped out!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question