<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>imp/fetchmail will not resolve localhost</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:25 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8869</link> 
  <atom:link rel="self" type="application/rss+xml" title="imp/fetchmail will not resolve localhost" href="https://bugs.horde.org/ticket/8869/rss" /> 
  <description>imp/fetchmail will not resolve localhost</description> 
 
   
   
  <item> 
   <title>i&#039;m migrating from one server to another ... horde works fla</title> 
   <description>i&#039;m migrating from one server to another ... horde works flawlessly on old_box, but i&#039;ve run into a strange situation on new_box and wondered if anyone else had experienced a problem with hostname resolution.

summary: the only valid config in horde :: options :: global options :: authentication credentials is server=127.0.0.1 ... similarly the only server= value that works for all fetchmail configuration is also 127.0.0.1 ... localhost does not work at all.

i&#039;m running dovecot and postfix on ubuntu 9-10 and best i can tell, everything is working just fine ... i am able to telnet to localhost and establish an imap connection:
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is &#039;^]&#039;.
* OK Dovecot ready.
a login myemail@mydomain.com mypassword
a OK Logged in.

i have dovecot configured to listen only on localhost:143, but i changed that to *:143 and restarted dovecot just to make sure that wasn&#039;t the issue. the test.php returns no critical errors, and everything related to imap is installed and working properly. the phpinfo() also shows imap as installed/configured.

here&#039;s my servers.php settings:
$servers[&#039;imap&#039;] = array(
    &#039;name&#039; =&gt; &#039;IMAP Server&#039;,
    &#039;server&#039; =&gt; &#039;localhost&#039;,
//    &#039;server&#039; =&gt; &#039;fqdn.myhost.net&#039;,
//    &#039;server&#039; =&gt; &#039;127.0.0.1&#039;,
    &#039;hordeauth&#039; =&gt; false,
    &#039;protocol&#039; =&gt; &#039;imap/notls&#039;,
    &#039;port&#039; =&gt; 143,
);

note: i have tried to get this to work by changed out servers.php and using the loopback and/or the fqdn, but it doesn&#039;t really seem to make a difference.

unless i specify 127.0.0.1 under authentication credentials screen, i cannot get into imp

once i am inside imp, the only way i can get fetchmail to work is to specify 127.0.0.1 under server. if i put in localhost, i get the following message when i try to fetch mail:
&gt; Fetchmail: Cannot connect to the remote mail server: No such host as localhost

let me know what additional info i can provide and/or what tests/config changes you would like me to make to assist in getting this working.

thanks,
-e</description> 
   <pubDate>Thu, 11 Feb 2010 21:42:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8869#t57967</link> 
  </item> 
   
  <item> 
   <title>This would inidicate a PHP and/or system issue, not an issue</title> 
   <description>This would inidicate a PHP and/or system issue, not an issue with Horde/IMP code (since we are reliant on PHP/system calls to do the name resolution for us).</description> 
   <pubDate>Tue, 16 Feb 2010 05:56:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8869#t57997</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
