Bug 17254

Summary: mailwrapper links & NO_SENDMAIL=yes
Product: Base System Reporter: Giorgos Keramidas <keramida>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Giorgos Keramidas 2000-03-07 23:10:01 UTC
	I'm using qmail on 4.0, and the 'make world' thing keeps
	overwriting the symlink of /usr/sbin/sendmail pointing to the
	qmail wrapper /var/qmail/bin/sendmail.

	I've tracked this to the SYMLINKS= line in the Makefile of
	/usr/src/usr.sbin/mailwrapper/ and tested a small patch that
	will inhibit the creation of SYMLINKS if NO_SENDMAIL=yes.

	It doesn't seem to break 'make install' of mailwrapper, but it
	keeps my link safe from being overwritten.
	See the included patch below ;)

How-To-Repeat: 
	If you're using qmail, make the link from /usr/sbin/sendmail to
	point to /var/qmail/bin/sendmail.  On your next 'installworld'
	the link is overwritten with a link to /usr/sbin/mailwrapper.
Comment 1 Sheldon Hearn 2000-03-07 23:17:32 UTC
On 07 Mar 2000 22:11:14 GMT, keramida@ceid.upatras.gr wrote:

> 	I'm using qmail on 4.0, and the 'make world' thing keeps
> 	overwriting the symlink of /usr/sbin/sendmail pointing to the
> 	qmail wrapper /var/qmail/bin/sendmail.

Don't fight it.  Learn to point mailwrapper at qmail.  See the
mailwrapper(8) manual page.

> 	I've tracked this to the SYMLINKS= line in the Makefile of
> 	/usr/src/usr.sbin/mailwrapper/ and tested a small patch that
> 	will inhibit the creation of SYMLINKS if NO_SENDMAIL=yes.

Actually, most folks who have NO_SENDMAIL=yes actually _want_ the
mailwrapper program.  Have a look at what it does; I think you'll be
pleasantly surprised. :-)

Ciao
Sheldon.
Comment 2 Giorgos Keramidas 2000-03-08 00:17:20 UTC
On Wed, Mar 08, 2000 at 01:17:32AM +0200, Sheldon Hearn wrote:
> 
> Don't fight it.  Learn to point mailwrapper at qmail.  See the
> mailwrapper(8) manual page.

On the point, as always, and rather helpful.

I'll have a look at mailwrapper(8) tonight, and see what I can do.

Thank you Sheldon :)

-- 
Giorgos Keramidas, < keramida @ ceid . upatras . gr >
For my public PGP key: finger keramida@diogenis.ceid.upatras.gr
PGP fingerprint, phone and address in the headers of this message.
Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-08 00:37:15 UTC
State Changed
From-To: open->closed

Originator is happy that this isn't an issue.