Kai,

> I want to develop a advanced email rules engine and backup solution for 
> e-smith, say to allow the administrator to do something like when email is 
> received for XYZ, also cc to ABC, if to ABC and DEF, then cc to XXX, etc. 
> etc. 

'procmail' is included on the e-smith server and will do all of what you 
are talking about.  You just have to write the appropriate "recipes". See

  http://www.procmail.org/

for more info.  Essentially, you create a .procmailrc file in a user's
home directory (on the e-smith server) with the recipes you want. Then
you create a ".qmail" file with the following line:

  | procmail ~/.procmailrc

(The first character is a "|" character.)  Messages to that address
will now be sorted based on the procmail rules.  It can be sent to another
address, sorted into a mail folder, or be fed to another command.

I thought I recalled someone on the list saying they were going to work
on a HOWTO on all of this... I don't remember who, though.

> For backup, I want to be able to archive emails to tape for all users 
> so that they can retrieve the emails in case they need them back, such as 
> virus, harddisk failure, etc.

As was mentioned, using IMAP will allow you to store all the mail on
the server.  The IMAP server we use makes use of the "Maildir" format
where messages are stored in a series of directories - namely "cur"
for current messages, "new" for new messages and "tmp" for temporary
processing.  Each message is a separate file that is created at the
time of receipt of the message.  You could build your system to retrieve
messages based on those timestamps.

Regards,
Dan
-- 
Dan York, Director of Training        [EMAIL PROTECTED]
Ph: +1-613-751-4401  Mobile: +1-613-263-4312 Fax: +1-613-564-7739 
e-smith, inc. 150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/            open source, open mind

--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to