sendmail.cf should be generated on the end user machine, not distributed. Reproducible: Always Steps to Reproduce: 1. emerge sendmail 2. ls -l /etc/mail Expected Results: sendmail.cf should be generated on the end user machine.
This also applies to submit.cf. The sendmail ebuild does not even install a submit.mc file! The Makefile in this bug contains the commands to build a proper sendmail.cf and submit.cf: http://bugs.gentoo.org/show_bug.cgi?id=35391
These are the files that should not be distributed: sock sendmail # l /usr/portage/mail-mta/sendmail/files/*.cf -rw-r--r-- 1 root root 39897 May 30 02:20 /usr/portage/mail-mta/sendmail/files/sendmail-procmail.cf -rw-r--r-- 1 root root 39312 May 30 02:20 /usr/portage/mail-mta/sendmail/files/sendmail.cf
A new sendmail-8.13.1-r1 ebuild is masked in portage now and it generates .cf files locally using our .mc files. Testing is appreciated :)
The sendmail.mc looks good after the merge. The submit.mc file is still missing. Note there is still no facility for rebuilding the file with any local settings.
What's the purpose of submit.mc? submit.cf rarely needs to be tweaked. Also what do you mean with "there is still no facility for rebuilding the file with any local settings" ? Are you still referring to submit.mc|cf ?
submit.mc is used for the MSA settings. Most people don't run/use the MSA so that is why it is rarely tweaked. If you run it though, you'll probably want the submit.mc If someone wants to make local tweaks to their sendmail.mc there are no instructions on how to regenerate the .cf file. Almost all linux distros include a Makefile to make this easier.
Well I use the MSA and I never had to tweak submit.mc, anyway since it's already there in /usr/share/sendmail-cf/cf/submit.mc I just commited a fix to 8.13.4-r1 that makes a copy of it into /etc/mail with a proper 'include' statement in it for easy m4 ricompilation. About the Makefile please see/comment bug 35391.