From owner-freebsd-questions Sun Mar 9 17: 9:12 2003 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 EB70137B404 for ; Sun, 9 Mar 2003 17:09:09 -0800 (PST) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAD6043FB1 for ; Sun, 9 Mar 2003 17:09:08 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (user@mail [198.78.66.163]) by mail.econolodgetulsa.com (8.12.3/8.12.3) with ESMTP id h2A199dR025918; Sun, 9 Mar 2003 17:09:09 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Date: Sun, 9 Mar 2003 17:09:09 -0800 (PST) From: Josh Brooks To: freebsd-questions@freebsd.org Cc: m.seaman@infracaninophile.co.uk Subject: Re: (send)mailing from jail-host to jail Message-ID: <20030309165946.F94847-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 First off, thank you for your help. Here is what I did: first, I edited /etc/mail/freebsd.mc and made it look like this: dnl Uncomment both of the following lines to listen on IPv6 as well as dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet') dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6') FEATURE(no_default_msa) DAEMON_OPTIONS(`Name=IPv4, Addr=10.10.2.10, Family=inet') DAEMON_OPTIONS(`Name=IPv4, Addr=127.0.0.1, Family=inet') DAEMON_OPTIONS(`Name=MSA, Addr=10.10.2.10, Port=587, M=E') DAEMON_OPTIONS(`Name=MSA, Addr=127.0.0.1, Port=587, M=E') DAEMON_OPTIONS(`Name=IPv6, Addr=::1, Family=inet6') Then I did: cd /etc/mail make all make install And I verified that it went into sendmail.cf by looking at these lines that are now in sendmail.cf: # SMTP daemon options O DaemonPortOptions=Name=IPv4, Addr=10.10.2.10, Family=inet O DaemonPortOptions=Name=IPv4, Addr=127.0.0.1, Family=inet O DaemonPortOptions=Name=MSA, Addr=10.10.2.10, Port=587, M=E O DaemonPortOptions=Name=MSA, Addr=127.0.0.1, Port=587, M=E O DaemonPortOptions=Name=IPv6, Addr=::1, Family=inet6 Then I: /bin/sh /etc/rc.sendmail restart And there was no change in the behavior. When I send mail from the jail-host to the jail, I get a return mail saying "MX record for jail points back to jail-host" (which by the way, is patently WRONG - the mx record for jail resolves to X, and X is NOT jail-host...) Also, I noticed in /var/log/maillog that when sendmail starts, it does a reverse lookup on all the IPs on the system, and it fails on one of them - leaving me a: Mar 9 16:44:25 www sm-mta[10541]: gethostbyaddr(10.10.2.12) failed: 1 And this shows that sendmail is not doing what I tell it to in freebsd.mc- because if it was, it would NOT CARE AT ALL about that other IP on the system and whether or not it can reverse it, since as far as sendmail should be concerned, that IP does not exist. But, as you can see, it is continuing to care about other IPs on the box, such that it complains about an unrelated IP not being reversible, and continues to complain that the mx list for jail points back to jail-host (presumably because what jail _does_ resolve to is an IP it sees itself as owning...) So ... is there any way to get this to work ?The only way I can find is to unconfig the network interface for the IP of `jail` and then start sendmail, and then reconfig the jail IP. That works, but it is incredibly lame. thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message