Amit wrote:
Hi Russ/Hardik.,
Thanx so much for lending a helping ear to my problem..I am posting
the outputs of user ldif export, /var/qmail/bin/qmail-showctl, the
permissions I have in /var/qmail/control and the log file for
/var/qmail/log/qmail-send/current....
Stop top posting please.
*1. outputs of user Amit's ldif export*
dn: uid=amit,ou=Users,dc=mydomain,dc=com
cn: amit
sn: amit
uid:amit
uidNumber: 1003
gidNumber: 1000
homeDirectory: /home/amit
loginShell: /bin/bash
gecos: System User
description: System User
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
displayName: System User
sambaSID:S-1-5-21-1033752373-4158422787-2430110392-3006
sambaPrimaryGroupSID:S-1-5-21-1033752373-4158422787-2430110392-3001
sambaLogonScript: amit.cmd
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSAMAccount
objectClass: qmailUser
mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
mailHost: mailserver.intranet.mydomain.com
accountStatus: active
mailMessageStore: /var/qmail/maildirs/amit/
mailAlternateAddress: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
mailAlternateAddress: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
mailAlternateAddress: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
mailAlternateAddress: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
mailAlternateAddress: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
mailAlternateAddress: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
sambaLMPassword: 860CFB1391773F06AAD3B435B51404EE
sambaAcctFlags: [U]
sambaNTPassword: 6E175C051DAFFC138BD5078A922D2668
sambaPwdLastSet: 1119643965
sambaPwdMustChange: 1128197565
userPassword: {CRYPT}vNvW98tPUp7tU
2. /var/qmail/bin/qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 500.
subdirectory split: 23.
user ids: 1003, 1004, 1005, 0, 1006, 1007, 1008, 1009.
group ids: 1001, 1002.
me: My name is mailserver.intranet.mydomain.com
ldapserver: My ldap server is localhost
badmailfrom: (Default.) Any MAIL FROM is allowed.
badmailfrom-unknown: (Default.) Any MAIL FROM from hosts without PTR
is allowed.
badrcptto: (Default.) Any RCPT TO is allowed.
bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.
bouncehost: (Default.) Bounce host name is
mailserver.intranet.mydomain.com.
bouncemaxbytes: (Default.) Bounce data limit is 0 bytes.
concurrencylocal: (Default.) Local concurrency is 10.
concurrencyremote: (Default.) Remote concurrency is 20.
custombouncetext: (Default.) No custombouncetext.
databytes: (Default.) SMTP DATA limit is 0 bytes.
defaultdomain: Default domain name is mydomain.com.
defaulthost: (Default.) Default host name is
mailserver.intranet.mydomain.com.
dirmaker: (Default.) Program to create homedirs not defined.
doublebouncehost: (Default.) 2B recipient host:
mailserver.intranet.mydomain.com.
doublebounceto: (Default.) 2B recipient
user: postmaster.
envnoathost: (Default.) Presumed domain name is
mailserver.intranet.mydomain.com.
goodmailaddr: (Default.) No good mail addresses.
helohost: (Default.)
SMTP client HELO host name is mailserver.intranet.mydomain.com.
idhost: (Default.)
Message-ID host name is mailserver.intranet.mydomain.com.
localiphost: (Default.)
Local IP address becomes mailserver.intranet.mydomain.com.
locals:
Messages for localhost are delivered locally.
Messages for mailserver are delivered locally.
Messages for intranet.mydomain.com are delivered locally.
Messages for mailserver.intranet.mydomain.com are delivered locally.
Messages for localhost.mydomain.com are delivered locally.
Messages for mailserver.mydomain.com are delivered locally.
me: My name is mailserver.intranet.mydomain.com.
outgoingip: (Default.) Bind qmail-remote to 0.0.0.0.
pbscachesize: (Default.) PBS cachesize is 1048576 bytes.
pbsenv: (Default.) No environment variables will be passed.
pbsip: (Default.) Bind PBS daemon to 0.0.0.0.
pbsport: (Default.) PBS deamon listens on port 2821.
pbssecret: (Default.) PBS shared secret is undefined! Uh-oh.
pbsservers: (Default.) No PBS servers.
pbstimeout: (Default.) PBS entries will be valid for 600 seconds.
percenthack: (Default.) The percent hack is not allowed.
plusdomain: Plus domain name is mydomain.com.
qmqpcip: (Default.) Bind qmail-qmqpc to 0.0.0.0.
qmqpservers: (Default.) No QMQP servers.
queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.
quotawarning: (Default.) No quotawarning.
rbllist: (Default.) No RBL listed.
rcpthosts:
SMTP clients may send messages to recipients at mydomain.com.
SMTP clients may send messages to recipients at intranet.mydomain.com.
SMTP clients may send messages to recipients at
mailserver.intranet.mydomain.com.
SMTP clients may send messages to recipients at localhost.
SMTP clients may send messages to recipients at mailserver.
SMTP clients may send messages to recipients at localhost.mydomain.com.
SMTP clients may send messages to recipients at mailserver.mydomain.com.
morercpthosts: (Default.) No effect.
morercpthosts.cdb: (Default.) No effect.
relaymailfrom: (Default.) Relaymailfrom not enabled.
smtpgreeting: (Default.) SMTP greeting: 220
mailserver.intranet.mydomain.com.
smtproutes:
SMTP route: mydomain.com:smtp.myisp.com
timeoutconnect: (Default.)
SMTP client connection timeout is 60 seconds.
timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.
timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.
virtualdomains:
Virtual domain: localhost.mydomain.com
Virtual domain: intranet.mydomain.com
Now the qmail-ldap specific files:
ldapbasedn: LDAP basedn: dc=mydomain, dc=com.
ldapserver: localhost
ldaplogin: LDAP login: cn=Manager, dc=mydomain, dc=com.
ldappassword: LDAP password: secret.
ldaptimeout: (Default.) LDAP server timeout is 30 seconds.
ldapuid: Default UID is 600.
ldapgid: Default GID is 600.
ldapobjectclass: The objectclass to limit ldap filter is qmailuser.
ldapmessagestore: Prefix for non absolute paths is /var/qmail/maildirs.
ldapdefaultdotmode: Default dot mode for ldap users is both.
defaultquotasize: (Default.) Mailbox size quota is 0 bytes (0 is
unlimited).
defaultquotacount: (Default.) Mailbox count quota is 0 messages (0 is
unlimited).
ldaplocaldelivery: Local passwd lookup is 0 (1 = on, 0 = off).
ldaprebind: (Default.) Ldap rebinding is 0 (1 = on, 0 = off).
ldapcluster: (Default.) Clustering is 0 (1 = on, 0 = off).
ldapclusterhosts: (Default.) Messages for me are not redirected.
qmail-smtpd.rules: I have no idea what this file does.
qmail-qmqpd.rules: I have no idea what this file does.
qmail-pop3d.rules: I have no idea what this file does.
qmail-imapd.rules: I have no idea what this file does.
Makefile: I have no idea what this file does.
signatures: I have no idea what this file does.
dirmaker.old: I have no idea what this file does.
defaultdelivery: I have no idea what this file does.
locals.cdb: I have no idea what this file does.
rcpthosts.cdb: I have no idea what this file does.
qmail-smtpd.cdb: I have no idea what this file does.
qmail-qmqpd.cdb: I have no idea what this file does.
qmail-pop3d.cdb: I have no idea what this file does.
qmail-imapd.cdb: I have no idea what this file does.
3. *Permissions for /var/qmail/control*
total 124
-rw-r--r-- 1 root qmail 11 Jun 25 00:51 defaultdelivery
-rw-r--r-- 1 root qmail 17 Jun 25 21:17 defaultdomain
-rwxr-xr-x 1 root ldap 24 Jun 25 22:53 dirmaker.old
-rw-r--r-- 1 root qmail 24 Jun 25 00:49 ldapbasedn
-rw-r--r-- 1 root qmail 5 Jun 25 00:51 ldapdefaultdotmode
-rw-r--r-- 1 root qmail 4 Jun 25 00:51 ldapgid
-rw-r--r-- 1 root qmail 2 Jun 26 12:17 ldaplocaldelivery
-rw-r--r-- 1 root qmail 36 Jun 25 00:49 ldaplogin
-rw-r--r-- 1 root qmail 20 Jun 25 00:51 ldapmessagestore
-rw-r--r-- 1 root qmail 10 Jun 25 00:50 ldapobjectclass
-rw-r--r-- 1 root qmail 9 Jun 25 00:50 ldappassword
-rw-r--r-- 1 root qmail 10 Jun 25 00:49 ldapserver
-rw-r--r-- 1 root qmail 4 Jun 25 00:51 ldapuid
-rw-r--r-- 1 root qmail 139 Jun 25 00:47 locals
-rw-r--r-- 1 root root 2325 Jun 25 00:53 locals.cdb
-rw-r--r-- 1 root qmail 2449 Jun 25 00:46 Makefile
-rw-r--r-- 1 root qmail 37 Jun 25 00:46 me
-rw-r--r-- 1 root qmail 17 Jun 25 00:46 plusdomain
-rw-r--r-- 1 root root 2181 Jun 26 15:38 qmail-imapd.cdb
-rw-r--r-- 1 root qmail 258 Jun 26 15:38 qmail-imapd.rules
-rw-r--r-- 1 root root 2113 Jun 25 00:53 qmail-pop3d.cdb
-rw-r--r-- 1 root qmail 219 Jun 25 00:46 qmail-pop3d.rules
-rw-r--r-- 1 root root 2074 Jun 25 00:53 qmail-qmqpd.cdb
-rw-r--r-- 1 root qmail 330 Jun 25 00:46 qmail-qmqpd.rules
-rw-r--r-- 1 root root 2188 Jun 25 22:57 qmail-smtpd.cdb
-rw-r--r-- 1 root qmail 1615 Jun 25 22:56 qmail-smtpd.rules
-rw-r--r-- 1 root qmail 156 Jun 25 00:48 rcpthosts
-rw-r--r-- 1 root root 2365 Jun 25 00:53 rcpthosts.cdb
-rw-r--r-- 1 root qmail 2131 Jun 25 00:46 signatures
-rw-r--r-- 1 root qmail 36 Jun 26 14:51 smtproutes
-rw-r--r-- 1 root qmail 53 Jun 25 21:32 virtualdomains
4. *tail -f /var/qmail/log/qmail-send/current*
@4000000042bd804226ee50f4 status: local 0/10 remote 0/20
@4000000042bd812526c01504 starting delivery 1: msg 654090 to local
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
@4000000042bd812526c024a4 status: local 1/10 remote 0/20
@4000000042bd81252714c0cc delivery 1: deferral:
Unable_to_switch_to_/home/amit:_access_denied._(#4.3.0)/
@4000000042bd81252714cc84 status: local 0/10 remote 0/20
@4000000042bd82bd1d9c9ac4 status: qmail-todo stop processing asap
@4000000042bd82bd1d9f8cac status: exiting
Note : I renamed dirmaker to dirmaker.old because it wasnt anyways
creating a new maildirectory when i was adding a user.
I had added localhost.mydomain.com to virtualdomains (that was after i
had tried everything that i could = just for experimentation)
Regards,
Amit
----- Original Message -----
*From:* russ <mailto:[EMAIL PROTECTED]>
*To:* 'Amit' <mailto:[EMAIL PROTECTED]> ;
[email protected] <mailto:[email protected]>
*Sent:* Monday, June 27, 2005 4:38 PM
*Subject:* RE: about qmail mail delivery directory
Amit,
When you create users in your LDAP directory, make sure you DO NOT
set mailMessageStore.
For more help, you should post one ldif export and the results of
/var/qmail/bin/qmail-showctl
Russ
-----Original Message-----
*From:* Amit [mailto:[EMAIL PROTECTED]
*Sent:* Monday, June 27, 2005 6:54 AM
*To:* [email protected] <mailto:[email protected]>
*Subject:* about qmail mail delivery directory
I have struggled a lot on this, posted this same question on
qmail-ldap list sometime back, but still no clue on to why
mails dont end up in /var/qmail/maildirs/<user> directory.
I unchecked the AUTOHOMEDIRMAKE and AUTOMAILDIRMAKE options
during qmail-ldap compilation.
1. user:group = vmail:vmail
How did you create user and group vmail? (What command did you use or
did you directly edit /etc/passwd file?)
What are the permissions of dirmaker script? (show us ls -ls output)
Does your dirmaker work if you run it something like...
$ ./dirmaker /var/qmail/maildirs/amit/
Run above command as user vmail.
Also read this link http://www.proscrutiny.com/howtos/qmail-ldap.html
Hope it will help you.
2. vmail home directory = /var/qmail/maildirs
3. Control files
(a) ldapmessagestore = /var/qmail/maildirs
(b) defaultdelivery = ./Maildir/
(c) ldapdefaultdotmode = both
(d) ldaplocaldelivery = 0
4. Create the maildirs for appropriate users through the command
/var/qmail/bin/maildirmake /var/qmail/maildirs/<user>
for i in Trash Drafts Sent; do
/var/qmail/bin/maildirmake -f $i user
done
5. I am using supervise and tcpserver to run qmail.
when i send a mail to any user on the local machine, lets
say [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>, or
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
This mail ends up being stuck in the queue....for that matter
all local mails remain in the queue..In the logs for
qmail-send, I get a unable to chdir /home/<user>, no such file
or directory error message. My question is....I have set up
the vmail home directory as /var/qmail/maildirs, then why is
qmail looking for /home/user/Maildir ??? How can I get qmail
to deliver messages to /var/qmail/maildirs/<user> ?
I have a sincere request to make...may be many of u guys will
shout at me for these questions to be too silly, or becos it
has been previously asked, but I have not been able to find
the solution for this problem even after so much struggle.
Hope u will understand and extend ur help...
--
Sameer N. Ingole
/******************************************************************************/
The degree of civilization in a society can be judged by entering its prisons.
-- F. Dostoyevski
/******************************************************************************/