Shalom Levytam skrev, on 14-12-2007 05:00: [...]
> I'm looking to start a new project which will involve creating what > might be called a virtual IMAP server. Essentially, I would like to > take a pop3 email account from work and create my own imap server for > it. My idea is that my server will check my work pop3 account every > so often using a cron job or similar. It will then download the > messages onto my own server where I could access them using my own > imap server. I do this using Fetchmail which logs automatically into my ISP, pops messages, gives them smtp to Postfix on my home Linux machine which processes them for attachments and virus using amavisd-new/ClamAV/BitDefender, gives them to dspam for anti-spam and lastly hands to Courier maildrop that hands off to Courier IMAP. > if i delete a message through my imap server it would > then check to see if the message is still present on my work pop3 > account and remove it. Fetchmail can be configured to delete the messages on the pop server at the end of a successful download run. If the pop isn't 100% successful it won't delete any message. Maildrop can be configured not to deliver messages with the same Message-ID twice, so avoiding duplicates in the case of unsuccessful downloads. > I don't know if I am explaining this too well but can anyone give me > direction on how to do something like this ? I am familiar with MYSQL > and have no problem creating tables to store the email. But I know > that postfix and courierIMAP use maildir. Is it possible to maybe use > php to retrieve the pop mail then use php imap commands to insert the > mail into something accessible by courierIMAP. dspam uses MySQL but messages are stored in Maildir on my IMAP server. I can't see any reason to store messages in MySQL. My users are all in LDAP and my IMAP and smtp servers are available from the Internet using SASL authentication with TLS/SSL. It's extremely important to use very recent versions of all the software mentioned above. > Any help or direction would be appreciated! The machine is a Fedora FC6 server/workstation with an FTP server. If you use latest Red Hat/CentOS/Fedora there are srpms on it for all of the above non-FC software mentioned above on it and rpms for FC6 and a large number of the RHEL5 versions (not Fetchmail). Best, --Tonni -- Tony Earnshaw Email: tonni at hetnet dot nl ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Courier-imap mailing list Courier-imap@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap