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: spec queue and sorting
From: Wietse Venema (wietseporcupine.org)
Date: Tue Jul 04 2000 - 16:17:03 CDT


agohollo.idg.hu:
> Hi !
>
> I'm still suffering with the program which handles some mails specially.
> Which I want to do now (the programmer gaves me the instructions) :
> if a mail arrives to address which doesn't exist in our system send it
> to a special user (created just to this purpose). Still fine, luser_relay
> works. But ! Put into queue and with a script or somehow put every email
> individually to simple text file and after the whole mail arrived close
> the file and move it to a directory where his daemon waits and examines
> the file (and decide what to do with it). Somebody did somethig similar ?

Don't do this. Instead, use an alias that delivers the message to
"|command", or use a Postfix pipe transport that does the equivalent.

Why is delivery to command much faster than delivery to disk?
Because CPUs are much faster than disks. Not to mention that
having a daemon constantly scanning the disk for new mail ruins
the performance of the machine.

What happens wehn multiple messages arrive for the same user before
the daemon discovers that the user has new mail?

> If the answer is yes, please contact with me and tell me the solution,
> it's very important to work. And where could I find info about puting
> mails into a queue with postfix ? I ' ve read the whole FAQ but didn't
> find the answer. Maybe I've overlooked. The most important thing is that
> the email shouldn't pop in the /var/spool/usersbox, just in the
> /home/usersdir.
> Thanks,

Postfix *IS* the mail queue management system.

        Wietse