From owner-freebsd-questions Wed Nov 7 16:35: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 3E03837B41C for ; Wed, 7 Nov 2001 16:34:51 -0800 (PST) Received: from hades.hell.gr (patr530-a214.otenet.gr [212.205.215.214]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id fA80Yk003448; Thu, 8 Nov 2001 02:34:46 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id fA7MX4q79431; Thu, 8 Nov 2001 00:33:04 +0200 (EET) (envelope-from charon@labs.gr) Date: Thu, 8 Nov 2001 00:33:03 +0200 From: Giorgos Keramidas To: Nils Holland Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Problem with send-pr Message-ID: <20011108003303.A79276@hades.hell.gr> References: <20011031095200.M1587-100000@howie.ncptiddische.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011031095200.M1587-100000@howie.ncptiddische.net> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 31, 2001 at 10:01:37AM +0100, Nils Holland wrote: > Hi folks, > > I just wanted to use the send-pr command in order to submit a piece of > documentation to the FreeBSD Project, but I ran into some peoblems which > made my submission not come through. Here's what's wrong: > > Whenever I invoke send-pr and send something with it, it sets the > originating eMail address = my username @ my hostname. Since the machine > I'm currently working on is called howie.ncptiddische.net, it would set > the originating eMail address to nils@howie.ncptiddische.net. That's because your MTA (Sendmail, Qmail or something) does not alter the `envelope from' address of mail that originates from your machine. When I was trying to find my way around, and send a bug report with send-pr, the changes I had to make to my Sendmail configuration were simple. I just had to configure Sendmail to make the envelope-from of all mail coming from my personal account look like it was coming from a valid e-mail account I have. My machine thinks that it's name is "hades.hell.gr", an address that does not resolve. So, I changed my /etc/mail/sendmail.mc to include: FEATURE(`genericstable', `btree -o /etc/mail/genericstable')dnl GENERICS_DOMAIN(`hell.gr')dnl FEATURE(`generics_entire_domain')dnl I rebuilt my sendmail.cf, and created a file called genericstable in /etc/mail with the line: charon@hades.hell.gr charon@labs.gr charon@hell.gr charon@labs.gr Rebuilt the genericstable.db table with: % makemap btree genericstable < genericstable And, finally restarted my Sendmail :-) # killall -HUP sendmail This way, when I do not specify an envelope address with the -f option to /usr/sbin/sendmail, it uses charon@hades.hell.gr which gets mapped to charon@labs.gr with genericstable, and the logs say something similar to: Oct 19 20:54:22 hades sendmail[21724]: f9JHsLU21724: from=charon@labs.gr, \ size=2706, class=0, nrcpts=0, \ msgid=<20011019205421.A21519 @hades.hell.gr>, relay=charon@localhost The envelope-from address as you can see has been rewritten (that is what from=charon@labs.gr means). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message