Re: mail port 8025 conundrum
On Fri, Feb 17, 2006 at 08:11:35PM +0200, Giorgos Keramidas wrote: > On 2006-02-17 12:04, David Banning <[EMAIL PROTECTED]> wrote: > > > Do you have an entry in /etc/hosts for banning.ca ? > > > > I put it in, and it cured the problem. I just don't know if I can have > > more than one entry in /etc/hosts representing all virtual hosts, > > each one with the same IP. > > You don't have to add multiple lines for this. Adding more than one > name in the same IP address line should work too: > > 1.2.3.4 hostname1 hostname2 hostname3 Good to know - Thanks - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
On 2006-02-17 12:04, David Banning <[EMAIL PROTECTED]> wrote: > > Do you have an entry in /etc/hosts for banning.ca ? > > I put it in, and it cured the problem. I just don't know if I can have > more than one entry in /etc/hosts representing all virtual hosts, > each one with the same IP. You don't have to add multiple lines for this. Adding more than one name in the same IP address line should work too: 1.2.3.4 hostname1 hostname2 hostname3 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
On 2006-02-17 12:21, David Banning <[EMAIL PROTECTED]> wrote: > > Er, I'm pretty sure it's /etc/host.conf (no "s"). > > > > But if your /etc/hosts doesn't contain the hostname you are after, that > > only leaves DNS, NIS and LDAP (I think) for the host.conf file to > > order. For DNS, what does "host whatever.your.hostname.was" show from > > the machine where you seem to be getting the wrong answer? > > Originally there was no banning.ca entry. > 127.0.0.1 points simply to localhost > > My actual server name is 3s1.com, which points to 209.161.205.12 > (my static IP) in /etc/hosts > > You are right about host.conf, but it is almost empty; That's a perfectly normal host.conf file though :) > root# cat /etc/host.conf > # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ > # First try the /etc/hosts file > hosts > # Now try the nameserver next. > bind > # If you have YP/NIS configured, uncomment the next line > # nis > root# So if you add something to /etc/hosts it will override DNS :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
On 2006-02-17 17:16, Alex Zbyslaw <[EMAIL PROTECTED]> wrote: >David Banning wrote: >>>Look under /etc for hosts.conf or nsswitch.conf: >>> >>> [...] >> >> root# ls -l /etc/hosts* >> -rw-r--r-- 1 root wheel 1694 May 13 2005 /etc/hosts >> -rw-r--r-- 1 root wheel 3027 Mar 27 2005 /etc/hosts.allow >> -rw-r--r-- 1 root wheel 421 Mar 27 2005 /etc/hosts.equiv >> -rw-r--r-- 1 root wheel99 Apr 3 2003 /etc/hosts.lpd >> root# ls -tl /etc/nss* >> ls: /etc/nss*: No such file or directory >> root# > > Er, I'm pretty sure it's /etc/host.conf (no "s"). You're absolutely right, of course. Sorry for the confusion :-) > But if your /etc/hosts doesn't contain the hostname you are after, > that only leaves DNS, NIS and LDAP (I think) for the host.conf file to > order. For DNS, what does "host whatever.your.hostname.was" show from > the machine where you seem to be getting the wrong answer? Good question :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
> Er, I'm pretty sure it's /etc/host.conf (no "s"). > > But if your /etc/hosts doesn't contain the hostname you are after, that > only leaves DNS, NIS and LDAP (I think) for the host.conf file to > order. For DNS, what does "host whatever.your.hostname.was" show from > the machine where you seem to be getting the wrong answer? Originally there was no banning.ca entry. 127.0.0.1 points simply to localhost My actual server name is 3s1.com, which points to 209.161.205.12 (my static IP) in /etc/hosts You are right about host.conf, but it is almost empty; root# cat /etc/host.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis root# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
David Banning wrote: Look under /etc for hosts.conf or nsswitch.conf: [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/hosts* -rw-r--r-- 1 root wheel - 655 Feb 15 15:00 /etc/hosts -rw-r--r-- 1 root wheel - 1484 Feb 15 15:00 /etc/hosts.allow -rw-r--r-- 1 root wheel - 111 Feb 15 14:45 /etc/hosts.equiv -rw-r--r-- 1 root wheel - 99 Feb 15 14:45 /etc/hosts.lpd [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/nss* -rw-r--r-- 1 root wheel - 18 Feb 15 17:03 /etc/nsswitch.conf [EMAIL PROTECTED]:/home/keramida$ grep hosts /etc/nsswitch.conf hosts: files dns [EMAIL PROTECTED]:/home/keramida$ root# ls -l /etc/hosts* -rw-r--r-- 1 root wheel 1694 May 13 2005 /etc/hosts -rw-r--r-- 1 root wheel 3027 Mar 27 2005 /etc/hosts.allow -rw-r--r-- 1 root wheel 421 Mar 27 2005 /etc/hosts.equiv -rw-r--r-- 1 root wheel99 Apr 3 2003 /etc/hosts.lpd root# ls -tl /etc/nss* ls: /etc/nss*: No such file or directory root# Er, I'm pretty sure it's /etc/host.conf (no "s"). But if your /etc/hosts doesn't contain the hostname you are after, that only leaves DNS, NIS and LDAP (I think) for the host.conf file to order. For DNS, what does "host whatever.your.hostname.was" show from the machine where you seem to be getting the wrong answer? --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
> Do you have an entry in /etc/hosts for banning.ca ? I put it in, and it cured the problem. I just don't know if I can have more than one entry in /etc/hosts representing all virtual hosts, each one with the same IP. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
> What version of FreeBSD is this? You may have to create hosts.conf or > nsswitch.conf yourself to change the default order of lookup for host > names (from "files dns" to "dns files" if that works better for your > setup). root# uname -a FreeBSD 3s1.com 4.8-RELEASE FreeBSD 4.8-RELEASE #6: Tue May 31 23:58:57 EDT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/tracker i386 root# I am not sure what hosts.conf or nsswitch.conf are about. I have never needed them before. I will have to google them; root# man hosts.conf No manual entry for hosts.conf root# man nsswitch.conf No manual entry for nsswitch.conf root# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
David Banning wrote: It works from the outside world: Well that is good news. OK, so why would my server be looking internally for the banning.ca IP address? Any ideas? Do you have an entry in /etc/hosts for banning.ca ? -- Ken Stevenson Allen-Myland Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
On 2006-02-17 11:50, David Banning <[EMAIL PROTECTED]> wrote: >> Look under /etc for hosts.conf or nsswitch.conf: >> >> [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/hosts* >> -rw-r--r-- 1 root wheel - 655 Feb 15 15:00 /etc/hosts >> -rw-r--r-- 1 root wheel - 1484 Feb 15 15:00 /etc/hosts.allow >> -rw-r--r-- 1 root wheel - 111 Feb 15 14:45 /etc/hosts.equiv >> -rw-r--r-- 1 root wheel - 99 Feb 15 14:45 /etc/hosts.lpd >> [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/nss* >> -rw-r--r-- 1 root wheel - 18 Feb 15 17:03 /etc/nsswitch.conf >> [EMAIL PROTECTED]:/home/keramida$ grep hosts /etc/nsswitch.conf >> hosts: files dns >> [EMAIL PROTECTED]:/home/keramida$ > > root# ls -l /etc/hosts* > -rw-r--r-- 1 root wheel 1694 May 13 2005 /etc/hosts > -rw-r--r-- 1 root wheel 3027 Mar 27 2005 /etc/hosts.allow > -rw-r--r-- 1 root wheel 421 Mar 27 2005 /etc/hosts.equiv > -rw-r--r-- 1 root wheel99 Apr 3 2003 /etc/hosts.lpd > root# ls -tl /etc/nss* > ls: /etc/nss*: No such file or directory > root# What version of FreeBSD is this? You may have to create hosts.conf or nsswitch.conf yourself to change the default order of lookup for host names (from "files dns" to "dns files" if that works better for your setup). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
> Look under /etc for hosts.conf or nsswitch.conf: > > [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/hosts* > -rw-r--r-- 1 root wheel - 655 Feb 15 15:00 /etc/hosts > -rw-r--r-- 1 root wheel - 1484 Feb 15 15:00 /etc/hosts.allow > -rw-r--r-- 1 root wheel - 111 Feb 15 14:45 /etc/hosts.equiv > -rw-r--r-- 1 root wheel - 99 Feb 15 14:45 /etc/hosts.lpd > [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/nss* > -rw-r--r-- 1 root wheel - 18 Feb 15 17:03 /etc/nsswitch.conf > [EMAIL PROTECTED]:/home/keramida$ grep hosts /etc/nsswitch.conf > hosts: files dns > [EMAIL PROTECTED]:/home/keramida$ root# ls -l /etc/hosts* -rw-r--r-- 1 root wheel 1694 May 13 2005 /etc/hosts -rw-r--r-- 1 root wheel 3027 Mar 27 2005 /etc/hosts.allow -rw-r--r-- 1 root wheel 421 Mar 27 2005 /etc/hosts.equiv -rw-r--r-- 1 root wheel99 Apr 3 2003 /etc/hosts.lpd root# ls -tl /etc/nss* ls: /etc/nss*: No such file or directory root# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
On 2006-02-17 11:38, David Banning <[EMAIL PROTECTED]> wrote: > > That depends, of course, on what your nsswitch.conf or hosts.conf file > > has been set up for :) > > Nothing to speak of there; > > root# locate nsswitch.conf > /usr/compat/linux/etc/nsswitch.conf > /usr/ports/emulators/linux_base/work/linux_base-rh-7.3/etc/nsswitch.conf > /usr/ports/emulators/svr4_base/files/nsswitch.conf > root# > root# locate hosts.conf > root# Look under /etc for hosts.conf or nsswitch.conf: [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/hosts* -rw-r--r-- 1 root wheel - 655 Feb 15 15:00 /etc/hosts -rw-r--r-- 1 root wheel - 1484 Feb 15 15:00 /etc/hosts.allow -rw-r--r-- 1 root wheel - 111 Feb 15 14:45 /etc/hosts.equiv -rw-r--r-- 1 root wheel - 99 Feb 15 14:45 /etc/hosts.lpd [EMAIL PROTECTED]:/home/keramida$ ls -l /etc/nss* -rw-r--r-- 1 root wheel - 18 Feb 15 17:03 /etc/nsswitch.conf [EMAIL PROTECTED]:/home/keramida$ grep hosts /etc/nsswitch.conf hosts: files dns [EMAIL PROTECTED]:/home/keramida$ The locate database may not always be very up to date. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
>I think you want to look for /etc/hosts ..:) >Gable That was my first guess, but I couldn't see anything in there; root# grep -i banning /etc/hosts root# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
On 2/17/06, David Banning <[EMAIL PROTECTED]> wrote: > > > That depends, of course, on what your nsswitch.conf or hosts.conf file > > has been set up for :) > > Nothing to speak of there; > > root# locate nsswitch.conf > /usr/compat/linux/etc/nsswitch.conf > /usr/ports/emulators/linux_base/work/linux_base-rh-7.3/etc/nsswitch.conf > /usr/ports/emulators/svr4_base/files/nsswitch.conf > root# > root# locate hosts.conf > root# > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > I think you want to look for /etc/hosts ..:) Gable ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
> That depends, of course, on what your nsswitch.conf or hosts.conf file > has been set up for :) Nothing to speak of there; root# locate nsswitch.conf /usr/compat/linux/etc/nsswitch.conf /usr/ports/emulators/linux_base/work/linux_base-rh-7.3/etc/nsswitch.conf /usr/ports/emulators/svr4_base/files/nsswitch.conf root# root# locate hosts.conf root# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
> It works from the outside world: Well that is good news. OK, so why would my server be looking internally for the banning.ca IP address? Any ideas? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
On 2006-02-17 11:29, David Banning <[EMAIL PROTECTED]> wrote: > > It looks like nothing is bound to port 8025 on 127.0.0.1 (localhost). > > > > You can do a sockstat and verify. > > root# sockstat -l | grep 8025 > tofmipd python 2385 tcp4 209.161.205.12:8025 *:* > root# > > sockstat verifies that I have 8025 open on port 209.161.205.12 which > is the IP address for all 7 domains. I don't understand why 8025 > -should- be bound to 127.0.0.1 > > >From my persective, the fact that telnet banning.ca 8025 -looks- to > 127.0.0.1 is a problem. I would expect it to go to the DNS server, > find the IP address and connect. That depends, of course, on what your nsswitch.conf or hosts.conf file has been set up for :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
> It looks like nothing is bound to port 8025 on 127.0.0.1 (localhost). > > You can do a sockstat and verify. root# sockstat -l | grep 8025 tofmipd python 2385 tcp4 209.161.205.12:8025 *:* root# sockstat verifies that I have 8025 open on port 209.161.205.12 which is the IP address for all 7 domains. I don't understand why 8025 -should- be bound to 127.0.0.1 >From my persective, the fact that telnet banning.ca 8025 -looks- to 127.0.0.1 is a problem. I would expect it to go to the DNS server, find the IP address and connect. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail port 8025 conundrum
David Banning wrote: I have a strange problem where port 8025 is blocked on my server. Trying to connect with telnet, here is the response; david$ telnet banning.ca 8025 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Yet I host 6 other domains on the same server, and all the others seems to be fine; david$ telnet optexstaging.com 8025 Trying 209.161.205.12... Connected to optexstaging.com. Escape character is '^]'. 220 3s1.com ESMTP tmda-ofmipd quit It makes no difference whether I enable the firewall or not. Strangely I -can- connect to banning.ca via port 25 or 110; david$ telnet banning.ca 25 Trying 127.0.0.1... Connected to banning.ca. Escape character is '^]'. 220 3s1.com ESMTP Sendmail 8.12.8p1/8.12.8; Fri, 17 Feb 2006 11:06:04 -0500 (EST) To my knowledge, there is nothing that stops a connection to a specific The only change to my system is that I registered -all- 7 of the domain names with a new outside DNS server. It could be that there is some stale DNS going on, but DNS would be the same for all ports, would it not? Looking at the erroneous message, I see that banning.ca is being directed to 127.0.0.1 - why would that happen? It works from the outside world: [EMAIL PROTECTED] > telnet optexstaging.com 8025 Trying 209.161.205.12... Connected to optexstaging.com. Escape character is '^]'. 220 3s1.com ESMTP tmda-ofmipd quit 221 Bye Connection closed by foreign host. [EMAIL PROTECTED] > telnet banning.ca 8025 Trying 209.161.205.12... Connected to banning.ca. Escape character is '^]'. 220 3s1.com ESMTP tmda-ofmipd quit 221 Bye Connection closed by foreign host. -- Ken Stevenson Allen-Myland Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: mail port 8025 conundrum
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > David Banning > Sent: Friday, February 17, 2006 11:07 AM > To: [EMAIL PROTECTED] > Subject: mail port 8025 conundrum > > I have a strange problem where port 8025 is blocked on my server. > > Trying to connect with telnet, here is the response; > > david$ telnet banning.ca 8025 > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Connection refused > telnet: Unable to connect to remote host > > Yet I host 6 other domains on the same server, and all the > others seems > to be fine; > > david$ telnet optexstaging.com 8025 > Trying 209.161.205.12... > Connected to optexstaging.com. > Escape character is '^]'. > 220 3s1.com ESMTP tmda-ofmipd > quit > > It makes no difference whether I enable the firewall or not. > Strangely I -can- connect to banning.ca via port 25 or 110; > > david$ telnet banning.ca 25 > Trying 127.0.0.1... > Connected to banning.ca. > Escape character is '^]'. > 220 3s1.com ESMTP Sendmail 8.12.8p1/8.12.8; Fri, 17 Feb 2006 > 11:06:04 -0500 (EST) > > To my knowledge, there is nothing that stops a connection to > a specific > > The only change to my system is that I registered -all- 7 of > the domain > names with a new outside DNS server. It could be that there is some > stale DNS going on, but DNS would be the same for all ports, would > it not? > > Looking at the erroneous message, I see that banning.ca is > being directed > to 127.0.0.1 - why would that happen? > > Any direction would be helpful. It looks like nothing is bound to port 8025 on 127.0.0.1 (localhost). You can do a sockstat and verify. -Erin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
mail port 8025 conundrum
I have a strange problem where port 8025 is blocked on my server. Trying to connect with telnet, here is the response; david$ telnet banning.ca 8025 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Yet I host 6 other domains on the same server, and all the others seems to be fine; david$ telnet optexstaging.com 8025 Trying 209.161.205.12... Connected to optexstaging.com. Escape character is '^]'. 220 3s1.com ESMTP tmda-ofmipd quit It makes no difference whether I enable the firewall or not. Strangely I -can- connect to banning.ca via port 25 or 110; david$ telnet banning.ca 25 Trying 127.0.0.1... Connected to banning.ca. Escape character is '^]'. 220 3s1.com ESMTP Sendmail 8.12.8p1/8.12.8; Fri, 17 Feb 2006 11:06:04 -0500 (EST) To my knowledge, there is nothing that stops a connection to a specific The only change to my system is that I registered -all- 7 of the domain names with a new outside DNS server. It could be that there is some stale DNS going on, but DNS would be the same for all ports, would it not? Looking at the erroneous message, I see that banning.ca is being directed to 127.0.0.1 - why would that happen? Any direction would be helpful. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"