Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Aug 2001 15:07:25 -0400 (EDT)
From:      Marco Radzinschi <marco@radzinschi.com>
To:        FreeBDS-Questions <freebsd-questions@freebsd.org>
Subject:   Sendmail and multiple interfaces solved!
Message-ID:  <20010804150034.E554-100000@mail.radzinschi.com>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010804150034.E554-100000>