+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Accounts plugin on a NAS

  1. #1
    Simpom is offline Roundcube Newcomer
    Join Date
    Jul 2010
    Location
    France
    Posts
    7
    Downloads
    1
    Uploads
    0

    Question Accounts plugin on a NAS

    Hi everyone!

    I recently discovered RoundCube and I think it's awesome!
    I'm now trying to get access to all my e-mail accounts within one session. I installed the 'sessions' and 'accounts' plugins, everything seems to be ok, but when I try and configure new accounts in 'Account Administration', whatever I can type in the fields, I always get the same error: "Failed to establish connection to remote host.". I tried with several accounts with the same result.

    I believe the problem is that RoundCube can't connect to the IMAP server... but on the other hand I can access to my e-mails for the main account (I mean the one I opened a session with)...

    Any idea of what to do?

    If it can help, I use RoundCube on a Synology NAS (but in a 'stand-alone' installation, I mean not with the pre-installed package; so I can access to each and every part of the setup easily).

    Thank you for your help!

  2. #2
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    This plugins uses PHP imap_open to test if a connection can be established. Roundcube uses socket connections. So either PHP imap module is not available or the imap_open_flag ...
    PHP Code:
    /* imap_open flag (http://php.net/manual/en/function.imap-open.php) */
    $rcmail_config['imap_open_flag'] = 'novalidate-cert'
    ... is misconfigered in the plugin configuration.

    As a workaround you could disable the connection test in accounts.php:

    PHP Code:
      function test_connection($username,$password,$imap_host,$imap_port,$prot){ 
    add here:
    PHP Code:
        return true
    PHP Code:
        if(function_exists("imap_open")){
          
    $rcmail rcmail::get_instance();
          
    $flag $rcmail->config->get('imap_open_flag');
          if(
    $flag)
            
    $this->imap_open_flag $flag;
          
    $password $rcmail->decrypt($password);
          if(
    $prot){
            
    $imap_open "{" $imap_host ":" $imap_port "/imap/" $prot "/" $this->imap_open_flag "}INBOX";
          }
          else{
            
    $imap_open "{" $imap_host ":" $imap_port "/" $this->imap_open_flag "}INBOX";
          }
        
          if(
    $res = @imap_open($imap_open$username$password)){
            
    $success true;
            
    imap_close($res);
          }
          else{
            
    $success false;
          }
        }
        else{
          
    $success true;
        }
          
        return 
    $success;
      
      } 
    (PHP: imap_open - Manual).
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  3. #3
    Simpom is offline Roundcube Newcomer
    Join Date
    Jul 2010
    Location
    France
    Posts
    7
    Downloads
    1
    Uploads
    0

    Default

    Thanks for your reply. But the changes you suggest only allow me to create the account, but not to use it...

    I mean that when I create the account, I don't have any error anymore, but when I am in the main page and I click to the account just created, I get disconnected!

    Any idea why?
    Thx

  4. #4
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    This happens to any accounts? Is there a difference between local and external accounts (f.e. gmail)?
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  5. #5
    Simpom is offline Roundcube Newcomer
    Join Date
    Jul 2010
    Location
    France
    Posts
    7
    Downloads
    1
    Uploads
    0

    Default

    Ok seems to work for gmail! But it definitely does not work with my other accounts (from my internet provider). I tried to connect to a mail box "@sfr.fr" and it does not work...

    Is it normal? Any solution to make it work?

    Thx

  6. #6
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    What are your Roundcube imap settings to connect to sfr.fr?
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  7. #7
    Simpom is offline Roundcube Newcomer
    Join Date
    Jul 2010
    Location
    France
    Posts
    7
    Downloads
    1
    Uploads
    0

    Default

    I tried "imap.sfr.fr" and "ssl://imap.sfr.fr:993" (but I have no idea if it makes sens or not )
    Is that correct?

  8. #8
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    I don't know the requirements of your ISP. You stated you can connect by Roundcube, so I asked what are the settings in main.inc.php.
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  9. #9
    Simpom is offline Roundcube Newcomer
    Join Date
    Jul 2010
    Location
    France
    Posts
    7
    Downloads
    1
    Uploads
    0

    Default

    Well... sth really strange happens!

    Let's say I have two email accounts @sfr.fr : email1@sfr.fr and email2@sfr.fr. If I connect to each account, I can send/receive emails from it.
    But if I try to configure an account for accessing to the emails of the other, I get disconnected each time I try and change account...
    I check twice: my configuration of the host in the plugins/accounts/config/config.inc.php is the same than in the config/main.inc.php

    Do you believe there could be a restriction which could prevent me from connecting to multiple accounts at the same time?

  10. #10
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    Is this your problem? Issue 77 - myroundcube - Accounts plugin: &_mbox=INBOX&_switch=-1 shows an empty page - Project Hosting on Google Code

    Do you run Roundcube v0.4beta or recent SVN version?

    What is in Roundcube error log?
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts