I am sending mail to qmail-ldap successfully but am having one problem:
I compiled with MDIRMAKE=-DAUTOMAILDIRMAKE uncommented in the Makefile
but when mail is sent to a user in LDAP, I get this in the log file:
Jul 25 15:45:24 gustave qmail: 1027633524.182141 starting delivery 4: msg 59019 to local [EMAIL PROTECTED]
Jul 25 15:45:24 gustave qmail: 1027633524.182297 status: local 1/10 remote 0/20
Jul 25 15:45:24 gustave qmail: 1027633524.235057 delivery 4: deferral: Unable_to_switch_to_/var/qmail/maildirs/rimby:_file_does_not_exist._(#4.3.0)/
Jul 25 15:45:24 gustave qmail: 1027633524.235183 status: local 0/10 remote 0/20
Jul 25 15:45:24 gustave qmail: 1027633524.182297 status: local 1/10 remote 0/20
Jul 25 15:45:24 gustave qmail: 1027633524.235057 delivery 4: deferral: Unable_to_switch_to_/var/qmail/maildirs/rimby:_file_does_not_exist._(#4.3.0)/
Jul 25 15:45:24 gustave qmail: 1027633524.235183 status: local 0/10 remote 0/20
So obviously the mail directory does not exist. But my file /var/qmail/control/dirmaker exists and contains:
/var/qmail/bin/custom_dirmaker
Also, here is the contents of /var/qmail/bin/custom_dirmaker:
#!/bin/sh
logger "Creating Maildir/ for $1"
mkdir -m 700 -p $1
logger "Creating Maildir/ for $1"
mkdir -m 700 -p $1
And when I su - vmail and then run /var/qmail/bin/custom_dirmaker sampleuser
the directory gets properly created.
It looks as if it is just not being called when it should be.
How can I fix this?
Thanks
Mark
MSN Photos is the easiest way to share and print your photos: Click Here
