On 15/12/2010, at 2:21 PM, Spacelee wrote:

> hi everything, I met a problem recently because we need to add a new function 
> to our product.
> the problem is for each valid incoming email, we need to call a script to 
> insert it to different databases, someone said I could add this to the 
> /etc/aliases, like : b...@example.org: "|/tmp/somescripts.sh", but it's only 
> used for special users, unable for all the users(or emails)
> 
> what should I do? do you have any suggestions?

At the risk of being blacklisted on this rather "robust" forum, when I've 
needed a DB backend for mail I've invariably ended up with a product designed 
for that purpose.  The idea of piping or scripting may seem desirable at first, 
but as mail volume increases the overhead becomes unmanageable (I've attempted 
this approach with sendmail/exim/postfix/qmail and none performed adequately 
under heavy mail load whilst trying to pump into a DB).  Whilst this isn't 
necessarily prescriptive of anyone else's situation, it is most certainly 
descriptive of my experience.  It's quite possible that what you want and what 
I've attempted in the past are quite different :)

Maybe look at DBmail - http://www.dbmail.org/ ?

Asbestos suit on.

James

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to