procmail
[Top] [All Lists]

Re: concurrent sendmails when forwarding

1998-08-17 11:17:22
On Sun, 16 Aug 1998, Liviu Daia wrote:

    Ok, then here's yet another approach: deliver messages from procmail
directly to mailboxes in all those users' homes.  No sendmail involved,
_much_ lower loads.

Good idea!

:0:someuser.lock
* <condition>
| cat >> /var/spool/mail/someuser

should do it. Well, almost: a `chown someuser /var/spool/mail/someuser'
needs to be added to the recipe too.

Also, very safe due to procmails file locking capabilities.

But IMHO not as safe as forwarding because another sendmail delivering 
to /var/spool/mail/someuser is not locked out, or is it?
If not, this may corrupt the mailbox.

Otherwise a really great. Can't get any simpler.

So, how to lock out sendmails from other accounts for this to work?

Regards, Walter

-- 
Haidinger Walter <walter(_dot_)haidinger(_at_)gmx(_dot_)net>
Student of Electrical Engineering, University of Technology, Vienna, Austria
Address: Brunnerstr.6, A-3108 St.P"olten, Austria. Tel.: +43-2742-257191