

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
33 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Avoiding '/usr/bin/ma...| From | Sent On | Attachments |
|---|---|---|
| Turbo Fredriksson | Jan 15, 2007 5:24 am | |
| Sam Varshavchik | Jan 15, 2007 7:12 am | |
| Turbo Fredriksson | Jan 15, 2007 7:41 am | |
| Devin Rubia | Jan 15, 2007 7:56 am | |
| Tony Earnshaw | Jan 15, 2007 8:37 am | |
| Turbo Fredriksson | Jan 15, 2007 9:03 am | |
| Devin Rubia | Jan 15, 2007 10:01 am | |
| mouss | Jan 15, 2007 2:45 pm | |
| Turbo Fredriksson | Jan 15, 2007 10:54 pm | |
| Turbo Fredriksson | Jan 15, 2007 10:57 pm | |
| Devin Rubia | Jan 16, 2007 6:54 am | |
| mouss | Jan 16, 2007 4:20 pm | |
| Turbo Fredriksson | Jan 17, 2007 1:34 am | |
| Devin Rubia | Jan 17, 2007 7:09 am | |
| Devin Rubia | Jan 17, 2007 7:35 am | |
| Jay Lee | Jan 17, 2007 7:50 am | |
| Turbo Fredriksson | Jan 18, 2007 12:22 am | |
| Turbo Fredriksson | Jan 18, 2007 12:47 am | |
| Devin Rubia | Jan 18, 2007 7:24 am | |
| Devin Rubia | Jan 18, 2007 7:46 am | |
| Turbo Fredriksson | Jan 20, 2007 1:29 am | |
| Turbo Fredriksson | Jan 20, 2007 1:32 am | |
| mouss | Jan 21, 2007 3:06 pm | |
| mouss | Jan 21, 2007 3:14 pm | |
| Devin Rubia | Jan 22, 2007 6:40 am | |
| Devin Rubia | Jan 22, 2007 6:51 am | |
| Turbo Fredriksson | Jan 22, 2007 10:38 am | |
| mouss | Jan 22, 2007 2:22 pm | |
| Turbo Fredriksson | Jan 23, 2007 3:59 am | |
| Turbo Fredriksson | Jan 23, 2007 4:01 am | |
| Turbo Fredriksson | Jan 23, 2007 4:03 am | |
| Devin Rubia | Jan 23, 2007 10:04 am | |
| mouss | Jan 27, 2007 11:58 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] Avoiding '/usr/bin/maildrop: Unable to change to home directory' | Actions... |
|---|---|---|
| From: | Turbo Fredriksson (tur...@bayour.com) | |
| Date: | Jan 18, 2007 12:47:27 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Quoting Devin Rubia <dev...@thezone.net>:
OK, then we have something else going wrong here.
Thank you! That's what I've been saying :)
Can you run an "authtest someuser" and see if it returns correct data?
----- s n i p ----- root@aurora# authtest turbo Authentication FAILED: Input/output error root@aurora# authtest turbo Authentication succeeded.
Authenticated: turbo (uid 1000, gid 1000) Home Directory: /var/mail/fredriksson/turbo/ Maildir: (none) Quota: (none) Encrypted Password: {SASL}tur...@BAYOUR.COM Cleartext Password: (none) Options: (none) ----- s n i p -----
Weird! First time it failed, the second it succeeded. And if I test a second/third user right after this, they succeed...
So authtest/courier knows that my Maildir is my homedir... Even weirder! :)
So it seems you have your configs in /etc/courier/. Does authlib know this? Could you run a "find / -name authldaprc" and see if there's another one kicking around?
This is a Debian GNU/Linux box with Debian GNU/Linux packages so it's compiled to know about /etc/courier. Besides, if I create the _real_ homedirectory (/afs/.bayour.com/user/fredriksson/turbo) then it works, even if it's empty (but owned by me). So the LDAP_HOMEDIR is recognised and used correctly, just 'something else' is making it go to the original $HOME.
Oh, and just to make sure. The /var/mail/fredriksson/turbo/ IS owned by me and is a correct Maildir.
Just to make things easier, this is the top of my systemwide maildroprc (comments etc removed):
----- s n i p ----- SHELL="/bin/sh" SENDMAIL="/usr/sbin/sendmail" SPAMC="/usr/bin/spamc" BOGOFILTER="/usr/bin/bogofilter"
UMASK="007"
LOGDIR="/var/log" logfile "$LOGDIR/maildrop.log"
import RECIPIENT import HOST import LOCAL import PWD
# Special circumstances for my mail setup. # Homedirectory is in AFS and not readable, # and maildirectory is './' (which means it # - qmail - will firsts chdir to the mail # directory and deliver there as a Maildir). HOME=$PWD DEFAULT=$PWD
# Show the environment #log "ID: " `id` log "ENV: " `env` log "PWD(1): " `/bin/pwd` log "PWD(2): $PWD" ----- s n i p -----
I tried to move the very last line here around (earler) to see if there was a problem with the 'HOME=$PWD' line, but it always said '/var/mail/fredriksson/turbo/'. And with out that, things get even worse!
With ^HOME and ^DEFAULT line commented out:
----- s n i p -----
ENV: HOSTNAME=aurora SIZE=931 DEFAULT=/var/mail/turbo
SENDMAIL=/usr/sbin/sendmail HOME=/afs/.bayour.com/user/fredriksson/turbo/
BOGOFILTER=/usr/bin/bogofilter LOCKREFRESH=15 LOGNAME=turbo LOCKSLEEP=5
LOCAL=turbo PATH=/bin:/usr/bin:/usr/local/bin SPAMC=/usr/bin/spamc FROM=turbo
LOGDIR=/var/log SHELL=/bin/sh HOST=bayour.com UMASK=007
PWD=/afs/.bayour.com/user/fredriksson/turbo MAILDIRQUOTA= LINES=20
LOCKTIMEOUT=60 RECIPIENT=tur...@bayour.com LOCKEXT=.lock
PWD(1): /afs/.bayour.com/user/fredriksson/turbo
PWD(2): /var/mail/fredriksson/turbo
----- s n i p -----
With them enabled:
----- s n i p -----
ENV: HOSTNAME=aurora SIZE=1229 DEFAULT=/var/mail/fredriksson/turbo
SENDMAIL=/usr/sbin/sendmail HOME=/var/mail/fredriksson/turbo
BOGOFILTER=/usr/bin/bogofilter LOCKREFRESH=15 LOGNAME=turbo LOCKSLEEP=5
LOCAL=turbo PATH=/bin:/usr/bin:/usr/local/bin SPAMC=/usr/bin/spamc FROM=turbo
LOGDIR=/var/log SHELL=/bin/sh HOST=bayour.com UMASK=007
PWD=/afs/.bayour.com/user/fredriksson/turbo MAILDIRQUOTA= LINES=25
LOCKTIMEOUT=60 RECIPIENT=tur...@bayour.com LOCKEXT=.lock
PWD(1): /afs/.bayour.com/user/fredriksson/turbo
PWD(2): /var/mail/fredriksson/turbo
----- s n i p -----
Previosly I only had the FIRST PWD log line, but I found some disreprancies between what it SHOULD be and what it WAS so I did two log lines.
As seen in the last log output, all is well. Nowhere is the homeDirectory value referenced, and in the first it IS, even though it shouldn't!
If I put the three log lines just before the import's and just after logfile, this is what I get:
----- s n i p -----
ENV: HOSTNAME=aurora SIZE=931 DEFAULT=/var/mail/turbo
SENDMAIL=/usr/sbin/sendmail HOME=/afs/.bayour.com/user/fredriksson/turbo/
BOGOFILTER=/usr/bin/bogofilter LOCKREFRESH=15 LOGNAME=turbo LOCKSLEEP=5
PATH=/bin:/usr/bin:/usr/local/bin SPAMC=/usr/bin/spamc FROM=turbo
LOGDIR=/var/log SHELL=/bin/sh UMASK=007
PWD=/afs/.bayour.com/user/fredriksson/turbo MAILDIRQUOTA= LINES=20
LOCKTIMEOUT=60 LOCKEXT=.lock
PWD(1): /afs/.bayour.com/user/fredriksson/turbo
PWD(2):
----- s n i p -----
So.... ?







