We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Help!  M4 deleted my sendmail.cf

Jay
Jay asked
on
Medium Priority
704 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
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Jay

Author

Commented:
thanks!

I also figured out I probably ran the m4 command from the from directory which caused the file to be wiped out!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.