From owner-freebsd-ports Thu Mar 13 02:30:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA19473 for ports-outgoing; Thu, 13 Mar 1997 02:30:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA19467; Thu, 13 Mar 1997 02:30:02 -0800 (PST) Resent-Date: Thu, 13 Mar 1997 02:30:02 -0800 (PST) Resent-Message-Id: <199703131030.CAA19467@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-ports Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, dk@dog.farm.org Received: from minor.stranger.com (stranger.vip.best.com [204.156.129.250]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id CAA19372 for ; Thu, 13 Mar 1997 02:27:25 -0800 (PST) Received: from dog.farm.org (dog.farm.org [207.111.140.47]) by minor.stranger.com (8.6.12/8.6.12) with ESMTP id CAA13348; Thu, 13 Mar 1997 02:43:27 -0800 Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id CAA23391; Thu, 13 Mar 1997 02:33:59 -0800 (PST) Message-Id: <199703131033.CAA23391@dog.farm.org> Date: Thu, 13 Mar 1997 02:33:59 -0800 (PST) From: Dmitry Kohmanyuk Reply-To: dk@dog.farm.org To: FreeBSD-gnats-submit@freebsd.org, obrien@cs.ucdavis.edu, dk@farm.org X-Send-Pr-Version: 3.2 Subject: ports/2975: ports/mail/mutt builds with USE_DOMAIN defined Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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 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: