I have a little bit "off-topic" question that is probably not directly related to Cpanel, but there seem to be many clever people frequenting this dboard so perhaps someone will be able to answer my question...
There is a "special" PHP anti-spam script ( no, it's not Spam Assasin ) installed on one of my domains, this script connects to email account number 1, checks if the email sender has been approved to send you emails and it also does a few other things, then it connects to account 2, account 3 and then again account 1 and so it cycles through all accounts on the server - or a particular domain name to be exact.
It works great but the problem is that if you have more accounts, let's say 50, the script needs some time to cycle through all accounts and for example if you have an email account number 1 and the script is checking account number 30, some spam emails may slip through because you download them through your pop3 email client before they could be checked by the anti-spam script.
Does it make sense so far? I need a solution that will ensure that it will be possible to download only those emails already checked by the anti-spam script.
Now I do not need this solution yet, but it might be necessary when the number of accounts grows. So far the script successfully blocks over 97% of all spam emails so this problem is not a serious one for me, yet...
This is probably a question for programmers I believe. Or if there is a way how to automatically mark all incoming emails as read / seen on the server level ( and instruct the pop3 server ) and mark them as unread / unseen only after they were checked by the anti-spam script or something similar, please let me know.
Any ideas how to solve this puzzle are welcome.
Thanks, I know my question is somewhat offtopic...
Tomas
cPanel.net Support Ticket Number:
There is a "special" PHP anti-spam script ( no, it's not Spam Assasin ) installed on one of my domains, this script connects to email account number 1, checks if the email sender has been approved to send you emails and it also does a few other things, then it connects to account 2, account 3 and then again account 1 and so it cycles through all accounts on the server - or a particular domain name to be exact.
It works great but the problem is that if you have more accounts, let's say 50, the script needs some time to cycle through all accounts and for example if you have an email account number 1 and the script is checking account number 30, some spam emails may slip through because you download them through your pop3 email client before they could be checked by the anti-spam script.
Does it make sense so far? I need a solution that will ensure that it will be possible to download only those emails already checked by the anti-spam script.
Now I do not need this solution yet, but it might be necessary when the number of accounts grows. So far the script successfully blocks over 97% of all spam emails so this problem is not a serious one for me, yet...
This is probably a question for programmers I believe. Or if there is a way how to automatically mark all incoming emails as read / seen on the server level ( and instruct the pop3 server ) and mark them as unread / unseen only after they were checked by the anti-spam script or something similar, please let me know.
Any ideas how to solve this puzzle are welcome.
Thanks, I know my question is somewhat offtopic...
Tomas
cPanel.net Support Ticket Number: