From owner-freebsd-questions  Fri Mar 20 18:45:28 1998
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id SAA01239
          for freebsd-questions-outgoing; Fri, 20 Mar 1998 18:45:28 -0800 (PST)
          (envelope-from owner-freebsd-questions@FreeBSD.ORG)
Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA01122
          for <questions@freebsd.org>; Fri, 20 Mar 1998 18:45:13 -0800 (PST)
          (envelope-from dkelly@nospam.hiwaay.net)
Received: from nospam.hiwaay.net (tnt1-79.HiWAAY.net [208.147.147.79])
	by fly.HiWAAY.net (8.8.8/8.8.6) with ESMTP id UAA03219;
	Fri, 20 Mar 1998 20:44:54 -0600 (CST)
Received: from localhost (localhost [127.0.0.1])
          by nospam.hiwaay.net (8.8.8/8.8.4) with ESMTP
	  id UAA03946; Fri, 20 Mar 1998 20:23:04 -0600 (CST)
Message-Id: <199803210223.UAA03946@nospam.hiwaay.net>
X-Mailer: exmh version 2.0.2 2/24/98
To: Ruslan Ermilov <ru@ucb.crimea.ua>
Cc: questions@FreeBSD.ORG
From: David Kelly N4HHE <dkelly@hiwaay.net>
Subject: Re: Sendmail tricks 
In-reply-to: Message from Ruslan Ermilov <ru@ucb.crimea.ua> 
   of "Fri, 20 Mar 1998 13:24:43 +0200." <199803201124.NAA22921@relay.ucb.crimea.ua> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 20 Mar 1998 20:23:04 -0600
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

Ruslan Ermilov writes:
> Hi!
> 
> I have to rewrite sender's address based on the recipient's address.
> 
> Example:
> 
> 	There is a mailing list <ORACLE-L@DBINFO.COM>.
> 	I have a local alias <Oracle-L@ucb.crimea.ua>, which
> 	is subscribed to the list. Now, when I send mail to
> 	ORACLE-L@DBINFO.COM, I want it to be sent from
> 	Oracle-L@ucb.crimea.ua, not from ru@ucb.crimea.ua.
> 
> Anyone knows HOW can I do this?

You are "ru@ucb.crimea.ua" but when *you* send the message you want it 
to say you are really "Oracle-L@ucb.crimea.ua"? I don't know how you do 
it in ELM but in MH (actually using exmh2) I simply put an appropriate
From: line in ~/Mail/{distcomps,replcomps} in order to take care of the 
problem of a dailup network connection and dynamic IP address.

Exmh places this From: line in the composition window, so its easy to 
change on a per-message basis. I added "N4HHE" to this message just for 
kicks.

Is that the kind of thing you were thinking about?

Another way, probably frought with problems would be to create yet 
another alias but this time one that forwards to ORACLE-L@DBINFO.COM. 
If you forward thru bulk_mailer (see ports/mail/bulk_mailer) it has 
options to rewrite Reply-To and other headers. That might do what you 
want.

--
David Kelly N4HHE, dkelly@nospam.hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message