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:OP3; 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
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?
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...
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.
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...
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