Maildrop + LDAP : Wrong home directory and mailbox

View: New views
4 Messages — Rating Filter:   Alert me  

Maildrop + LDAP : Wrong home directory and mailbox

by LiniX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI,

I use Postfix + Courier-Maildrop + OpenLDAP + Ubuntu 8.04 Server
I use "The Book of POSTFIX" guide me . on Chapter 19 "A Company mail server"

I don't know how to correct home directory from LDAP
when i use root account for maildrop
mailer@Postfix:~$ sudo maildrop -V 9 -d watchara@...
maildrop: authlib: groupid=1001
maildrop: authlib: userid=1001
maildrop: authlib: logname=watchara@..., home=/home/vmail/npt.com/, mail=watchara/Maildir
maildrop: Changing to /home/vmail/npt.com/
TEST From Root
Message start at 0 bytes, envelope sender=watchara@...
maildrop: Attempting .mailfilter
maildrop: Delivery complete.
mailer@Postfix:~$


But when i use vmail account to use maildrop, it wrong home directory it not use home directory from LDAP but it use home directory of vmail account

mailer@Postfix:~$ sudo su - vmail
vmail@Postfix:~$ maildrop -V 9 -d watchara@...
maildrop: authlib: groupid=1001
maildrop: authlib: userid=1001
maildrop: authlib: logname=watchara@..., home=/home/vmail/npt.com/, mail=watchara/Maildir
maildrop: Changing to /home/vmail
TEST
Message start at 0 bytes, envelope sender=vmail
maildrop: Attempting .mailfilter
maildrop: Delivery complete.
vmail@Postfix:~$

see in "maildrop: Changing to /home/vmail" is wrong home directory

How to fixed this problem ?

Thank you
Watchara Kangkun

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop@...
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

Re: Maildrop + LDAP : Wrong home directory and mailbox

by Sam Varshavchik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Watchara Kangkun writes:

> HI,
>
> I use Postfix + Courier-Maildrop + OpenLDAP + Ubuntu 8.04 Server
> I use "The Book of POSTFIX" guide me . on Chapter 19 "A Company mail
> server"
>
> I don't know how to correct home directory from LDAP
> when i use root account for maildrop
> mailer@Postfix:~$ sudo maildrop -V 9 -d
> <URL:mailto:watchara@...>watchara@...
> maildrop: authlib: groupid=1001
> maildrop: authlib: userid=1001
> maildrop: authlib: logname=<URL:mailto:watchara@...>watchara@...,
> home=/home/vmail/<URL:http://npt.com/>npt.com/, mail=watchara/Maildir
> maildrop: Changing to /home/vmail/<URL:http://npt.com/>npt.com/
> TEST From Root
> Message start at 0 bytes, envelope
> sender=<URL:mailto:watchara@...>watchara@...
> maildrop: Attempting .mailfilter
> maildrop: Delivery complete.
> mailer@Postfix:~$
>
>
> But when i use vmail account to use maildrop, it wrong home directory it
> not use home directory from LDAP but it use home directory of vmail
> account
>
> mailer@Postfix:~$ sudo su - vmail
> vmail@Postfix:~$ maildrop -V 9 -d
> <URL:mailto:watchara@...>watchara@...
> maildrop: authlib: groupid=1001
> maildrop: authlib: userid=1001
> maildrop: authlib: logname=<URL:mailto:watchara@...>watchara@...,
> home=/home/vmail/<URL:http://npt.com/>npt.com/, mail=watchara/Maildir
> maildrop: Changing to /home/vmail
> TEST
> Message start at 0 bytes, envelope sender=vmail
> maildrop: Attempting .mailfilter
> maildrop: Delivery complete.
> vmail@Postfix:~$
>
> see in "maildrop: Changing to /home/vmail" is wrong home directory
>
> How to fixed this problem ?
Check your path. You probably have two versions of maildrop installed in
your path.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop@...
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

attachment0 (204 bytes) Download Attachment

Parent Message unknown Re: Maildrop + LDAP : Wrong home directory and mailbox

by LiniX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Daniel,

i check with postmap
it OK

i think it is problem about vmail account, vmail always use vmail's home directory

Thank You
Wachara Kangkun

2008/9/4 <dludwig@...>
Hi,

how did You setup virtual_mailbox_base and especially virtual_mailbox_maps in Postfix' main.cf ?

Here's an example:
...
virtual_mailbox_base = /home/vmail

virtual_mailbox_maps = ldap:ldapvirtual_mailboxes
ldapvirtual_mailboxes_server_host = 127.0.0.1
ldapvirtual_mailboxes_protocol_version = 3
ldapvirtual_mailboxes_bind_dn = uid=postfix,ou=xyz,dc=abc,dc=com
ldapvirtual_mailboxes_bind_pw = ************
ldapvirtual_mailboxes_search_base = ou=userdb,dc=xyz,dc=com
ldapvirtual_mailboxes_scope = one
ldapvirtual_mailboxes_query_filter = (&(mail=%s)(accountStatus=active))
ldapvirtual_mailboxes_result_attribute = uid
ldapvirtual_mailboxes_result_filter = %s/Maildir/

Try to check with postmap:
# postmap -q "user@..." ldap:ldapvirtual_mailboxes
user/Maildir/

This command should return "homedirectory/Maildir/", which resides in the virtual_mailbox_base (/home/vmail).


I hope that helps !


Bye
Daniel


------------------------------------------------------------------------
alphyra GmbH
Antoniusstr. 2, D-54290 Trier
Tel.: +49 651 9662 0
Fax.: +49 651 9662 199

http://www.alphyra.de

Eingetragen beim Amtsgericht Wittlich 14 HRB 4459
Geschäftsführer: Matthias Schneider, John Nagle, John Williamson





-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop@...
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

Re: Maildrop + LDAP : Wrong home directory and mailbox

by LiniX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sam,

I have only one version of maildrop
it is 2.0.4

i think it is vmail account problem, when i use vmail account use maildrop , it always use vmail account home directory.
i don't know why,
But when i use root account use maildrop, it change home directory to homeDirectory (LDAP user home directory) and default to user/Maildir

Can you help me? please.

Thank You
Watchara Kangkun

2008/9/4 Sam Varshavchik <mrsam@...>
Watchara Kangkun writes:

HI,

I use Postfix + Courier-Maildrop + OpenLDAP + Ubuntu 8.04 Server
I use "The Book of POSTFIX" guide me . on Chapter 19 "A Company mail server"

I don't know how to correct home directory from LDAP
when i use root account for maildrop
mailer@Postfix:~$ sudo maildrop -V 9 -d <URL:mailto:watchara@...>watchara@...

maildrop: authlib: groupid=1001
maildrop: authlib: userid=1001
maildrop: authlib: logname=<URL:mailto:watchara@...>watchara@..., home=/home/vmail/<URL:http://npt.com/>npt.com/, mail=watchara/Maildir
maildrop: Changing to /home/vmail/<URL:http://npt.com/>npt.com/
TEST From Root
Message start at 0 bytes, envelope sender=<URL:mailto:watchara@...>watchara@...

maildrop: Attempting .mailfilter
maildrop: Delivery complete.
mailer@Postfix:~$


But when i use vmail account to use maildrop, it wrong home directory it not use home directory from LDAP but it use home directory of vmail account
mailer@Postfix:~$ sudo su - vmail
vmail@Postfix:~$ maildrop -V 9 -d <URL:mailto:watchara@...>watchara@...

maildrop: authlib: groupid=1001
maildrop: authlib: userid=1001
maildrop: authlib: logname=<URL:mailto:watchara@...>watchara@..., home=/home/vmail/<URL:http://npt.com/>npt.com/, mail=watchara/Maildir

maildrop: Changing to /home/vmail
TEST
Message start at 0 bytes, envelope sender=vmail
maildrop: Attempting .mailfilter
maildrop: Delivery complete.
vmail@Postfix:~$

see in "maildrop: Changing to /home/vmail" is wrong home directory
How to fixed this problem ?

Check your path. You probably have two versions of maildrop installed in your path.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop@...
https://lists.sourceforge.net/lists/listinfo/courier-maildrop



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop@...
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
LightInTheBox - Buy quality products at wholesale price!