Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70309 - sendmail.cf needs to be generated, not distributed
Summary: sendmail.cf needs to be generated, not distributed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-06 16:07 UTC by Zeek
Modified: 2005-06-24 00:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zeek 2004-11-06 16:07:53 UTC
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.
Comment 1 Zeek 2004-11-06 16:11:00 UTC
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
Comment 2 David Sparks 2004-11-08 13:54:02 UTC
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
Comment 3 Andrea Barisani (RETIRED) gentoo-dev 2004-12-07 02:21:27 UTC
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 :)
Comment 4 David Sparks 2005-02-14 16:12:40 UTC
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.
Comment 5 Andrea Barisani (RETIRED) gentoo-dev 2005-05-17 06:05:31 UTC
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 ?
Comment 6 David Sparks 2005-06-23 17:03:52 UTC
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.
Comment 7 Andrea Barisani (RETIRED) gentoo-dev 2005-06-24 00:45:43 UTC
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.