Cannot open `/usr/share/sendmail-cf/m4/cf.m4′: No such file or directory
When attempting to update sendmail configuration, some times an error will be received using m4:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf m4:/etc/mail/sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory # m4 sendmail.mc > sendmail.cf m4:sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
Resolution
This is because the sendmail-cf
package is not present and needs to be installed:
# yum install sendmail-cf -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.cat.pdx.edu * epel: ny-mirrors.evowise.com * extras: mirror.supremebytes.com ... ... Downloading packages: sendmail-cf-8.14.7-4.el7.noarch.rpm | 185 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : sendmail-cf-8.14.7-4.el7.noarch 1/1 Verifying : sendmail-cf-8.14.7-4.el7.noarch 1/1 Installed: sendmail-cf.noarch 0:8.14.7-4.el7 Complete!
You should now be able to run the m4 command and get the sendmail configuration updated.