How many POP3 connections can I have at the same time?

Discussion in 'Installation/Configuration' started by voltron81, Jan 8, 2010.

  1. voltron81

    voltron81 New Member

    Hi to everybody.
    I realized a "local mailserver", that will be connected with a slow dial-up connection to a main mailserver(based on ISPConfig).

    To have an idea of which email the local user have received, without download it, I've realized a perl script based on the function use Net::pOP3; that will create a POP3 connection to all the accounts of that particular domain and retrieve to me the sender,receiver,date,size,subject,UIDL.

    Now, because of the slowness of the connection (expecially a big latency), this script will take a while to be executed.

    I tried running a script for every account, and it's faster... but it's look like I can not have more than 4 POP3 connections at the same time... and if for example I've an account with 100 emails and the others with 2 emails, it will be not so faster...

    I tried also to split the script, fetching the email informations based of the number made from the "list" command, but again it's look like I can make just 4 POP3 connections at the same time...

    Suggestions?

    thanks
    Michele
     
  2. Ben

    Ben Active Member Moderator

    What is the goal you want to reach from the remote site, connecting to the main mailserver?
    Just to get a rough overview which mails are on the main mailserver?
    If so, why don't you set up sth. like a webservice on the main machine, gathering the whole data you need upon a request, and fetch this consolidated data en block from the remote machine?
     
  3. voltron81

    voltron81 New Member

    Hi Ben,
    the goal of that is to have this informations without download emails: sender,receiver,date,size,subject,UIDL.
    I need this information because the local mailserver is connected on internet with a very slow dial-up connections, so with that informations I then can have the opportunity to decide which email I want to retrieve...
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the courier config files, the number of connections should be configurable there. In general, a few hundred or even thousand simultanious connections should be no problem.
     
  5. voltron81

    voltron81 New Member

    Thanks Till,
    I've found it.
    I'll make some tests now...
    Anyway if somebody have a better idea how to retrieve that informations... I'll be more than happy to know...
    :)
     
  6. voltron81

    voltron81 New Member

    Right, now it's a bit faster than before... but if somebody from the localserver want to use this feature with another main mailserver, I'll have the same problem... because of course I can not change the limitation of the max POP3 connections for the single IP...

    Generally which is the default value for a normal mailserver? 4?

    Thanks
    Michele
     

Share This Page