Roundcube Community Forum

Release Support => Pending Issues => Topic started by: sam121212 on January 15, 2009, 03:07:20 AM

Title: IMAP Error: Could not connect to XXX.XXX.XXX.XXX at port 143: Connection timed out
Post by: sam121212 on January 15, 2009, 03:07:20 AM
i have a mail server(A). and one remote server (B). i installed roundcube on server (B) to Access Mails FROM server (A).

everything is perfect i double checked everything like config etc.

it ishows following error


on my webserver  (http://turiainc.com/www/bwwmail/)i am getting following error

Warning: fsockopen() [function.fsockopen]: unable to connect to 203.197.32.138:143 (Connection timed out) in /home/turiaic/public_html/www/bwwmail/program/lib/imap.inc on line 545
IMAP Error: Could not connect to XXX.XXX.XXX.XXX at port 143: Connection timed out

while on  my local server i am getting following error

 IMAP Error: Authentication for [email protected] failed (LOGIN): "a001 NO Login failed: authentication failure"

Warning: Cannot modify header information - headers already sent in C:\wamp\www\final_webmail\program\include\rcmail.php on line 756





same script is working fine for other servers. i ve tried 3 more servers. working 100% fine



info PHP5


Main Config  attached

 
ANY HELP
Title: IMAP Error: Could not connect to XXX.XXX.XXX.XXX at port 143: Connection timed out
Post by: rosali on January 15, 2009, 05:06:01 AM
#1-Are you able to telnet into your IMAP host? Telnet 203.197.32.138 143
#2-Try to use the host FQDN instead of the IP

May be port 143 is blocked on 203.197.32.138?
Title: IMAP Error: Could not connect to XXX.XXX.XXX.XXX at port 143: Connection timed out
Post by: sam121212 on January 15, 2009, 08:54:03 AM
telnet is working fine
Title: Main Issue
Post by: sam121212 on January 15, 2009, 09:25:59 AM
Quote from: rosali;16383#1-Are you able to telnet into your IMAP host? Telnet 203.197.32.138 143
#2-Try to use the host FQDN instead of the IP

May be port 143 is blocked on 203.197.32.138?

we closed fireball of  both server a and server b nottong happen. on my system telnet is working fine

issue
1-Remote server have 1 mother domain and 5 child domain like [email protected] [email protected] [email protected]



2-Thing is IMAP server validate predator instead of [email protected]

on Installer http://turiainc.com/www/bwwmail/_installer

if i check IMAP configuration
with following data
username predator
password 123456
its working perfect


but at BWWI Mail :: Welcome to BWWI Mail (http://turiainc.com/www/bwwmail) its not working

if i modify programe/include/rcmail.php

line no
427
 if (!empty($config['username_domain']) && !strpos($username, '@')) {
      if (is_array($config['username_domain']) && isset($config['username_domain'][$host]))
        $username .= '@'.$config['username_domain'][$host];
      else if (is_string($config['username_domain']))
     ?????   $username .= '@'.$config['username_domain'];
 
    }

    // try to resolve email address from virtuser table    
    if (!empty($config['virtuser_file']) && strpos($username, '@'))
      $username = rcube_user::email2user($username);

    // lowercase username if it's an e-mail address (#1484473)
    if (strpos($username, '@'))
      $username = strtolower($username);

    // user already registered -> overwrite username
    if ($user = rcube_user::query($username, $host))
      $username = $user->data['username'];

Then i am getting error (Page Not found)

i hope you will sort out my problem
regards
sam