7 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] Maildrop at Debian Sarge
FromSent OnAttachments
Sérgio FerreiraNov 7, 2005 10:30 am.dat
Tony EarnshawNov 7, 2005 12:54 pm 
Dave AugustusNov 7, 2005 1:21 pm 
Sérgio FerreiraNov 8, 2005 4:35 am 
Sérgio FerreiraNov 8, 2005 4:43 am 
Tony EarnshawNov 9, 2005 2:11 am 
Sérgio FerreiraNov 9, 2005 8:03 am 
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: [maildropl] Maildrop at Debian SargeActions...
From:Sérgio Ferreira (serg@minc.gov.br)
Date:Nov 8, 2005 4:35:10 am
List:net.sourceforge.lists.courier-maildrop

Hi Dave,

-----Original Message----- From: Dave Augustus [mailto:dav@support.kcm.org] Sent: Monday, November 07, 2005 6:53 PM To: Sérgio Ferreira Cc: cour@lists.sourceforge.net Subject: Re: [maildropl] Maildrop at Debian Sarge

2 things-

1- you need have the location for each user in LDAP. This is defined in your authldaprc file, the value is LDAP_MAILDIR. In mine, I use the attribute MAILBOX for each account in ou=people. So my *authldaprc* config file has the following:

LDAP_MAILDIR mailbox

I´m using mailMessageStore attribute that keeps this path: /home/data/"username"/Maildir/

I didn´t encrypt password and put SSL stuffs yet. I leave It afterward, I guess It will more easy to debug problems like that I´m facing.

This is my authldaprc:

LDAP_SERVER localhost LDAP_PORT 389 LDAP_PROTOCOL_VERSION 3 LDAP_BASEDN ou=Users,dc=cultura,dc=gov,dc=br LDAP_BINDDN cn=replica,dc=cultura,dc=gov,dc=br LDAP_BINDPW teste LDAP_TIMEOUT 15 LDAP_AUTHBIND 1 LDAP_MAIL mail LDAP_DOMAIN cultura.gov.br LDAP_GLOB_UID mailadmin LDAP_GLOB_GID Mail LDAP_HOMEDIR homeDirectory LDAP_MAILDIR mailMessageStore LDAP_FULLNAME cn LDAP_CRYPTPW userPassword LDAP_UID 10010 LDAP_GID 15000 LDAP_DEREF never LDAP_TLS 0

2- you need to tell postfix *which* user is supposed to deliver the mail. In your case, MAILADMIN.

In /etc/postfix/master.cf, you should have a line like this:

maildrop unix - n n - - pipe flags=Ru user=mailadmin argv=/usr/bin/maildrop -d ${recipient}

Now I set at master.cf this:

flags=DRhu user=mailadmin argv=/usr/bin/maildrop -d ${user}

When I set just like you said "flags=Ru user=mailadmin argv=/usr/bin/maildrop -d ${recipient}", It is logged:

postfix/pipe[29193]: DC6DA4C0CF: to=<serg@cultura.gov.br>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. ) postfix/cleanup[29191]: E9CF04C0D1: message-id=<2005@gaia.cultura.gov.br> postfix/qmgr[29187]: E9CF04C0D1: from=<>, size=4732, nrcpt=1 (queue active) postfix/qmgr[29187]: DC6DA4C0CF: removed postfix/smtp[29196]: E9CF04C0D1: to=<serg@minc.gov.br>, relay=e250.minc.gov.br[200.198.204.69], delay=1, status=sent (250 Requested mail action okay, completed.) postfix/qmgr[29187]: E9CF04C0D1: removed postfix/pipe[29193]: DC6DA4C0CF: to=<serg@cultura.gov.br>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. ) postfix/cleanup[29191]: E9CF04C0D1: message-id=<2005@gaia.cultura.gov.br> postfix/qmgr[29187]: E9CF04C0D1: from=<>, size=4732, nrcpt=1 (queue active) postfix/qmgr[29187]: DC6DA4C0CF: removed postfix/smtp[29196]: E9CF04C0D1: to=<serg@minc.gov.br>, relay=e250.minc.gov.br[200.198.204.69], delay=1, status=sent (250 Requested mail action okay, completed.) postfix/qmgr[29187]: E9CF04C0D1: removed

I got those logs sent before when I set Maildrop, at master.cf, to:

flags=DRhu user=mailadmin argv=/usr/bin/maildrop -d ${user}

Thanks,

Sergio