From owner-freebsd-questions Wed Jun 23 11:46:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (Postfix) with ESMTP id 5376C14E81 for ; Wed, 23 Jun 1999 11:46:18 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id LAA07270; Wed, 23 Jun 1999 11:46:12 -0700 (PDT) Date: Wed, 23 Jun 1999 11:46:12 -0700 (PDT) From: Dan Busarow To: Thomas Uhrfelt Cc: "'freebsd-questions@FreeBSD.ORG'" Subject: Re: Sendmail the horror In-Reply-To: <01BEBC2E.AF7BDB80.thomas.uhrfelt@plymovent.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 21 Jun 1999, Thomas Uhrfelt wrote: > I have now solved all my DNS problems with sendmail but have one more problem > to solve until I am > completely happy: > > right now I have: > > define(`MAIL_HUB',`smtp:x.ournet.com')dnl <----(dummynames) > > which resolves just fine and it gets transfered to that name from the machine > y.ournet.com (mailgateway). Unfortunately > it also stamps the message with the target adress so if I mail > user@ournet.com it comes to the mailgateway and > gets redirected to x.ournet.com.. which is all goodie and fine. Except for > one slight thing, its also readressed to > user@x.ournet.com ( and the target computer is a MS Exchange machine, which > apparently don't handle this very well ). Thomas, I haven't had to do this so I'm not sure it will work, but I think you want to use mailertable. feature('mailertable') Then in /etc/mailertable (the default name and location) have the line ournet.com smtp:x.ournet.com You need to run makemap hash on the file after editing. From the docs ...where "mailer" is the internal mailer name, and "domain" is where to send the message. These maps are not reflected into the message header. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message