Re: [SLE] Fetchmail and fetchmailconf
On Sunday 10 April 2005 8:06 am, Erik Jakobsen wrote:
Scott Leighton wrote:
Scott !.
Can you get fetchmailconf up running ?.
Erik Jakobsen
Yes, works fine here. The GUI comes right up.
Scott
Ok Scott.
Could you please tell me what you do.
Is what I have: locate fetchmailconf /usr/bin/fetchmailconf /usr/share/man/man1/fetchmailconf.1.gz
Do you run it in a terminal and write kdesu fetchmailconf or using xhost +localhost ?.
X has nothing to do with your problem. The error message you are getting does not mention a problem with X, it specifically tells you that fetchmailconf is dying because it cannot obtain your hostname via gethostbyaddr period.
erikja@lajka3:/usr/bin> fetchmailconf Traceback (most recent call last): File "/usr/bin/fetchmailconf", line 2028, in ? hostname = socket.gethostbyaddr(socket.gethostname())[0] socket.gaierror: (-2, 'Name or service not known')
Look at line 2028 of the fetchmailconf python script, you will find... # Get client host's FQDN hostname = socket.gethostbyaddr(socket.gethostname())[0] That's where it dies, you never see the gui because the program is dying on you. Now, to answer your question, I run it as a normal user in terminal, e.g., helphand@helphand:~> fetchmailconf helphand@helphand:~> And up pops the GUI. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.8-24.14-default x86_64
Scott Leighton wrote:
On Sunday 10 April 2005 8:06 am, Erik Jakobsen wrote:
Scott Leighton wrote:
Scott !.
Can you get fetchmailconf up running ?.
Erik Jakobsen
Yes, works fine here. The GUI comes right up.
Scott
Ok Scott.
Could you please tell me what you do.
Is what I have: locate fetchmailconf /usr/bin/fetchmailconf /usr/share/man/man1/fetchmailconf.1.gz
Do you run it in a terminal and write kdesu fetchmailconf or using xhost +localhost ?.
X has nothing to do with your problem. The error message you are getting does not mention a problem with X, it specifically tells you that fetchmailconf is dying because it cannot obtain your hostname via gethostbyaddr period.
Ok fine, then this is nothing to think of.
erikja@lajka3:/usr/bin> fetchmailconf Traceback (most recent call last): File "/usr/bin/fetchmailconf", line 2028, in ? hostname = socket.gethostbyaddr(socket.gethostname())[0] socket.gaierror: (-2, 'Name or service not known')
Look at line 2028 of the fetchmailconf python script, you will find...
# Get client host's FQDN hostname = socket.gethostbyaddr(socket.gethostname())[0]
That's where it dies, you never see the gui because the program is dying on you.
I have been there, and how can I avoid it to die ?.
Now, to answer your question, I run it as a normal user in terminal, e.g.,
helphand@helphand:~> fetchmailconf helphand@helphand:~>
And up pops the GUI.
Sounds very easy. But what's the difference between your line 2028 and mine ?
Scott
Erik
On Sunday 10 April 2005 8:44 am, Erik Jakobsen wrote:
Scott Leighton wrote:
On Sunday 10 April 2005 8:06 am, Erik Jakobsen wrote:
Look at line 2028 of the fetchmailconf python script, you will find...
# Get client host's FQDN hostname = socket.gethostbyaddr(socket.gethostname())[0]
That's where it dies, you never see the gui because the program is dying on you.
I have been there, and how can I avoid it to die ?.
Fix your setup so that gethostbyaddr returns the correct information.
Now, to answer your question, I run it as a normal user in terminal, e.g.,
helphand@helphand:~> fetchmailconf helphand@helphand:~>
And up pops the GUI.
Sounds very easy. But what's the difference between your line 2028 and mine ?
Nothing, my line 2028 is identical to your line 2028. The problem isn't with fetchmailconf, it's with something about your setup that is causing bad info to be returned to gethostbyaddr. What does your /etc/hosts file have in in? Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.8-24.14-default x86_64
Scott Leighton wrote:
On Sunday 10 April 2005 8:44 am, Erik Jakobsen wrote:
Scott Leighton wrote:
On Sunday 10 April 2005 8:06 am, Erik Jakobsen wrote:
Look at line 2028 of the fetchmailconf python script, you will find...
# Get client host's FQDN hostname = socket.gethostbyaddr(socket.gethostname())[0]
That's where it dies, you never see the gui because the program is dying on you.
I have been there, and how can I avoid it to die ?.
Fix your setup so that gethostbyaddr returns the correct information.
Ok fine Scott.
Now, to answer your question, I run it as a normal user in terminal, e.g.,
helphand@helphand:~> fetchmailconf helphand@helphand:~>
And up pops the GUI.
Sounds very easy. But what's the difference between your line 2028 and mine ?
Nothing, my line 2028 is identical to your line 2028. The problem isn't with fetchmailconf, it's with something about your setup that is causing bad info to be returned to gethostbyaddr.
What does your /etc/hosts file have in in?
Scott
Here you se my /etc/hosts file: 127.0.0.1 localhost.localdomain localhost 192.168.1.1 mail.urbakken.dk mail www ftp 192.168.1.254 mail1.urbakken.dk mail1.urbakken.dk 83.91.50.39 wan.urbakken.dk wan.urbakken.dk 192.168.1.239 mail2.urbakken.dk mail2.urbakken.dk 192.168.1.101 mail3.urbakken.dk mail3.urbakken.dk 192.168.1.6 mail4.urbakken.dk mail4.urbakken.dk 192.168.1.7 win98.urbakken.dk win98 192.168.1.100 mail5.urbakken.dk mail5.urbakken.dk 192.168.1.9 linux.urbakken.dk linux<-----This is the computer I try fetchmailconf on. 192.168.1.4 lajka.urbakken.dk lajka 192.168.1.14 w2000.urbakken.dk w2000 Erik
On Sunday 10 April 2005 9:50 am, Erik Jakobsen wrote:
Scott Leighton wrote:
On Sunday 10 April 2005 8:44 am, Erik Jakobsen wrote:
Scott Leighton wrote:
On Sunday 10 April 2005 8:06 am, Erik Jakobsen wrote:
Look at line 2028 of the fetchmailconf python script, you will find...
# Get client host's FQDN hostname = socket.gethostbyaddr(socket.gethostname())[0]
That's where it dies, you never see the gui because the program is dying on you.
I have been there, and how can I avoid it to die ?.
Fix your setup so that gethostbyaddr returns the correct information.
Ok fine Scott.
Now, to answer your question, I run it as a normal user in terminal, e.g.,
helphand@helphand:~> fetchmailconf helphand@helphand:~>
And up pops the GUI.
Sounds very easy. But what's the difference between your line 2028 and mine ?
Nothing, my line 2028 is identical to your line 2028. The problem isn't with fetchmailconf, it's with something about your setup that is causing bad info to be returned to gethostbyaddr.
What does your /etc/hosts file have in in?
Scott
Here you se my /etc/hosts file:
127.0.0.1 localhost.localdomain localhost 192.168.1.1 mail.urbakken.dk mail www ftp 192.168.1.254 mail1.urbakken.dk mail1.urbakken.dk 83.91.50.39 wan.urbakken.dk wan.urbakken.dk 192.168.1.239 mail2.urbakken.dk mail2.urbakken.dk 192.168.1.101 mail3.urbakken.dk mail3.urbakken.dk 192.168.1.6 mail4.urbakken.dk mail4.urbakken.dk 192.168.1.7 win98.urbakken.dk win98 192.168.1.100 mail5.urbakken.dk mail5.urbakken.dk 192.168.1.9 linux.urbakken.dk linux<-----This is the computer I try fetchmailconf on. 192.168.1.4 lajka.urbakken.dk lajka 192.168.1.14 w2000.urbakken.dk w2000
Well, I'm not an expert on this, so all I can note is that my /etc/hosts also includes some ipv6 data, e.g., special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts Don't know whether or note that has anything to do with your problem. Mine also does not have the localhost.localdomain entry, e.g., 127.0.0.1 localhost sqlhost mailhost sqlhost2 Again, not sure whether that's relevant or not. Perhaps someone knowledgeable on the subject will speak up. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.8-24.14-default x86_64
On Sun, 2005-04-10 at 10:22 -0700, Scott Leighton wrote:
On Sunday 10 April 2005 9:50 am, Erik Jakobsen wrote:
What does your /etc/hosts file have in in?
Scott
Here you see my /etc/hosts file:
127.0.0.1 localhost.localdomain localhost 192.168.1.1 mail.urbakken.dk mail www ftp 192.168.1.254 mail1.urbakken.dk mail1.urbakken.dk 83.91.50.39 wan.urbakken.dk wan.urbakken.dk 192.168.1.239 mail2.urbakken.dk mail2.urbakken.dk 192.168.1.101 mail3.urbakken.dk mail3.urbakken.dk 192.168.1.6 mail4.urbakken.dk mail4.urbakken.dk 192.168.1.7 win98.urbakken.dk win98 192.168.1.100 mail5.urbakken.dk mail5.urbakken.dk 192.168.1.9 linux.urbakken.dk linux<-----This is the computer I try fetchmailconf on. 192.168.1.4 lajka.urbakken.dk lajka 192.168.1.14 w2000.urbakken.dk w2000
Why do you have localhost.localdomain and then have other hosts as host.urbaken.dk. You are trying to use two different domain names on the same computer. Change the localhost entry to just: 127.0.0.1 localhost The file is defined as follows (example): IP address FQDN alias ---------- ---- ----- 192.168.1.101 mail3.urbaken.dk mail3 No need to put the FULL domain name a second time as the second (or more) entries per line are aliases. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
participants (3)
-
Erik Jakobsen
-
Ken Schneider
-
Scott Leighton