LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can ping the server but can't use the python (http://www.linuxquestions.org/questions/linux-networking-3/can-ping-the-server-but-cant-use-the-python-759456/)

ravi.xolve 10-03-2009 03:07 PM

Can ping the server but can't use the python
 
Our college has the mail which uses imap. I can ping the server. But when I try to make an archive of it using the archivemail utility, I get the error as:

Code:

Traceback (most recent call last):                                               
  File "/usr/bin/archivemail", line 1610, in <module>                             
    main()                                                                       
  File "/usr/bin/archivemail", line 707, in main                                 
    archive(mailbox_path)
  File "/usr/bin/archivemail", line 1152, in archive
    _archive_imap(mailbox_name, final_archive_name)
  File "/usr/bin/archivemail", line 1348, in _archive_imap
    imap_srv = imaplib.IMAP4_SSL(imap_server)
  File "/usr/lib/python2.6/imaplib.py", line 1137, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/lib/python2.6/imaplib.py", line 163, in __init__
    self.open(host, port)
  File "/usr/lib/python2.6/imaplib.py", line 1149, in open
    self.sock.connect((host, port))
  File "<string>", line 1, in connect
socket.error: [Errno 113] No route to host

Why this is so. Please help.

watcher69b 10-03-2009 04:30 PM

do you get a result if you
dig servername

ravi.xolve 10-03-2009 11:47 PM

Well I am using the IP address directly. I already said that I can ping the server.


All times are GMT -5. The time now is 05:05 PM.