From owner-freebsd-questions Sat Aug 4 16: 5:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.radzinschi.com (cc222717-a.owml1.md.home.com [65.8.33.207]) by hub.freebsd.org (Postfix) with ESMTP id 3E22337B401 for ; Sat, 4 Aug 2001 16:05:40 -0700 (PDT) (envelope-from marco@radzinschi.com) Received: from localhost (localhost.radzinschi.com [127.0.0.1]) by mail.radzinschi.com (8.11.3/8.11.3) with ESMTP id f74J7PS00565 for ; Sat, 4 Aug 2001 15:07:25 -0400 (EDT) (envelope-from marco@radzinschi.com) Date: Sat, 4 Aug 2001 15:07:25 -0400 (EDT) From: Marco Radzinschi To: FreeBDS-Questions Subject: Sendmail and multiple interfaces solved! Message-ID: <20010804150034.E554-100000@mail.radzinschi.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 Hello: I am running a mail server using sendmail on a gateway machine that links two subnets. I was having a problem where sendmail would not allow me to connect to the SMTP port (25) via both interfaces. I posted a message here requesting help, to which I got one reply, so I am posting this to help anyone who has or may have this problem in the future. What misled me was that all other services worked on BOTH interfaces, but sendmail only worked on the secondary one. I found out that sendmail will not allow a connection via an interface unless it recognizes it as being part of its own domain, so I checked my /etc/hosts file and realized that I only had an entry for the second interface, so I modified it as follows. Note that the original /etc/hosts file did not have any entries for the 192.168.1.2 address (first ethernet interface). Also, in case anyone is wondering why it is 192.168.1.2 and not 192.168.1.1, it is because the latter is the IP address of my firewall. ::1 localhost.radzinschi.com localhost 127.0.0.1 localhost.radzinschi.com localhost 192.168.2.1 mail.radzinschi.com mail 192.168.2.1 mail.radzinschi.com. 192.168.1.2 mail.radzinschi.com mail 192.168.1.2 mail.radzinschi.com. Ciao! Marco Radzinschi E-Mail: marco@radzinschi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message