From owner-freebsd-questions Sat Mar 21 02:45:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA23012 for freebsd-questions-outgoing; Sat, 21 Mar 1998 02:45:02 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA22982 for ; Sat, 21 Mar 1998 02:44:21 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id MAA03113; Sat, 21 Mar 1998 12:43:13 +0200 (EET) (envelope-from ru) From: Ruslan Ermilov Message-Id: <199803211043.MAA03113@relay.ucb.crimea.ua> Subject: Re: Sendmail tricks In-Reply-To: <199803210223.UAA03946@nospam.hiwaay.net> from "David Kelly N4HHE" at "Mar 20, 98 08:23:04 pm" To: dkelly@hiwaay.net (David Kelly N4HHE) Date: Sat, 21 Mar 1998 12:43:13 +0200 (EET) Cc: questions@FreeBSD.ORG X-My-Interests: Unix,Oracle,Networking X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Once David Kelly N4HHE wrote: > Ruslan Ermilov writes: > > Hi! > > > > I have to rewrite sender's address based on the recipient's address. > > > > Example: > > > > There is a mailing list . > > I have a local alias , 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? No, I want to do it using some ``sendmail tricks''. The problem is that macro $u is not yet defined in RULESET_1. Is there a way to check recipient's address in RULESET_1? > 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. Thanks, I know what is bulk_mailer for. I just looking for a better solution. TIA, -- Ruslan Ermilov System Administrator ru@ucb.crimea.ua United Commercial Bank +380-652-247647 Simferopol, Crimea 2426679 ICQ Network, UIN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message