I. I need an application that does the following things on my server:
II. Maintain a whitelist in MySQL of email addresses from which each mail account is willing to accept mail.
A. White list updates from MySQL to text file in maildir or other appropriate location for each mailbox for use with Dovecot
III. Modifications to Dovecot
A. IMAP and POP3
i. Check received email against mail account's white list
ii. If not on white list, move email to junk/spam folder
iii. Consider using DSPAM plugin ([url removed, login to view]) to help implement this project
iv. If possible, process the email before any MUA client can access it.
i. Add all sent “to” email addresses to whitelist if not already listed there
IV. Develop a simple web interface (PHP/MySQL) that enables each mail account owner within each cPanel account to perform the following anti-spam activities:
A. You may use Roundcube, Horde, and/or SquirrelMail for the mail account owner web interface if you wish (but only if it's easier ... not required)
B. Mail account owner can maintain and change a whitelist of senders (stored in MySQL db)
C. Mail account owner can move emails from junk/spam folder to inbox and vice-versa.
i. If easy and quick to implement, also allow them to move emails to their other folders on the server.
D. I also need a simple admin web interface that allows me to administer these same functions for all mail accounts on the server. A plugin for WHM would be okay.