OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: save before deliver
From: agohollo.idg.hu
Date: Thu Jun 22 2000 - 03:31:08 CDT


> What happens when to messages arrive at the same time? Using a
> tempfile + rename(tempfile, /var/mail/user) would cause one of the
> two messages to be lost.
> At the very least your daemon should lock the mailbox file before
> accessing it.
How could I do it with postfix. Could it lock the mailbox by itself or the
programmer has to write an addititonal module to it ?

>
> Better, you should configure a pipe transport in master.cf that
> feeds mail directly into your database as it arrives, instead of
Oh, yeah. But the importance of the daemon is as follows: an e-mail
arrives from mobile phone (through sms gateway of provider). It contains a
data about something. The daemon gets it and passes it to a program which
examines it and creates an output by the data it contains which goes to
the database. That's the problem. That's kind of online business through
email/sms. Sorry if I was unclear before.

> having a daemon that constantly scans the file system for mailbox
> files, and that wastes a lot of CPU and disk I/O resources.
Yeah but it's important to provide fast response to the customer (it
incorporates some kind of IA) wheter we can do the delivery or not.
Bye,
Ago