From owner-freebsd-questions Mon Mar 30 04:43:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA27077 for freebsd-questions-outgoing; Mon, 30 Mar 1998 04:43:00 -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 EAA26853 for ; Mon, 30 Mar 1998 04:38:59 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id PAA21791 for questions@freebsd.org; Mon, 30 Mar 1998 15:38:06 +0300 (EEST) (envelope-from ru) From: Ruslan Ermilov Message-Id: <199803301238.PAA21791@relay.ucb.crimea.ua> Subject: Rewriting sender's address in sendmail To: questions@FreeBSD.ORG (FreeBSD Questions) Date: Mon, 30 Mar 1998 15:38:06 +0300 (EEST) 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 Hi! I have a small problem, which I want you to help me resolve using sendmail features/RULESETs. Here is it: There is a mailing list , which is protected to accept only those mails, which have its sender subscribed to the list. This is generally right, but makes me some inconvenience... I have subscribed a local alias (oracle-l@ucb.crimea.ua) to that list, which then delivers mail to a number of my users. But when users try to send out mail to the list, the only way to do this (in the time of writing) is to use sendmail's ``-f'' option to specify the name of ``from'' person to be Oracle-L@ucb.crimea.ua. Is there a way to make sendmail rewrite sender's name to oracle-l when the users send mail to oracle-l@dbinfo.com. I have tried to modify RULESET_1 to do this, but macro $u isn't yet defined while parsing RULESET_1. Any ideas? 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