Menu

Failed to initialize the mailbox: xxxx@gmail.com. Reason: Cannot login using xxxx@gmail.com with pwd: xxxx

Vanesa M.
2015-05-05
2015-06-25
  • Vanesa M.

    Vanesa M. - 2015-05-05

    Hi,

    I am trying to configure de Ticket Creation from eMails extension, I have installed the extension package, an I have configured Standard Mail Inbox in the administrative tools, but I get the next error:

    Failed to initialize the mailbox: xxxx@gmail.com. Reason: Cannot login using xxxx@gmail.com with pwd: xxxx

    I don´t know what I have to do. I need your help.

    Thanks in advanced.

     
  • dlp

    dlp - 2015-05-06

    What is your mail configuration? I guess the problem is related with the port used and ssl enabled or not.

     
  • Marat Isyanov

    Marat Isyanov - 2015-06-10

    Hello, I have same problem.

    I am using pop3 with account on office 365. Can you please advice what is wrong? Is there any way to enable SSL for using port 995?

    If i use this port, it just keep connecting forever... on 110 port, it says that failed to initialize the mailbox: xxx@ccc.com . Reason: Cannot login using xxx@ccc.com with pwd:...

    But i am able to connect with same setting with my phone mail client.

     
  • dlp

    dlp - 2015-06-10

    You can edit the code of the extention in order to force SSL connection and port.
    I have made the change in my case to put on the interface the SSL option and the port.

     
    • Marat Isyanov

      Marat Isyanov - 2015-06-10

      Thanks. But what do i need to change? do you have any edited code? so i can change it for settings i need?

       
  • Marat Isyanov

    Marat Isyanov - 2015-06-10

    well, I've solved this problem other way. used my old exchange server account, and just configured forwarding from new account on office365 to exchange account.

     
  • dlp

    dlp - 2015-06-10

    I will provide it on my account on sourceforge, I just need time to clean it.

     
  • David Lee

    David Lee - 2015-06-22

    Any updates?

     
  • dlp

    dlp - 2015-06-22

    I put the module online, i make it .
    https://sourceforge.net/projects/itopmodules
    Don't forget to make a backup of your installation before trying this one.

    I will try to make it more clean if I had some time.

     
  • David Lee

    David Lee - 2015-06-22

    Hmm, still no luck. What could be wrong?

    POP3 - with net/socket.php in the same folder

    Failed to initialize the mailbox: support@getdsm.com. Reason: Cannot connect to outlook.office365.com on port 995

    The mailbox is empty

    IMAP

    Failed to initialize the mailbox: support@getdsm.com. Reason: Cannot connect to IMAP server: '{outlook.office365.com:993/imap/ssl/novalidate-cert}Inbox', with credentials: 'support@getdsm.com'/'XXXXX'

    The mailbox is empty

    Warning: imap_open(): Couldn't open stream {outlook.office365.com:993/imap/ssl/novalidate-cert}Inbox in /home/supportgetdsm/public_html/env-production/combodo-email-synchro/model.email-synchro.php on line 484
    Array ( [0] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [1] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [2] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [3] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [4] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [5] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [6] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [7] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [8] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [9] => Can't connect to outlook-nameast.office365.com,993: Connection timed out )

     
  • dlp

    dlp - 2015-06-23

    Options seems correct...
    Did you try to access outlook.office365.com from your server?
    Does your server have internet access? Maybe you have a restriction from a firewall?

     
  • David Lee

    David Lee - 2015-06-24

    Ya, looks like there something with the server. Not sure what the issue could be.
    The server has internet access and the ports should be open.

    Defiantly the server, because I was able to get it to work on WAMP with the code below.
    Any ideas?

    For testing, I even use the code below:

    // Connect to O365
    $imapPath = '{outlook.office365.com:993/imap/ssl}INBOX';
    $username = 'EMAIL@domain.com';
    $password = 'xxxxx';

    // try to connect
    $inbox = imap_open($imapPath,$username,$password,NULL,1) or die('Cannot connect to O365: ' . print_r(imap_errors()));

    // search and get unseen emails, function will return email ids
    $emails = imap_search($inbox,'UNSEEN');

    $output = '';

    foreach($emails as $mail) {
    $headerInfo = imap_headerinfo($inbox,$mail);
    $output .= $headerInfo->subject.'
    ';
    $output .= $headerInfo->toaddress.'
    ';
    $output .= $headerInfo->date.'
    ';
    $output .= $headerInfo->fromaddress.'
    ';
    $output .= $headerInfo->reply_toaddress.'
    ';
    $emailStructure = imap_fetchstructure($inbox,$mail);
    if(!isset($emailStructure->parts)) {
    $output .= imap_body($inbox, $mail, FT_PEEK);
    } else {
    //
    }
    echo $output;
    $output = '';
    }

    // colse the connection
    imap_expunge($inbox);
    imap_close($inbox);
    ?>

     

    Last edit: David Lee 2015-06-24
  • dlp

    dlp - 2015-06-24

    I think you can try to contact the Microsoft Support...

     
  • David Lee

    David Lee - 2015-06-24

    I think it's our host. Not O365 since we're able to get it working with just the PHP file alone.

    Thanks for your help thus far. I'll provide an updates as I get them. :)

     
  • Denis

    Denis - 2015-06-24

    Maybe you have SELinux or something equivalent enabled, blocking outgoing connections from the web server process...

     
  • David Lee

    David Lee - 2015-06-24

    Figured it out! Was on the phone with the hosting company and their firewall was blocking the port.

    Thank you everyone for the feedback and help.

    For future reference:

    A quick test for this on connections can be done via termal like this...

    login as: root
    Using keyboard-interactive authentication.
    Password:
    Last login: Wed Jun 24 15:01:40 2015 from 10.30.6.127
    root@host [~]# telnet outlook.office365.com 993
    Trying 132.245.113.194...
    Connected to outlook.office365.com.
    Escape character is '^]'.
    ^]
    telnet> quit
    Connection closed.
    root@host [~]#

     
  • dlp

    dlp - 2015-06-25

    Great! Finally solved :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.