From owner-freebsd-questions Sat Jun 24 22:42:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id EFB5137B708 for ; Sat, 24 Jun 2000 22:42:37 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (ppp1.patr.hellasnet.gr [212.54.197.16]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id HAA09651; Sun, 25 Jun 2000 07:41:37 +0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.10.2/8.10.2) id e5OGmKA00765; Sat, 24 Jun 2000 19:48:20 +0300 (EEST) Date: Sat, 24 Jun 2000 19:48:19 +0300 From: Giorgos Keramidas To: Wai Chan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendmail configuration Message-ID: <20000624194819.A706@hades.hell.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from waichan@hpu.edu on Fri, Jun 23, 2000 at 10:06:00PM -1000 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jun 23, 2000 at 10:06:00PM -1000, Wai Chan wrote: > sendmail seems to be using the following command: > > mail from: username@abc.com > instead of: > mail from: username@hostname.abc.com > > I get the prompt (220 hostname.abc.com ...) when I > "telnet hostname.abc.com 25" > > I would like to username@hostname.abc.com. I would appreciate it if > someone could throw me some pointoers on configuring sendmail. Thank > you in advance. There is no need to reconfigure sendmail for using a different envelope address (i.e. mail from:). You can set up your mail user agent (Mutt, in my case), to pass the -f option to sendmail with the address you want your mail to appear as originating from. I have in my ~/.muttrc: set sendmail="/usr/sbin/sendmail -oem -oi -f keramida@ceid.upatras.gr" and that pretty much takes care of changing the envelope address for me. Note though that, if you are not a `trusted' used of sendmail, i.e. one that is allowed to use the -f option by your sysadmin, your messages will all have an X-Authentication_Warning header added automagically by sendmail. To avoid this, you can edit your sendmail.cf and add your username to the trusted users (class "T"). By default my sendmail.cf had the following lines: ##################### # Trusted users # ##################### Troot Tdaemon Add another line with your local username, in this class, something like: Troot Tdaemon Tgiorgos and you will no longer see those annoying X-Authentication-Warning headers added automatically, because you used the -f option. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > For my public key: finger keramida@ceid.upatras.gr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message