From owner-freebsd-questions@FreeBSD.ORG Mon Mar 31 21:17:55 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A712E106564A for ; Mon, 31 Mar 2008 21:17:55 +0000 (UTC) (envelope-from chris@smartt.com) Received: from nov.smartt.com (nov.smartt.com [69.31.173.253]) by mx1.freebsd.org (Postfix) with ESMTP id 86F228FC1F for ; Mon, 31 Mar 2008 21:17:55 +0000 (UTC) (envelope-from chris@smartt.com) Received: from [69.31.174.220] ([69.31.174.220]) (authenticated bits=0) by nov.smartt.com (8.13.8/8.13.5) with ESMTP id m2VLHmWe001802; Mon, 31 Mar 2008 14:17:48 -0700 Message-ID: <47F15505.4000507@smartt.com> Date: Mon, 31 Mar 2008 14:17:57 -0700 From: Chris St Denis User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Giorgos Keramidas References: <47F149A8.4030509@smartt.com> <87wsnia9ei.fsf@kobe.laptop> In-Reply-To: <87wsnia9ei.fsf@kobe.laptop> X-Spam-Status: No, score=-4.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, HTML_MESSAGE autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on nov.smartt.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: changed sendmail behavior on FreeBSD 7? 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: Mon, 31 Mar 2008 21:17:55 -0000 Giorgos Keramidas wrote: > On Mon, 31 Mar 2008 13:29:28 -0700, Chris St Denis wrote: > >> I've setup a new web server hostname doremi.ctgameinfo.com. When I try >> to send mail to username@ctgameinfo.com it tries to deliver it locally >> instead of to the mx server mx1.ctgameinfo.com. >> >> In previous versions this seems to work correctly. Why would it be >> trying to deliver locally this time? I'm running default sendmail >> config that comes with the standard install. >> > > Show us your `/etc/mail/hostname.mc' file, and if you have a file with a > list of `local' hostnames in `/etc/mail/local-host-names' show us that > file too. > It's just the default mc file. Scenario 1 described above ------------- No local-host-names file. I tried creating one with just the hostname in it, but it didn't help. doremi# cat /etc/mail/doremi.ctgameinfo.com.mc | grep -v ^# | grep -v ^dnl divert(-1) divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.1 2007/11/22 16:19:40 gshapiro Exp $') OSTYPE(freebsd6) 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') define(`confCW_FILE', `-o /etc/mail/local-host-names') DAEMON_OPTIONS(`Name=IPv4, Family=inet') DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) Scenario 2 described above. stickyhost & MAIL_HUB were added to work around. ------------- no local-host-names initially. One was created trying to debug this tho it doesn't seem to help any. carbon# cat /etc/mail/local-host-names localhost carbon.smartt.com carbon# cat /etc/mail/carbon.smartt.com.mc | grep -v ^# | grep -v ^dnl divert(-1) divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.1 2007/11/22 16:19:40 gshapiro Exp $') OSTYPE(freebsd6) 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(stickyhost) define(`MAIL_HUB', `smtp-be1') define(`confCW_FILE', `-o /etc/mail/local-host-names') DAEMON_OPTIONS(`Name=IPv4, Family=inet') DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) Btw, should OSTYPE haven't been bumped to freebsd7?