From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ron Parker Newsgroups: gmane.os.tru64.managers Subject: Summary: Selectively Forwarding E-mail Date: Fri, 17 Jun 2005 12:21:08 -0500 Message-ID: <695D0CCA750B4043B2BA721015C4E4593D3A@HARMONY.brazosport.cc.tx.us> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1119028598 12333 80.91.229.2 (17 Jun 2005 17:16:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2005 17:16:38 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Jun 17 19:16:35 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DjKSB-0007KF-5p for gotm-tru64-unix-managers@gmane.org; Fri, 17 Jun 2005 19:16:27 +0200 Original-Received: (qmail 29124 invoked by uid 49509); 17 Jun 2005 17:21:31 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29109 invoked by uid 49501); 17 Jun 2005 17:21:31 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.6/5.0):. Processed in 2.550095 secs); 17 Jun 2005 17:21:31 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 17 Jun 2005 17:21:28 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0II800M0WO7P9U@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 17 Jun 2005 13:21:27 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0II800M02O7BES@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 17 Jun 2005 13:21:18 -0400 (EDT) Original-Received: from post.brazosport.cc.tx.us (99-177-40-206-reverse.brazosport.edu [206.40.177.99]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0II800M1DO799V@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 17 Jun 2005 13:21:11 -0400 (EDT) Original-Received: from HARMONY.brazosport.cc.tx.us ([206.40.177.101]) by post.brazosport.cc.tx.us with Microsoft SMTPSVC(6.0.3790.1830); Fri, 17 Jun 2005 12:21:09 -0500 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Thread-Topic: Summary: Selectively Forwarding E-mail Thread-Index: AcVyFWNhvLOfvPlrSxu6J9C3lFvpcABKyu2AAAgQpJA= Content-class: urn:content-classes:message X-Envelope-From: X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 X-OriginalArrivalTime: 17 Jun 2005 17:21:09.0868 (UTC) FILETIME=[F41022C0:01C57360] Xref: news.gmane.org gmane.os.tru64.managers:8363 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8363 First, thank you to Michael Warchut, Charles Ballowe, Tom Blinn, Jan Springer, John Halewood and Jay Leafey for providing suggestions. Several people suggested different versions of forwarding using the aliases file or .forward files in users' home directories. I'm very familiar with both of these but they weren't achieving what we wanted to achieve. I also received suggestions to alter Sendmail's configuration to use the virtusertable feature to enable forwarding. That was more of the direction I had wanted to go but it turned out to be unnecessary.=20 In the end, as I suspected, the solution was on the Exchange side of the world, not the Unix side. The Exchange people kept telling me that I had to fix it on the Unix side. I told them that Unix would be happy to forward the e-mail anywhere they liked but I needed someplace to tell Unix to send to since the Unix cluster thought it was brazosport.edu. The fix was to modify the Exchange configuration to accept mail from user@post.brazosport.edu and route it to the mailbox for user@brazosport.edu. This allowed me to forward mail from the Unix box to user@post.brazosport.edu and have it work. I just put an alias in the Sendmail alias file for the users that need this. An example alias would be: user: user@post.brazosport.edu You need to use the newaliases command after this change so that Sendmail will reread the aliases file. You may need to run it on every member of the cluster, if applicable, that uses this same alias file. This causes Sendmail to route all mail for "user" to user@post.brazosport.edu. Since "post" is not a hostname of the Unix cluster, it knows to look elsewhere for a place to send mail to this user. Once the mail arrived at "post" (one of the Exchange servers), there is a configuration in Exchange that tells it to do this mapping from one address to another using a template that can be applied to all users.=20 Again, many thanks for all the good suggestions.=20 -- Ron Parker Brazosport College -----Original Message----- From: tru64-unix-managers-owner@ornl.gov [mailto:tru64-unix-managers-owner@ornl.gov] On Behalf Of Ron Parker Sent: Wednesday, June 15, 2005 8:47 PM To: TRU64 Unix Managers List Subject: Selectively Forwarding E-mail We're in the process of migrating some of our users to an Exchange server. The Exchange server is going to be the main mail hub for our domains. The Tru64 cluster will still house some users who want to retain their e-mail addresses using the same domain name. I'm trying to find a trick that will let me tell Sendmail how to deliver some users locally and forward others to the Exchange server when everyone will still have the same domain name. I've been looking at various Sendmail ruleset ideas but I haven't really seen what I want. In other words, let's say that I have two users localuser@brazosport.edu and exuser@brazosport.edu. Localuser wants to continue accessing their e-mail under Unix. Exuser wants to access their e-mail using Exchange. Currently, if localuser wants to e-mail exuser from the Unix server, the message is rejected because exuser isn't known to the Unix server and has the same domain name. The other direction works because the Exchange server is set to forward e-mail that it can't deliver for the domain over to the Unix cluster for delivery. I think there's a way to do the same from the Unix side but I'm afraid of creating a mail loop.=20 Any ideas or suggestions on where to look for ideas are appreciated. -- Ron Parker Brazosport College