> > It will of course exist happily with qmail; it's just a
> > matter of using the right invocation of 'deliver' in
> > .qmail-default.
>
> Could you expand upon this please? Is there a global
> .qmail-default somewhere, or would each user have to
> have this? Isn't .qmail-default only for addresses
> in the form user-something, where the -something isn't
> already handled by a specific .qmail- file?
Ah, sorry, you're right. I meant defaultdelivery, not
.qmail-default. (I use some pretty funky setups on some of my relays and
get confused as to which I'm referring to). Of course, you can put the
right line in defaultdelivery, in ~user/.qmail, in ~alias/.qmail-user, in
~alias/.qmail-default, etc. etc. etc.
So, for example, I have a machine that runs qmail and cyrus. In the
/var/qmail/rc, the qmail-start invocation is:
qmail-start '|preline -f /usr/cyrus/bin/deliver -e -a $USER -- $USER' \
splogger qmail
The '|preline -f /usr/cyrus....' portion is the "defaultdelivery"
recipe, and it says, "Pass the message onto cyrus's Deliver program after
stripping the 'From ' line which would cause Deliver to puke."
So, if I understand what you're saying below, all you'd need to do
is modify your perl script to call a similar cyrus/bin/deliver line instead
of maildrop.
> Here is my real problem. This is what I have right
> now. I want to keep this while expanding on to Cyrus
> (if that seems the best choice).
Just remember, if it ain't broke, don't fix it. I like cyrus a lot,
but you need to evaluate if your load is causing any problems, and then if
this sort of switch is the best fix.
> Mail arrives. If it is of the form user-something,
> my perl script is called. My perl script determines
> if it needs to do anything special with the mail, and
> if not, it hands it off to maildrop for delivery into
> my Maildir. Of course, maildrop could do further
> filtering but that's not something I'm doing right now.
>
> How can I get something similar to the above to work
> using Cyrus? For the curious, my perl script takes
> certain emails and stuffs it into a database.
> Otherwise, it is treated as a normal email.
There are some caveats about regular users using 'deliver' to put
mail in their mailboxes. IIRC, it should be wrapped so that they can't
abuse it to get around mailbox quotas. Then again, if not using quotas,
then it isn't a problem... The cyrus documentation goes into these issues
better than I can remember.
--
gowen -- Greg Owen -- [EMAIL PROTECTED]