I am running fastforward against /etc/aliases.cdb. I want to force the
default sendmail-type behavior that an entry in /etc/aliases will have
delivery priority over a user's mailbox, e.g., an alias exists for "bobo"
and so does the user account for "bobo" but mail will get delivered
according to "bobo's" alias instructions.
>From man qmail-getpw:
You can override all of qmail-getpw's decisions with the
qmail-users mechanism, which is reliable, highly config-
urable, and much faster than qmail-getpw.
So, in /users/assign, I remove the entries (generated by qmail-pw2u):
=bobo:bobo:109:100:/home2/bobo:::
+bobo-:bobo:109:100:/home2/bobo:-::
and replace these with
=bobo:alias:1384:105:/var/qmail/alias:-:default:
The intention is to force deliveries to bobo to be handled by
~alias/.qmail-default, which contains:
| fastforward -d /etc/aliases.cdb
After running qmail-newu, I send mail to bobo. The delivery goes to the
bobo's mailbox:
Oct 22 12:43:52 mail qmail: 940614232.480027 starting delivery 226697: msg
433083 to local [EMAIL PROTECTED]
...
Oct 22 12:43:52 mail qmail: 940614232.530061 delivery 226697: success:
did_1+0+0/
If it had been handled by fastforward, I would have seen something like:
Oct 22 13:15:33 mail qmail: 940616133.320053 delivery 228585: success:
fastforward:_qp_25373/did_0+0+1/
but I didn't.
I can get proper handling by fastforward if I delete the two entries in the
qmail-pw2u-generated users/assign, don't insert anything else and run
qmail-newu. But this is a problem too, because the qmail behavior for local
delivery is:
(1) check qmail-users and follow any instructions
(2) if no instructions in (1) check local users and deliver to users'
mailbox
(3) if user doesn't have a local mailbox, send to user "alias"
It appears that in this case, (2) is skipped! (I don't believe this.)
Can someone please explain in this case why doing the right thing doesn't
work and doing the wrong thing does?
Thank you.
P. Pirn -- see complete headers for more info