From owner-freebsd-questions Wed Nov 8 11: 4:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id BE0A537B479 for ; Wed, 8 Nov 2000 11:04:25 -0800 (PST) Received: from hades.hell.gr (patr530-b026.otenet.gr [195.167.121.154]) by athserv.otenet.gr (8.10.1/8.10.1) with ESMTP id eA8J0LK01198 for ; Wed, 8 Nov 2000 21:00:22 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id eA81YKc15334 for questions@freebsd.org; Wed, 8 Nov 2000 03:34:20 +0200 (EET) Date: Wed, 8 Nov 2000 03:34:20 +0200 From: Giorgos Keramidas To: questions@freebsd.org Subject: /usr/bin/mail and envelope-sender Message-ID: <20001108033420.A15265@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Can I use some option to change the envelope sender address in /usr/bin/mail? When I call mail(1) with option -h (an invalid option), I can see: % mail -h mail: illegal option -- h Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... [- sendmail-options ...] mail [-iInNv] -f [name] mail [-iInNv] [-u user] The third line suggests that anything passed to mail(1) after a single hyphen char, is a sendmail option. However, trying to pass options in sendmail with: % mail - -fuser@domain.gr does not seem to work. Has anybody with more experience using mail(1) tried to change his/her envelope-sender address while using /usr/bin/mail? - giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message