5 messages in net.sourceforge.lists.courier-maildrop[maildropl] Maildrop delivery problem...
FromSent OnAttachments
Justin LambertMay 20, 2004 7:22 am 
Devin RubiaMay 20, 2004 10:15 am 
Justin LambertMay 20, 2004 11:04 am 
Devin RubiaMay 20, 2004 12:22 pm 
Justin LambertMay 20, 2004 2:06 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Maildrop delivery problems - signal 0x0BActions...
From:Justin Lambert (just@computility.com)
Date:May 20, 2004 7:22:41 am
List:net.sourceforge.lists.courier-maildrop

I am having some issues getting maildrop going. I have been running in circles for the last week and google and the archives can't seem to hit me up side the head with an answer.

I am trying to use maildrop to deliver mail to local users, but am having trouble even getting it to work with maildrop -d jlam@mydomain.com. The ldap searches look right (in the ldap log) and maildrop appears to get the right information. My configure for maildrop is (cut out of a rpm spec file):

%define courier_confdir /etc/courier-imap %configure \ --sysconfdir=%courier_confdir \ --with-etcdir=%courier_confdir \ --with-etcdir=%courier_confdir \ --with-devel \ --without-db \ --disable-userdb \ --enable-restrict-trusted=0 \ --enable-trusted-users='root daemon vmail dspam' \ --enable-trusted-users='root daemon vmail dspam' \ --enable-maildrop-uid=vmail \ --enable-maildrop-gid=vmail \ --enable-maildropldap \ --with-ldapconfig=%courier_confdir/maildropldap.config \ --disable-maildirquota \ --without-trashquota

maildropldap.config hostname localhost basedn ou=Users,o=computility,o=computility timeout 5 search_method mail default_uidnumber 91 default_gidnumber 91 mail_attr mail uid_attr uid maildir_attr mailMessageStore homedirectory_attr mailMessageStore

Running maildrop as root I get "Unable to change to home directory" error. An strace on it shows:

7410 unlink("/var/spool/mail/jlambert//maildirsize") = -1 EACCES (Permission denied) 7410 brk(0) = 0x8077000 7410 brk(0x8078000) = 0x8078000 7410 getuid32() = 1000 7410 setuid32(0x3e8) = 0 7410 chdir("/var/spool/mail/jlambert/") = -1 EACCES (Permission denied) 7410 write(2, "maildrop", 8) = 8 7410 write(2, ": ", 2) = 2 7410 write(2, "Unable to change to home directo"..., 35) = 35 7410 write(2, "\n", 1) = 1 7410 alarm(0) = 0 7410 exit_group(75) = ?

I'm not sure why it is trying to check maildirsize when I explecitly told it not to use quotas. The mail spool directories are 0700 at the root level with vmail:vmail (uid,gid 91) as the owner:group.

If I run maildrop sudo vmail I get "Cannot set user or group id." I have tried making the maildrop binary suid root and not, no difference. The end of the strace on that looks like:

7407 setgroups32(0x1, 0xbfffec24) = -1 EPERM (Operation not permitted) 7407 setgid32(0xc8) = -1 EPERM (Operation not permitted) 7407 setuid32(0x3e8) = -1 EPERM (Operation not permitted) 7407 getuid32() = 91 7407 write(2, "maildrop", 8) = 8 7407 write(2, ": ", 2) = 2 7407 write(2, "Cannot set my user or group id.", 31) = 31

Hopefully this is something simple I just am missing, but I've been running my head into the wall for a while trying to figure it out. Is there any way to turn on any other kind of logging or debugging within maildrop that might help too?

Thanks, Justin