From owner-freebsd-questions Thu Aug 30 14:11: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from Interjet.citystamp.com (host-64-65-195-99.choiceone.net [64.65.195.99]) by hub.freebsd.org (Postfix) with ESMTP id 4967D37B403 for ; Thu, 30 Aug 2001 14:11:00 -0700 (PDT) (envelope-from freebsd@citystamp.com) Received: (from daemon@localhost) by Interjet.citystamp.com (8.8.5/8.8.5) id SAA25482; Thu, 30 Aug 2001 18:00:03 -0400 (EDT) Received: from UNKNOWN(192.168.1.125), claiming to be "citystamp.com" via SMTP by Interjet.citystamp.com, id smtpdk25458; Thu Aug 30 21:59:57 2001 Message-ID: <3B8DF582.15A310FD@citystamp.com> Date: Thu, 30 Aug 2001 16:12:50 +0800 From: "Matthew P. Marino" Reply-To: freebsd@citystamp.com Organization: City Stamp Works Inc. X-Mailer: Mozilla 4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Marius Kirschner Cc: FreeBSD Questions Subject: Re: sendmail question References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wow. You get around. Just saw this on the alt.comp.sendmail. You should have gotten the reply about the $=w macro. I'm sure this is it as I had a similar problem (only different in reverse). The ruleset looks at the part of the address after the @. If that is matched to an entry in the $=w macro then sendmail considers it local. Sendmail grabs the default data from the hosts file and/or DNS. It can also be apppended to by a file typicaly sendmail.cw or local-mail-hosts. run "sendmail -bt" then enter $=w. Also try "3,0 mail@this.dom" where the mail address is one of the ones thats misdeliverd. If the last line contains "local" you've got to correct that macro issue. Or, write your own rules (hurl). Try, "nslookup my.mx.com" where my.mx.com is the host name as it appears in the MX record for your zone. Often IP's are in the $=w macro and if it matches the IP of the MX that could cause your problem. Wordy but hopefully helpful. Marius Kirschner wrote: > > What would cause sendmail trying to deliver mail to a local user if the MX > record points to a different mail server? To explain further, and I've been > at this for over 2 weeks now..... > > I have a FreeBSD 4.3 box that hosts virtual web sites and if a mail is > entered on that box (mostly through a web form mailer) destined for an > virtual domain e-mail account it tries to deliver it locally. Naturally, it > bounces with an "user unknown" error message. > > Mail is delivered correctly when sent from anywhere but the box that hosts > the domain. I'm clueless... :) > > ---Marius > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message