From owner-freebsd-questions@FreeBSD.ORG Sat Apr 7 00:17:17 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 36F7E16A402 for ; Sat, 7 Apr 2007 00:17:17 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id E631813C45B for ; Sat, 7 Apr 2007 00:17:14 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from archangel.daleco.biz ([69.27.149.254]) by ezekiel.daleco.biz (8.13.8/8.13.1) with ESMTP id l370HAJt006011; Fri, 6 Apr 2007 19:17:12 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4616E300.60701@daleco.biz> Date: Fri, 06 Apr 2007 19:17:04 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2pre) Gecko/20070221 SeaMonkey/1.1 MIME-Version: 1.0 To: Olivier Regnier References: <4616D383.1040508@steelbox.org> In-Reply-To: <4616D383.1040508@steelbox.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: send email with mail command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 00:17:17 -0000 Olivier Regnier wrote: > Hello, > > I tested the mail command in console and my question is, it is possible > to indicate the MAIL FROM: me@domain.net ? > > Thank you :) Not sure about mail(1); manpage says environment variable REPLYTO is honored; you might try to modify the headers to add the "-f me@mine.com" switch. That said, I have EMAIL defined here because mutt's manpage says it can be used for exactly what you are asking about, and plain mail(1) seems to honor that in a local test. You might give it a try; either define it in your shell resource scripts or your ~/.mailrc. BTW, if you're wanting to use mail from console, I'd recommend mutt over mail(1) any day of the week, unless you have some mitigating circumstance.... HTH, Kevin Kinsey -- One difference between a man and a machine is that a machine is quiet when well oiled.