Nov 10, 2018

How to fix Sendmail error m4:/etc/mail/sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

If you run the following command:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
and encounter the following error:
m4:/etc/mail/sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

Run the following command can fix it:
# yum install sendmail* -y