This login is not allowed for connection.

Help
jolan D
2009-08-07
2013-05-01
  • jolan D
    jolan D
    2009-08-07

    Hi,

    I got the following in my config file but whatever i try it just keeps saying:
    "This login is not allowed for connection."

    $conf->domains[$i]->domain = 'mydomain.com';
    $conf->domains[$i]->in = '**.***.***.***:143/notls';
    $conf->domains[$i]->smtp = '';
    $conf->domains[$i]->smtp_port = 25;
    $conf->domains[$i]->login_with_domain = 0;
    $conf->domains[$i]->login_with_domain_character = '@';
    $conf->domains[$i]->login_prefix = '';
    $conf->domains[$i]->login_suffix = '';
    $conf->domains[$i]->login_aliases =  array('alias1' => 'real_login_1');
    $conf->domains[$i]->login_allowed = array('login_1' => 'xxx');
    $conf->domains[$i]->smtp_auth_method = 'LOGIN';
    $conf->domains[$i]->imap_namespace = "INBOX.";
    //$conf->domains[$i]->have_ucb_pop_server = false;
    $conf->domains[$i]->have_ucb_pop_server = 0;
    $conf->domains[$i]->quota_enable=false;
    $conf->domains[$i]->quota_type='STORAGE';

    what am i missing?

     
    • Tim Gerundt
      Tim Gerundt
      2009-08-07

      You need "login_allowed" only, if not all logins should allowed. In this case put all allowed logins in a array:
      $conf->domains[$i]->login_allowed = array('alias1', 'real_login_1');

      If all logins should be allowed, just use a empty array:
      $conf->domains[$i]->login_allowed = array();

      Greeting,
      Tim

       
      • jolan D
        jolan D
        2009-08-11

        anyone?

         
    • jolan D
      jolan D
      2009-08-09

      not much difference so far. I tested a bit more and got the following error messages accordingly:

      test 1:
      $conf->domains[$i]->in = '**.***.**.***:110/notls';
      Could not connect to server: [CLOSED] IMAP connection broken (server response)

      test 2:
      $conf->domains[$i]->in = '**.***.**.***:143/notls';
      Could not connect to server: Connection failed to **.***.**.***,143: Connection refused

      test 3:
      $conf->domains[$i]->in = 'localhost:143/notls';
      Could not connect to server: Can not authenticate to IMAP server: Authentication failed.

      test 4:
      $conf->domains[$i]->in = 'localhost:110/notls';
      Could not connect to server: [CLOSED] IMAP connection broken (server response)

      I have to following part open:

      Interesting ports on localhost.localdomain (127.0.0.1):
      Not shown: 988 closed ports
      PORT      STATE SERVICE
      25/tcp    open  smtp
      53/tcp    open  domain
      80/tcp    open  http
      110/tcp   open  pop3
      111/tcp   open  rpcbind
      143/tcp   open  imap
      443/tcp   open  https
      631/tcp   open  ipp
      900/tcp   open  unknown
      995/tcp   open  pop3s
      3306/tcp  open  mysql

       
      • Tim Gerundt
        Tim Gerundt
        2009-08-13

        If you want to connect to a POP3 server you must add the protocol to the in string:
        $conf->domains[$i]->in = 'mail.sourceforge.net:110/pop3';
        or
        $conf->domains[$i]->in = 'mail.sourceforge.net:110/pop3/notls';

        For IMAP you can add it too (but is not nessary):
        $conf->domains[$i]->in = 'mail.sourceforge.net:143/imap/notls');

         
        • jolan D
          jolan D
          2009-08-13

          Tried it but got the message:

          Could not connect to server: Can not authenticate to POP3 server: Authentication failed.

          Current conf is:
          $conf->domains[$i]->in = 'domain.com:110/pop3/notls';
          //and tried the following:
          //$conf->domains[$i]->in = 'domain.com:110/notls';
          //and
          $conf->domains[$i]->in = 'domain.com:143/imap/notls';
          //and
          //$conf->domains[$i]->in = 'domain.com:143/notls';

          $conf->domains[$i]->smtp = '';
          $conf->domains[$i]->smtp_port = 25;
          $conf->domains[$i]->login_with_domain = 0;
          $conf->domains[$i]->login_with_domain_character = '@';
          $conf->domains[$i]->login_prefix = '';
          $conf->domains[$i]->login_suffix = '';
          $conf->domains[$i]->login_allowed = array('login1' => 'xxx');
          $conf->domains[$i]->smtp_auth_method = 'LOGIN';
          $conf->domains[$i]->imap_namespace = "INBOX.";
          $conf->domains[$i]->have_ucb_pop_server = 0;
          $conf->domains[$i]->quota_enable=false;
          $conf->domains[$i]->quota_type='STORAGE';

           
    • jolan D
      jolan D
      2009-08-13

      after even more testing it seems that the Authentication fails
      is the problem...

      i tried the folowing:
      //$conf->domains[$i]->in = 'localhost:110/pop3/notls';                //Could not connect to server: Can not authenticate to POP3 server: Authentication failed.
      //$conf->domains[$i]->in = 'localhost:143/imap/notls';                //Could not connect to server: Can not authenticate to IMAP server: Authentication failed.
      //$conf->domains[$i]->in = 'localhost:143/notls';                            //Could not connect to server: Can not authenticate to IMAP server: Authentication failed.

      any other resulted in: Connection refused or connection broken (server response)
      So the ones you suggest do come the closest.

      However this Authentication fails i still don't know why...
      i login with user: login1 and password: xxx

      but i guess thats not the issue.
      I have also a file in /etc/dove_users
      those also contain passwords. Might it be there that causing these Authentication failed messages?

       
  • itproxy
    itproxy
    2009-11-09

    I'm a complete newbie, so I don't know if it's relevant to your problem, but there appears to be an error in your config file; if you want to use

    $conf->domains->login_with_domain_character = '@';

    then you should set

    $conf->domains->login_with_domain = 1;