From owner-freebsd-questions@FreeBSD.ORG Sat Jul 23 03:16:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A76416A41F for ; Sat, 23 Jul 2005 03:16:35 +0000 (GMT) (envelope-from lane@joeandlane.com) Received: from smtpauth08.mail.atl.earthlink.net (smtpauth08.mail.atl.earthlink.net [209.86.89.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3A8743D45 for ; Sat, 23 Jul 2005 03:16:33 +0000 (GMT) (envelope-from lane@joeandlane.com) Received: from [66.47.111.183] (helo=joeandlane.com) by smtpauth08.mail.atl.earthlink.net with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DwAV3-0004Hz-2l for freebsd-questions@freebsd.org; Fri, 22 Jul 2005 23:16:32 -0400 Received: from joeandlane.com (localhost [127.0.0.1]) by joeandlane.com (8.13.4/8.13.1) with ESMTP id j6N3Nlms043153 for ; Fri, 22 Jul 2005 22:23:49 -0500 (CDT) (envelope-from lane@joeandlane.com) Received: from localhost (localhost [[UNIX: localhost]]) by joeandlane.com (8.13.4/8.13.1/Submit) id j6N3NjNs043152 for freebsd-questions@freebsd.org; Fri, 22 Jul 2005 22:23:46 -0500 (CDT) (envelope-from lane@joeandlane.com) X-Authentication-Warning: joeandlane.com: lholcombe set sender to lane@joeandlane.com using -f From: Lane To: freebsd-questions@freebsd.org Date: Fri, 22 Jul 2005 22:23:45 -0500 User-Agent: KMail/1.8 References: <42CB29E4.8090203@vicor.com> In-Reply-To: <42CB29E4.8090203@vicor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507222223.45733.lane@joeandlane.com> X-CD-SOLUTIONS-MailScanner-Information: Please contact the ISP for more information X-CD-SOLUTIONS-MailScanner: Found to be clean X-CD-SOLUTIONS-MailScanner-From: lane@joeandlane.com X-ELNK-Trace: e56a4b6ca9bdfda11aa676d7e74259b7b3291a7d08dfec79a8ca68f88e64e0d871d372db9dfcc866350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.47.111.183 Subject: Re: aaaargghh.. sendmail again X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2005 03:16:35 -0000 On Tuesday 05 July 2005 19:46, Julian Elischer wrote: > N machines on a "ficticious net "fred.com" (not the real name). > > neet to get email out to the real world. via connected server > mailgate.real.domain. (ficticious name) > > They pass it forward to a server on their net "server.ficticious.net" > which uses the "Smarthost" option in Sendmail to > forward them on to mailgate.real.domain, > however mailgaet will not accept the mail unless the "sender" > resolves to something real. I have no control over that machine. > > I am trying to alter the sendmail config on server.ficticious.net > so that it rewrites the sender (both envelope and header) > to be from mumble@registered.domain. > > the sendmail m4 config file now has: > > divert(0) > VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.17 2002/11/14 > 03:21:18 keramida Exp $') > OSTYPE(freebsd4) > DOMAIN(generic) > > FEATURE(access_db, `hash -o -T /etc/mail/access') > FEATURE(blacklist_recipients) > FEATURE(local_lmtp) > FEATURE(mailertable, `hash -o /etc/mail/mailertable') > FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') > FEATURE(genericstable, `hash -o /etc/mail/senders.db') > > FEATURE(masquerade_entire_domain) > FEATURE(local_no_masquerade) > FEATURE(masquerade_envelope) > > define(`SMART_HOST', `mailgate.vicor-nb.com') > > MASQUERADE_AS(`registered.domain') > MASQUERADE_DOMAIN(`ficticious.net') > MASQUERADE_DOMAIN(`server.ficticious.net') > > where /etc/mail/senders.db > contains: the 'has' version of: > > root jre@registered.domain > root@server.ficticious.net jre2@registered.domain > > > > > So, by 2 different methods I'm trying to get the mail to say its coming > from registered.domain but it isn't doing it, leaving it as comig from > server.ficticious.net > > > is there a trick to this? > > _______________________________________________ Why not run BIND on mailgate and set /etc/resolv.conf to use nameserver localhost, and named.conf to use any required forwarders? This way you can monkey with the local DNS config and not have to do anything special with sendmail. Or ... maybe the problem is really over my head, and I just can't accept the fact :) lane