MultiPOP and Gmail

MDaemon has a feature called MultiPOP which, when enabled, will cause MDaemon to download all messages from one or more POP3 accounts and deliver them directly to a MDaemon user’s mailbox.

The dialog has simple hostname, username, password fields, plus options to leave mail on server or not. What isn’t obvious is how to support hosts like Gmail, which require SSL. As it turns out, MDaemon actually does support Gmail, and other SSL enabled POP3 hosts.

There are a number of ways to access the MultiPOP configuration for an account, through MDaemon’s account editor, through WorldClient or WebAdmin (both web options only being available if the user is allowed to use MultiPOP).

To set up MultiPOP to pull mail from a POP3 account which requires SSL, open the MultiPOP dialog, enter the hostname or POP3 server name followed by :995

:995 tells MDaemon to use port 995, and MDaemon automatically switches to SSL mode since SSL is required for port 995.

For Gmail, enter the hostname “pop.gmail.com:995”, the username which must include the @domain portion. For example, for [email protected], you need to enter the full [email protected] address, not just “dave.warren”

For Gmail you should set MDaemon to delete mail from the server as Gmail doesn’t account honour this, instead Gmail allows you to control what happens to mail after it’s downloaded (Leave it in the Inbox, Archive it, Delete it)

Note that the instructions are the same for googlemail.com, and for other mailboxes hosted by Google, just use the appropriate email address in the username field.

One other thing to be aware of with Gmail in particular, Gmail doesn’t automatically enable POP3 access, you need to enable it by logging in to Gmail, going to Settings, then to the POP section and setting the appropriate option. If you choose to download all mail, Gmail only offers a few hundred messages at once, so if you are intending to download a massive Gmail mailbox into MDaemon, MDaemon will take some time as messages are downloaded in blocks of about 500 messages at a time.

UPDATE (2008/10/02): One other thing I forgot to mention, MDaemon must have SSL enabled. To enable SSL in MDaemon 10, go to the Security menu, choose Security, then go to “SSL & TLS” and enable the “Enable SSL…” option.

UPDATE (2011/11/10): This functionality was added to MDaemon in 9.6.3, described in the release notes as “[4037] DomainPOP and MultiPOP use TLS/SSL when connecting to port 995”, earlier versions of MDaemon can use stunnel as a workaround or upgrade to a current version.

CC BY-NC-ND 4.0 MultiPOP and Gmail by Dave Warren (everything-mdaemon.com) is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

49 Replies to “MultiPOP and Gmail”

  1. I’ve tried what you posted. It did not work, are you sure it works??

  2. The “mail.gmail.com:995” trick definitely works, I use it here. What version of MDaemon are you running?

    One other thing, the master “Enable SSL” switch must be enabled. The location varies depending on your version, but find the “SSL” option in MDaemon and make sure that the “Enable SSL” option is enabled.

  3. Dave, I’ve tried too as you said in the article. It doesn’t work for me. Are you still using it or it was in the past? Maybe gmail changed something. Wich version are you using? Mine is v9.5.6

  4. Hello!

    Found this article. Switched on SSL/TLS feature. Tried on my account at gmail.com
    IT WORKS GREAT!!! However it is not documented feature – fault of MDaemon creators. IT SHOULD BE WELL DOCUMENTED!

    Dave,
    Many thanks for yr explanations!

  5. it is creating a connection but the protocol is not initializing how can i resolve that …

  6. Hi !!,
    This is rashel. i have some problem. i cant Recived any mail from my domain that domain is under gmail but i can send email by MDaemon 6.x

    May be its SSL problem. so how can i solved that problem ?

    information like…

    hostname = pop.gmail.com
    logon = [email protected]
    pass = **********

  7. MDaemon 6.x doesn’t support SSL natively, you’ll have to use a third party solution.

    A local install of stunnel will do the trick, then you’d configure MDaemon to talk to stunnel and stunnel to talk to Gmail on your behalf.

  8. my problem
    Wed 2009-02-04 14:00:25: MultiPOP collecting mail from (pop.gmail.com:995) for (samir)
    Wed 2009-02-04 14:00:25: MultiPOP collected mail will be removed from remote host!
    Wed 2009-02-04 14:00:25: Attempting MultiPOP connection to [pop.gmail.com : 995]
    Wed 2009-02-04 14:00:25: A-record resolution of [pop.gmail.com] in progress (DNS Server: 202.54.29.5)…
    Wed 2009-02-04 14:00:25: D=gmail-pop.l.google.com TTL=(0) A=[72.14.253.109]
    Wed 2009-02-04 14:00:25: Attempting MultiPOP connection to [72.14.253.109 : 995]
    Wed 2009-02-04 14:00:25: Waiting for socket connection…
    Wed 2009-02-04 14:00:25: Socket connection established (192.168.0.72 : 1868 -> 72.14.253.109 : 995)
    Wed 2009-02-04 14:00:25: Waiting for protocol initiation…
    Wed 2009-02-04 14:01:24: * Error: 60 second wait for protocol timeout exceeded.
    Wed 2009-02-04 14:01:24: POP session complete (Bytes in/out: 0/0)

  9. I have the same problem and can’t seem to find the solution… Someone bright enough?

    Mon 2009-02-16 14:12:31: ———-
    Mon 2009-02-16 14:17:33: Session 1641; child 1
    Mon 2009-02-16 14:16:31: Attempting DomainPOP connection to [pop.gmail.com : 995]
    Mon 2009-02-16 14:16:31: A-record resolution of [pop.gmail.com] in progress (DNS Server: 172.16.30.3)…
    Mon 2009-02-16 14:16:32: D=gmail-pop.l.google.com TTL=(2) A=[74.125.47.109]
    Mon 2009-02-16 14:16:32: Attempting DomainPOP connection to [74.125.47.109 : 995]
    Mon 2009-02-16 14:16:32: Waiting for connection…
    Mon 2009-02-16 14:16:33: Connection established (200.6.60.20 : 35785 -> 74.125.47.109 : 995)
    Mon 2009-02-16 14:16:33: Waiting for protocol initiation…
    Mon 2009-02-16 14:17:33: * Error: 60 second wait for protocol timeout exceeded
    Mon 2009-02-16 14:17:33: POP session complete (Bytes in/out: 0/0)
    Mon 2009-02-16 14:17:33: ———-

  10. Hi
    Above said settings work on fine. But I have a problem while sending mails specially to hotmail as they do not accept from dynamic IP to reroute those mails to gmail i am not to able to do that. Does somebody has solution for it.

    Thanks

  11. Hi,

    Could someone tell me where to find instructions to configure Daemon 6 to download Gmail messages with Stunnel.

    Thank you in advance

  12. Hi Dave Warren,

    I have some problem with MDaemon 7.0 Pro version.

    I have 25 plus domain on my hosting server and iam
    getting all of emails through MDaemon but now a days i am facing very strange problem.

    My ISP ip block in my hosting server firewall after getting some emails when i reset my modem (get new ip) its working but after 5 to 10 minute my ip block in hosting server again. my administrator said you have put wrong user and password in mail server. i am surprsing that some time its working then giving login failure. Is it possible please give me a suggestion.

    Thank you in advance
    Faisal

  13. Hi,

    Would someone enlighten me how i can use multipop to download email from hotmail account? i put pop3.live.com:995 as host name but still encounter Winsock error 10060 error when attempted to open the mailbox by multipop.

    Thanks in advance,
    vic

  14. Same problem of sameer and eric.
    Enable SSL is checked, but i don’t have luck with my gmail account.
    60 seconds wait for protocolo timeout error, i used mdaemon 9.5.6

  15. Dear sir/ Madam

    I have problem with the display Email address on the compose page and text box “To” can display only 15 email. How can we change this, if we want to display more email.

    thanks,

  16. hi
    i have some problem. i cant Recived any mail from gmail and yahoo on my mail server.i use mdaemon mail server 9.

    what is my problem?
    [email protected]

  17. Hi,

    We have purchased domain from Google apps and we have 15 email users under my domain. Now we would like to use MDaemon Email server in my office instead gmail. So please can you help me how to configure that. I got confusion what host name, logon name and password I have to give in DomainPOP.

    I will be appreciating your kind help.

    Thanks,

    Regards
    Irsath Ahamed.

  18. hi. i am using mdaemon 8.0.3. inspite of having enabled ssl and using :995 i am getting the following error

    Sat 2009-12-19 13:52:28: Session 571; child 2
    Sat 2009-12-19 13:51:18: MultiPOP collecting mail from (pop.gmail.com:995) for ([email protected])
    Sat 2009-12-19 13:51:18: MultiPOP collected mail will NOT be removed from remote host!
    Sat 2009-12-19 13:51:18: Attempting MultiPOP connection to [pop.gmail.com : 995]
    Sat 2009-12-19 13:51:18: A-record resolution of [pop.gmail.com] in progress (DNS Server: 192.168.0.1)…
    Sat 2009-12-19 13:51:28: * Error: 10 second wait for DNS response exceeded (attempt 1 of 5).
    Sat 2009-12-19 13:51:28: Attempting MultiPOP connection to [pop.gmail.com : 995]
    Sat 2009-12-19 13:51:28: A-record resolution of [pop.gmail.com] in progress (DNS Server: 203.94.227.70)…
    Sat 2009-12-19 13:51:28: D=gmail-pop.l.google.com TTL=(1) A=[74.125.127.109]
    Sat 2009-12-19 13:51:28: Attempting MultiPOP connection to [74.125.127.109 : 995]
    Sat 2009-12-19 13:51:28: Waiting for socket connection…
    Sat 2009-12-19 13:51:28: Socket connection established (127.0.0.1 : 3104 -> 74.125.127.109 : 995)
    Sat 2009-12-19 13:51:28: Waiting for protocol initiation…
    Sat 2009-12-19 13:52:28: * Error: 60 second wait for protocol timeout exceeded.
    Sat 2009-12-19 13:52:28: POP session complete

    Can u please help

  19. I’ve also tried this with 9.6.6 without luck. Here’s how I fixed it:

    Press Ctrl+L, or select Security->SSL/TLS/Certificates

    Enable the top three checkboxes

    Click “Create certificate”

    Click OK

    Setup->Primary Domain->Ports(tab)

    Change “POP server connects to this remote port when collecting mail” to 995

    Finally, set-up the domainpop account under Setup->domainpop

  20. I have done accordingly, now my MDaemon can connect and login to pop.gmail.com, but it fetch nothing.

    This is the error message:

    Fri 2010-06-25 14:35:18: MultiPOP collecting mail from (pop.gmail.com:995) for (Hasan Halim)
    Fri 2010-06-25 14:35:18: MultiPOP collected mail will NOT be removed from remote host!
    Fri 2010-06-25 14:35:18: Attempting MultiPOP connection to [pop.gmail.com:995]
    Fri 2010-06-25 14:35:18: Resolving A record for [pop.gmail.com] (DNS Server: 192.168.1.1)…
    Fri 2010-06-25 14:35:18: * D=pop.gmail.com TTL=(166) A=[74.125.155.109]
    Fri 2010-06-25 14:35:18: Attempting MultiPOP connection to [74.125.155.109:995]
    Fri 2010-06-25 14:35:18: Waiting for socket connection…
    Fri 2010-06-25 14:35:18: * Connection established (127.0.0.1:1097 -> 74.125.155.109:995)
    Fri 2010-06-25 14:35:18: Waiting for protocol to start…
    Fri 2010-06-25 14:35:20: SSL negotiation successful (TLS 1.0, 1024 bit key exchange, 128 bit RC4 encryption)
    Fri 2010-06-25 14:35:20: USER [email protected]
    Fri 2010-06-25 14:35:21: PASS ******
    Fri 2010-06-25 14:35:21: STAT
    Fri 2010-06-25 14:35:22: QUIT
    Fri 2010-06-25 14:35:22: <– +OK Farewell.
    Fri 2010-06-25 14:35:22: POP3 session complete (Bytes in/out: 122/149)
    Fri 2010-06-25 14:35:22: ———-

    When I tried to click Send/Receive from my Outlook2003, no message received.

    What should I do? What is the solution?

    Thanks.

  21. having same problem,Error: 60 second wait for protocol timeout exceeded.i have enabled ssl on port 995.using mdaemon 7.2

  22. charles, this functionality requires MDaemon 9.6.3 or higher. With MDaemon 7.2 you’ll need to use stunnel.

  23. Wed 2010-09-01 12:46:02: D=azizsons.com TTL=(240) A=[79.143.179.70]
    Wed 2010-09-01 12:46:02: Attempting MultiPOP connection to [79.143.179.70 : 995]
    Wed 2010-09-01 12:46:02: Waiting for connection…
    Wed 2010-09-01 12:46:02: Connection established (127.0.0.1 : 2963 -> 79.143.179.70 : 995)
    Wed 2010-09-01 12:46:02: Waiting for protocol initiation…
    Wed 2010-09-01 12:47:01: * Error: 60 second wait for protocol timeout exceeded
    Wed 2010-09-01 12:47:01: POP session complete (Bytes in/out: 0/0)
    Wed 2010-09-01 12:47:01: ———-

  24. Hi Dave,

    I’m using Mdaemon 10.1.1, I can collect mail from gmail, but the problem is : when my gmail account got a big mail, and the first session still receiving it, but at a schedule, Mdaemon create a new session to pop my mail again (so that I can receive double or more this big mail).
    If I increase the time between each collection then user may receive their mails slower, so how can I solve this problem.
    I know that a normal mail server will lock an account if there is other session is opened, but why gmail does not???

  25. soibien, one thing you could try is to set MDaemon to only allow one MultiPOP session at a time. This will avoid allowing MDaemon to make multiple connections at all, and should hopefully reduce the impact.

    As far as why Gmail doesn’t lock a POP3 account, I can’t tell you their logic, but the POP3 protocol *requires* a server to lock an account while it’s active, and explicitly forbids allowing another session through, so it may be worthwhile filing a bug with Google about this behaviour as well.

  26. Tks Dave!
    I have another question and hope you give a try to drop me a line.

    With the old Mdaemon version (7.0 as far as I can remember) the schedule for collect mail with multipop work greate, I can schedule Multipop to collect each 5 min or etc…, but with the version 10.1.1, I can’t schedule like this anymore, just Dynamically, so at the night time, MDaemon won’t pop mail from Gmail for the user, Multipop only act when there is request from user, how can I solve this???

  27. Thanks to all! I`ve got very helpful information about SSL\TLS feature in MDaemon.

  28. Hi Dave,
    I followed this post well and did as you said. Now it seems my MultiPOP is logging in but I’m not getting any mails. Here is the MultiPOP log I got:

    Thu 2011-02-17 11:39:58: MultiPOP collecting mail from (pop.gmail.com:995) for (Yemi Adetula / [email protected])
    Thu 2011-02-17 11:39:58: MultiPOP collected mail will NOT be removed from remote host!
    Thu 2011-02-17 11:39:58: Attempting MultiPOP connection to [pop.gmail.com:995]
    Thu 2011-02-17 11:39:58: Resolving A record for [pop.gmail.com] (DNS Server: 80.89.176.10)…
    Thu 2011-02-17 11:39:58: * D=gmail-pop.l.google.com TTL=(2) A=[74.125.43.109]
    Thu 2011-02-17 11:39:58: Attempting MultiPOP connection to [74.125.43.109:995]
    Thu 2011-02-17 11:39:58: Waiting for socket connection…
    Thu 2011-02-17 11:39:58: * Connection established (10.4.0.3:2347 -> 74.125.43.109:995)
    Thu 2011-02-17 11:39:58: Waiting for protocol to start…
    Thu 2011-02-17 11:39:59: SSL negotiation successful (TLS 1.0, 1024 bit key exchange, 128 bit RC4 encryption)
    Thu 2011-02-17 11:39:59: USER [email protected]
    Thu 2011-02-17 11:39:59: PASS ******
    Thu 2011-02-17 11:40:00: STAT
    Thu 2011-02-17 11:40:01: QUIT
    Thu 2011-02-17 11:40:01: <– +OK Farewell.
    Thu 2011-02-17 11:40:01: POP3 session complete (Bytes in/out: 118/164)
    Thu 2011-02-17 11:40:01: ———-

    There are mails in the gmail inbox but it's not downloading them… what do you think might be wrong please?

  29. tula, it looks like there’s a line in the log under “STAT” missing, there should be a response from the server like this:

    +OK 35 9413380

    Could you check the logs and see if there is a response to the STAT command or not?

  30. Ok Dave, I resolved the receiving mails issue. But I now have another major issue. External emails are not delivering! Please take a look at my logs:

    Tue 2011-02-22 16:51:19: Parsing message
    Tue 2011-02-22 16:51:19: * From: [email protected]
    Tue 2011-02-22 16:51:19: * To: [email protected]
    Tue 2011-02-22 16:51:19: * Subject: Testing from Outlook
    Tue 2011-02-22 16:51:19: * Size (bytes): 2970
    Tue 2011-02-22 16:51:19: * Message-ID:
    Tue 2011-02-22 16:51:19: Attempting SMTP connection to [75.125.43.109]
    Tue 2011-02-22 16:51:19: Attempting SMTP connection to [75.125.43.109:587]
    Tue 2011-02-22 16:51:19: Waiting for socket connection…
    Tue 2011-02-22 16:51:40: * Winsock Error 10060 The connection timed out.
    Tue 2011-02-22 16:51:40: Attempting to send message to smart host
    Tue 2011-02-22 16:51:40: Attempting SMTP connection to [[75.125.43.109:587]
    Tue 2011-02-22 16:51:40: Resolving A record for [[75.125.43.109] (DNS Server: 80.89.176.10)…
    Tue 2011-02-22 16:51:40: * Name server reports domain name unknown
    Tue 2011-02-22 16:51:40: This message is 8 minutes old; it has 52 minutes left in this queue
    Tue 2011-02-22 16:51:40: SMTP session terminated (Bytes in/out: 0/0)

    I’ve tried several things, but i keep getting this Winsock Error. Please what do you think can be done?

  31. There seems to be a couple different issue here. First off, when MDaemon attempts to connect to 75.125.43.109:587 there is no response from the remote server. I tried from here and there isn’t a response either. I’m guessing that the server might have moved IP (or is offline), is this supposed to be your ISP’s smarthost or mail server? If so, it might be better to use a hostname instead of the IP.

    Second, MDaemon attempts to use a smarthost next, but note the name it’s trying to resolve: “[75.125.43.109”, check the smarthost field in MDaemon, it should probably be [75.125.43.109:587] (but I’m guessing it’s missing the trailing “]”)

  32. As Dave Warren mention, We need to used stunnel to connect MutiPOP to gmail successful. I have downloaded stunnel from stunnel.org. I tested it but no luck getting through. Can you give me more detail how to use stunnel with older version MDaemon?

  33. URGENT HELP!!!!!

    hey guyz..i am using mdaemon v 10 email server. I am going through the problem of downloading same email multiple times by mdaemon server and because of this receiver receive same mail multiple times. I had reviewed all the configuration in mdaemon but i am unable to sort out any issue…

    Please help me with some helpful solution…

    Thanks..

    Santosh Manandhar

  34. Hi Santosh,

    Are you trying to leave messages on the POP3 server?

  35. Dear friends
    I’ve done what the article said but I still have “60 second wait for protocol timeout exceeded.” My Program version is 8.1.3.
    Please help me.

    MASOUD

  36. Masoud, unfortunately you need MDaemon 9.6.3 or higher to take advantage of this functionality. You’ll need to look into a workaround like stunnel, or upgrade to a current version of MDaemon.

  37. Hi Dave Warren,

    Yes I had checked the setting to leave a message on the pop3 server. I was using this setting from last few years and few months back i got virus attack in my mail server and changed it with new server with same settings, after this i start receiving same email multiple times (not all email but some).

    Is their any solution for this issue Dave?

  38. Hi Dave,

    Yes, leaving message in pop3 server is enabled in my system. However, it has been enabled from last year and I am facing this problem from last few months.

    Please suggest me some helpful suggestion.

    Thank you

  39. The only solution to POP3 duplicates is to not leave mail on the server.

  40. Hello Dave,

    I am using MD 10 and mail collected via multipop and send mail via ISP smtp. Last few day ISP smtp have some problem all mail send to hotmail/gmail domain or some time all domain mail return or stuck.

    my company have 1 gmail account. i would like setup gmail smtp to send all mails.

    Please help me in this regard’s

  41. SSL does not appear to be available in the standard edition.

  42. Bob, this is true. Just like with versions of MDaemon prior to 9.6.3, you’ll need to use stunnel to pull mail from Gmail with MDaemon Standard.

  43. Hello Dave,

    Will this configuration work on the latest mdaemon version as well (16.5.2). I tried the above configuration, but unable to download any email from gmail/gsuite. SSL is enabled under security options. Is there anything you can help me out with?

  44. That depends, what is the error message? You may either need a app-specific password or to enable Google’s “Allow less secure apps” feature (this is needed for classic password authentication to work, without it Google expects all apps to use OAuth2).

    It all depends on the error in the MultiPOP log.

  45. Hello Dave,

    Sorry for getting back to you a little late, i figured out the error regarding this. In your initial post, you had mentioned to use the hostname as mail.gmail.com:995 which gave me the error, then i changed it to pop.gmail.com:995 (while reading user comments and looking at one of the logs i noticed it) and it worked almost immediately. Thank you for your support :-)

  46. True enough. Article updated, thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.