Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 1997 02:33:59 -0800 (PST)
From:      Dmitry Kohmanyuk <dk@dog.farm.org>
To:        FreeBSD-gnats-submit@freebsd.org, obrien@cs.ucdavis.edu, dk@farm.org
Subject:   ports/2975: ports/mail/mutt builds with USE_DOMAIN defined
Message-ID:  <199703131033.CAA23391@dog.farm.org>
Resent-Message-ID: <199703131030.CAA19467@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2975
>Category:       ports
>Synopsis:       ports/mail/mutt builds with USE_DOMAIN - From: USER@HOST.cs.berkeley.edu
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 13 02:30:01 PST 1997
>Last-Modified:
>Originator:     Dmitry Kohmanyuk
>Organization:
FARM Computing Association
>Release:        FreeBSD 2.2-960501-SNAP i386
>Environment:

	mutt port hardwires the domain name it was compiled at
	into the executable and then uses this domain whenever sending mail.
	Expect more and more unsuspecting users grabbing mutt package and
	starting to send mail from hosts under cs.berkeley.edu domain
	(btw, Satoshi, can you get me zen.cs.berkeley.edu? ;-)

>Description:

	by default, configure scripts picks up the domain from the 
	host mutt is compiled on and puts it into config.h:#define DOMAIN
	it also enables USE_DOMAIN in config.h.
	After that, unless user have overridden domain in system-wide or local
	.muttrc, the shorthostname.cs.berkeley.edu is used whenever sending mail,
	in From:, Message-Id:, and unqualified addresses within To: and Cc: fields

	Btw, I think that the whole idea of hardwiring domain into executable is bad...
	the logic in init.c is also that evewnif you have your hostname set to FQDN
	(e.g., dog.farm.org), mutt eats everything after first dot and then puts
	hardwired hostname after that.  That's how I managed to sent a dozen or so
	messages as <dk@zen.cs.berkeley.edu> when actually running mutt on host
	named zen.genesyslab.com.

	if USE_DOMAIN is not defined, mutt does not try to use DOMAIN compiled in.

>How-To-Repeat:

	just install package or compile port, then start mutt and
	send mail from any host outside cs.berkeley.edu domain.
	look at From: and Message-Id: (comment out my_hdr From: and domain
	in your .muttrc / Muttrc if you have any).

>Fix:
	
	add this line into port Makefile:

CONFIGURE_ARGS="--disable-domain"


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703131033.CAA23391>