15 messages in net.sourceforge.lists.courier-usersRe: [courier-users] maildrop, authlib...
FromSent OnAttachments
Jimmy OttJul 12, 2006 2:29 pm 
Jimmy OttJul 13, 2006 1:17 am 
Jimmy OttJul 13, 2006 1:45 am 
Jimmy OttJul 13, 2006 1:45 am 
Jimmy OttJul 13, 2006 2:01 am 
Larry MooreJul 13, 2006 2:25 am 
Jimmy OttJul 13, 2006 2:26 am 
Jimmy OttJul 13, 2006 3:35 am 
Larry MooreJul 13, 2006 3:51 am 
Jimmy OttJul 13, 2006 3:58 am 
Larry MooreJul 13, 2006 4:09 am 
Jimmy OttJul 13, 2006 4:24 am 
Jimmy OttJul 13, 2006 5:06 am 
Jerry AmundsonJul 13, 2006 10:18 am 
Jimmy OttJul 13, 2006 12:14 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:Re: [courier-users] maildrop, authlib HOMEDIR, MAILDIRActions...
From:Jimmy Ott (adm@onnet.ch)
Date:Jul 13, 2006 3:35:39 am
List:net.sourceforge.lists.courier-users

Larry Moore wrote:

Jimmy Ott wrote:

second advise begin with ./ doesn't work :(

vmail@ares:~$ maildrop -V5 -d adm@onnet.ch </tmp/test.eml maildrop: authlib: groupid=5000 maildrop: authlib: userid=5000 maildrop: authlib: logname=adm@onnet.ch, home=/var/spool/postfix/virtual, mail=./onnet.ch/jott/ maildrop: Changing to /var/spool/postfix/virtual [...] maildrop: Attempting .mailfilter maildrop: Delivering to ./Maildir maildrop: Flock()ing ./Maildir. maildrop: Appending to ./Maildir. maildrop: Delivery complete.

absolute path is working, but i'm using other components which are combining the two attributes homeDirectory and mailbox, so it's a big change in my whole configuration, but i'm thinking about it. courier-imap and courier-pop3 are able to use this values from authlib, why maildrop isn't?

I have just reconfigured my LDAP attributes. I have no maildroprc file hence no filtering.

i've now moved the maildroprc file away, but still have the same problem

Output from authtest as follows;

$ authtest lmoore@moorecomputing.local Authentication succeeded.

Authenticated: lmoore@moorecomputing.local (uid 10002, gid 556) Home Directory: /home/domains Maildir: moorecomputing.local/mailbox/lmoore Quota: (none) Encrypted Password: {CRYPT}$2a$07$/cHBPcW9idrICZFtC8nTSenb3.V5f8SsSf0i0sG1jWrq3IhFAwfiq Cleartext Password: you_wish! Options: (none)

authtest output: ares:~# authtest adm@onnet.ch **** Authentication succeeded.

Authenticated: adm@onnet.ch (uid 5000, gid 5000) Home Directory: /var/spool/postfix/virtual Maildir: onnet.ch/jott/ Quota: (none) Encrypted Password: (none) Cleartext Password: **** Options: (none)

$ maildrop -V5 -d lmoore@moorecomputing.local < ./test-mail maildrop: authlib: groupid=556 maildrop: authlib: userid=10002 maildrop: authlib: logname=lmoore@moorecomputing.local, home=/home/domains/, mail=moorecomputing.local/mailbox/lmoore maildrop: Changing to /home/domains/ Message start at 0 bytes, envelope sender=lmoore@moorecomputing.local maildrop: Attempting .mailfilter maildrop: Delivery complete.

Message arrive in /home/domains/moorecomputing.local/mailbox/lmoore (which is a maildir) as expected.

and by removing the trailing / in the homeDirectory attribute also dropped the message where it is expected.

$ maildrop -V5 -d lmoore@moorecomputing.local < ./test-mail maildrop: authlib: groupid=556 maildrop: authlib: userid=10002 maildrop: authlib: logname=lmoore@moorecomputing.local, home=/home/domains, mail=moorecomputing.local/mailbox/lmoore maildrop: Changing to /home/domains Message start at 0 bytes, envelope sender=lmoore@moorecomputing.local maildrop: Attempting .mailfilter maildrop: Delivery complete.

output from maildrop: vmail@ares:~$ maildrop -V10 -d adm@onnet.ch </tmp/test.eml maildrop: authlib: groupid=5000 maildrop: authlib: userid=5000 maildrop: authlib: logname=adm@onnet.ch, home=/var/spool/postfix/virtual, mail=onnet.ch/jott/ maildrop: Changing to /var/spool/postfix/virtual Message start at 0 bytes, envelope sender=vmail maildrop: Attempting .mailfilter maildrop: Delivering to ./Maildir maildrop: Flock()ing ./Maildir. maildrop: Appending to ./Maildir. maildrop: Delivery complete.

mail arrives and is appended to the file /var/spool/postfix/virtual/Maildir it is not placed in the correct subdirectory

comment: the / at the end of mailbox isn't the problem, i also tried it without the slash, and the problem remains the same

your first advise i don't understand. i don't have individual homedirs. it's always the same homedirectory, but different mailboxes. there is only one filter in /etc/courier/maildroprc, which moves spam away, no user specified filtering is planed.

That was for completeness!

Have you tried it without a /etc/courier/maildroprc file?

You never mentioned which versions of the packages you are using nor what platform.

for sure i have ;) here is it again:

distribution: debian testing courier packages: ii courier-authdaemon 0.58-3 ii courier-authlib 0.58-3 ii courier-authlib-ldap 0.58-3 ii courier-authlib-userdb 0.58-3 ii courier-base 0.53.2-3 ii courier-imap 4.1.1-3 ii courier-imap-ssl 4.1.1-3 ii courier-ldap 0.53.2-3 ii courier-maildrop 0.53.2-3 ii courier-pop 0.53.2-3 ii courier-ssl 0.53.2-3

Larry.

many thanks larry, you gave me back some hope to make it work soon :)