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/ > /etc/mail/
m4:/etc/mail/ cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

# m4 > cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory


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:
 * epel:
 * extras:
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

  sendmail-cf.noarch 0:8.14.7-4.el7


You should now be able to run the m4 command and get the sendmail configuration updated.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *