I've hacked qmail-getpw to make a mail directory, if it doesn't exist,
but there is a valid user (recently added to an oracle database). There is
also a qmail users/assign file that has all the older users, and gets
refreshed from the database every five minutes.
Delivery to any users that are in the assign file works fine. However, I
don't think that qmail-getpw is being called, if the user isn't in the
assign file (or the cdb file). I've added a syslog call to the qmail-getpw
program, to log when it's called. This doesn't come up, when the
qmail-inject is done, below:
root@mail1:/home/jplooney# jobs
[1]- Running tail -f /var/log/syslog/auth &
[2]+ Running tail -f /var/log/qmail/send/* &
root@mail1:/home/jplooney# vim /var/qmail/users/assign
[ verified that the entry for john_looney is gone ]
root@mail1:/home/jplooney# qmail-newu
root@mail1:/home/jplooney# qmail-inject john_looney < /dev/null
root@mail1:/home/jplooney#
953474883.170644 new msg 4105
953474883.170770 info msg 4105: bytes 224 from <[EMAIL PROTECTED]> qp 32116 uid 0
953474883.174970 starting delivery 48: msg 4105 to local [EMAIL PROTECTED]
953474883.174993 status: local 1/100 remote 0/200
953474883.178621 delivery 48: failure:
Sorry,_no_mailbox_here_by_that_name./Check_the_address_spelling_and_try_again._(#5.1.1)/
953474883.178859 status: local 0/100 remote 0/200
953474883.183538 bounce msg 4105 qp 32118
953474883.183588 end msg 4105
root@mail1:/# qmail-getpw john_looney ; echo
jplooney143143/mail/0000/00/7c
root@mail1:/#
Mar 19 14:08:10 mail1 qmail-getpw: Calling syslog on john_looney
Anyone know why qmail-getpw wouldn't get called, if the username isn't in
the assign file ?
Kate
--
"The fool must be beaten with a stick, for an intelligent person
the merest hint is sufficient" -- Zen Master Greg
PGP signature