From owner-FreeBSD-users-jp@jp.freebsd.org  Fri Apr 20 16:52:09 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id QAA64685;
	Fri, 20 Apr 2001 16:52:09 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from muse.hans.or.jp (muse.hans.or.jp [202.35.92.193])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id QAA64679
	for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 20 Apr 2001 16:52:06 +0900 (JST)
	(envelope-from shin@muse.hans.or.jp)
Received: (from shin@localhost)
	by muse.hans.or.jp (8.12.0.Beta7/8.12.0.Beta7/muse)
	id f3K7q2Mo013067;
	Fri, 20 Apr 2001 16:52:02 +0900 (JST)
	(envelope-from shin)
Date: Fri, 20 Apr 2001 16:52:02 +0900 (JST)
Message-Id: <200104200752.f3K7q2Mo013067@muse.hans.or.jp>
References: <200104200448.NAA05237@moon.kowa-inc.co.jp>
Mime-Version: 1.0
From: shin@hans.or.jp (Teruhiko Shinmura)
To: FreeBSD-users-jp@jp.freebsd.org
In-reply-to: FreeBSD-users-jp@jp.freebsd.org's message of "Fri, 20 Apr 2001
 13:48:27 +0900" <200104200448.NAA05237@moon.kowa-inc.co.jp>
Content-Type: text/plain; charset=ISO-2022-JP
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: FreeBSD-users-jp 60960
Subject: [FreeBSD-users-jp 60960] Re: sendmail8.11.3
 =?ISO-2022-JP?B?GyRCJEcldCUhITwlQSVjJWslNSE8JVAhPCQsQDUbKEI=?=
 =?ISO-2022-JP?B?GyRCJDckL0YwOm4kNyReJDskcxsoQg==?= 
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: shin@hans.or.jp

$B?7B<$H?=$7$^$9!#(B

In message "[FreeBSD-users-jp 60958] sendmail8.11.3 $B$G%t%!!<%A%c%k%5!<%P!<$,@5$7$/F0:n$7$^$;$s(B"
    on 2001/04/20, Taeji Tagawa <tagawa@kowa-inc.co.jp> writes:

T> $B:#2s(Bsendmail$B$G%t%!!<%A%c%k%5!<%P!<$KBP1~$7$?$/$F!"(B
T> m4$B$K$F(Bcf$B$N:n@.$r$7$F$$$k$N$G$9$,@5$7$/F0:n$7$F$/$l$^$;$s!#(B
T> $B>u67$H$7$^$7$F$O!"(B
T> 1./etc/mail/freebsd.mc$B$r0J2<$NDL$j@_Dj$7$F$$$^$9!#(B
($BN,(B)
T> 2.make cf$B$K$F(Bfreebsd.cf$B$r:n@.!#(B
T> 3.make install$B$K$F(Bsendmail.cf$B$HF~$lBX$(!#(B
T> 4./etc/mail/virtusertable$B$r:n@.!#(B
T> 5.make maps$B$K$F(BhashDB$B$N:n@.!#(B
T> 6.sendmail$B$r(Bkill -HUP$B$9$k!#(B
T> 7.$BB>$N%a!<%k%5!<%P!<$h$j%t%!!<%A%c%k%I%a%$%s08$F$K%a!<%k$rAw?.$9$k!#(B
T> 8.$BAw?.$7$?%"%I%l%9$X0J2<$N%(%i!<%a%C%;!<%8$,JV$5$l$k!#(B
T> --
T> 553 5.3.5 ns1.hogehoge.ne.jp. config error: mail loops back to me (MX 
T> problem?)
T> 554 5.3.5 <xxx@ns1.hogehoge.ne.jp>... Local configuration error
T> Reporting-MTA: dns; ns1.xxxxxx.co.jp
T> Received-From-MTA: DNS; smtp.xxxxxx.co.jp
T> Arrival-Date: Fri, 20 Apr 2001 13:25:15 +0900 (JST)
T> --
T> $B$I$J$?$+8fH=$j$K$J$kJ}Kt$O>pJs$,:\$C$F$$$k(BURL$B$r$4B8CN$NJ}$,(B
T> $B5o$i$l$^$7$?$i8f65$(D:$1$^$;$s$G$7$g$&$+!)(B

$B0l@NA0$O!"(Bsendmail.cw $B$d(B local-host-names $B$K%P!<%A%c%k%I%a%$%sL>$r(B
$B5-=R$7$^$7$?$,!"8=:_$G$O(B VIRTUSER_DOMAIN_FILE() $B$K5-=R$9$k;v$r?d>)(B
$B$5$l$F$$$k$h$&$G$9!#(B

$BNc(B)
VIRTUSER_DOMAIN_FILE(`-o /etc/mail/virtdomains')dnl

# $B$5$j$2$J$/@kEA!#(B:-)
# $B!V(Bm4 $B$r;HMQ$7$F(B CF $B$N(B USERTABLE_MAPS $B$HF1MM$N;v$r9T$J$&$K$O!W(B
# <URI:http://www.isoternet.org/~y-koga/cf/tips/CF_USERTABLE_MAPS_to_m4>

VIRTUSER_DOMAIN_FILE() $B$K5-=R$7$F$b%(%i!<$K$J$k>l9g$O0J2<$r8fMw2<(B
$B$5$$!#(B

Sendmail FAQ, Section 4
 http://www.sendmail.org/faq/section4.html#4.5

-----
Subject: Q4.5 -- How can I solve "MX list for hostname points back to hostname"
and "config error: mail loops back to myself" messages?

   Date: January 17, 1997
   Updated: May 8, 2000

   I'm getting these error messages:
        553 MX list for domain.net points back to relay.domain.net
        554 <user@domain.net>... Local configuration error

   How can I solve this problem?

   You have asked mail to a domain (e.g., domain.net) to be forwarded to
   a specific host (in this case, relay.domain.net) by using an MX
   record, but the relay machine doesn't recognize itself as domain.net.
   Add domain.net to /etc/mail/local-host-names [known as
   /etc/sendmail.cw prior to version 8.10] (if you are using
   FEATURE(`use_cw_file')) or add "Cw domain.net" to your configuration
   file.

   There are a couple of additional cases where you don't actually want
   local delivery, and thus adding domain.net to class w is not the right
   fix:
     * When relay.domain.net should just be acting as a forwarder, e.g. a
       firewall/gateway box. The proper fix could be to set up a
       mailertable entry for domain.net.
     * When relay.domain.net is a secondary (etc.) MX, and the MX
       mistakenly points to a CNAME or other "non-canonical" name [this
       gives "config error: mail loops back to me (MX problem?)"]. The
       proper fix is to point the MX at the actual name, a "work-around"
       to add the MX target to class w.

   IMPORTANT: When making changes to your configuration file, be sure you
   kill and restart the sendmail daemon (for any change in the
   configuration, not just this one):

        kill -HUP `head -1 /var/run/sendmail.pid`
-----

--
shin

