Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 1998 12:43:13 +0200 (EET)
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        dkelly@hiwaay.net (David Kelly N4HHE)
Cc:        questions@FreeBSD.ORG
Subject:   Re: Sendmail tricks
Message-ID:  <199803211043.MAA03113@relay.ucb.crimea.ua>
In-Reply-To: <199803210223.UAA03946@nospam.hiwaay.net> from "David Kelly N4HHE" at "Mar 20, 98 08:23:04 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <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?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803211043.MAA03113>