Hi
We've put together a delivery system, using procmail, which
calls a perl script which in turn runs some oracle stuff, to
decide what to do with incoming mail. We're NOT using /etc/passwd,
but calling this procmailrc directly from sendmail:
:0:/tmp/viplock
*
DELMAILBOX=| /usr/local/etc/vip_procmail
:0:
*
$DELMAILBOX
this seems to work and I can deliver mail to arbitrary files
in /var/mail which a modified POP3 server can pick up using
the same database interface.
My perl script, vip_procmail, simply outputs the name of the
maildrop and procmail acts on it accordingly.
What I want to do is have DELMAILBOX contain other procmail
commands, such as !, to forward mail to other servers. I've
tried having the script output a ! name(_at_)address to no avail.
I also need a way of bouncing mail nicely if we don't have
the address being sent to and a way of nicely re-queuing the
mail if my perl script decides the database subsystem is dead
or something.
If anyone has any ideas, I'd be grateful to hear from you.
Cheers
============================================================
John P Connor email: John(_dot_)Connor(_at_)icl(_dot_)net
Internet Support Specialist
ICL Electronic Business
Managed Services
============================================================