I have just installed Mailhandler and everytime I try to retrieve Mails it says:
Mailhandler POP3 connection failed: mail@domain.net

in the Headline it says:
warning: imap_open(): Couldn't open stream {mail.mailserver.com:110/pop3} in /home/.sites/site4/web/drup/modules/mailhandler.module on line 17.

Why is there "imap open"? I have said that it is an Pop-Mailbox.

I have tried the notls-bugfix I have found here but the result is this:

warning: imap_open(): Couldn't open stream {mail.mailserver.com:110/pop3/notls} in /home/.sites/site4/web/drup/modules/mailhandler.module on line 17.

Thanks in advance!

best regards,


moshe weitzman’s picture

imap_open() is still called even for pop3 mailbaoxes. see mailhandler.module for the code.

the module cannot contact your mail server. try to make a connection to the specified port from the server and see if you can connect. i suspect you will be unable.

Mudhenn’s picture

Assigned: Mudhenn » Unassigned

I had tried it, and of it worked. But I have to say that I only can try it from my home-pc, because I have only ftp-connection to the web-server.

Mudhenn’s picture

I'm so stupid, sorry. Of cours I have tested the connection between the webserver and the pop-server. I am testing another blog with the same Mail-adress, and that one can recieve the mail.
Is ther eany hint how I can fint the error?

juh’s picture

I just solved the same problem by following the advice given here:

killes@www.drop.org’s picture

Problem solved.

Anonymous’s picture

Anonymous’s picture

i follow the way add "/notls" try to solve this problem, but I still got "warning: imap_open(): Couldn't open stream {mail.server.com/pop3/notls:110}INBOX in /home/username/public_html/drupal/modules/mailhandler.module on line 17.

any suggestion?



holydrupal’s picture

Version: » 5.x-1.x-dev
Status: Closed (fixed) » Postponed (maintainer needs more info)


The address is unavailable.
could someone explain the solution?

I create a handler with the below setting but when I retrieve it, it says fail!

email: website @ xxx.com

mailbox domian is : xxx.com

username is: website @ xxx.com

pop3 110 port
mime: html
cron active
imap extension is active.

result:> Mailhandler POP3/IMAP connection failed
but I could connect to the email address by outlook.

any idea?

kjshaw’s picture

Correct URL is http://drupal.org/node/1167

The post recommends adding the command /notls to the "Extra Commands" field on your mailbox.

It worked great for me.

Now if I can just get past the formatting problems! :^)

(Posts look like sh*t)

cor3huis’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)