OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix LDAP alldomain trouble

From: Anders Bruun Olsen (andersbruun-olsen.net)
Date: Fri May 23 2003 - 05:21:29 CDT


On Thu, May 22, 2003 at 02:54:39PM -0400, Victor.Duchovnimorganstanley.com wrote:
> > Actually, now that I am sitting here trying to wrap my mind around this
> > thing (understanding how the process works is important to me!) I have
> > run into some questions:
> > What exactly is the difference between alias_maps and
> > virtual_alias_maps?
> Read ADDRESS_CLASS_README (Postfix 2.0.x) and VIRTUAL_README.

Thanks, that made it quite abit more clear.
I have one more problem though. I know that this is not 100% postfix
related, but I hope you guys can help anyway.
I want to use maildrop to deliver the messages but am having some
difficulties. I have read MAILDROP_README and have tried setting it up
as specified in there as well as with:

mailbox_command = /usr/bin/maildrop -d "$USER" -f "$SENDER" "$EXTENSION"

but they both seem to drop the mails in a black hole somewhere.
What is the difference between the $USER and $recipient variables?

If I try to start maildrop -d "userhost.mydomain.tld" it tells me that
the user is invalid and when I use "usermydomain.tld" it just stops and
waits (which I assume is correct behavior). Neither postfix nor maildrop
reports any errors:

May 23 12:05:32 host postfix/local[26335]: B760E7325C: to=<abomydomain.tld>,
orig_to=<abohost.mydomain.tld>, relay=local, delay=0, status=sent
("|/usr/bin/maildrop -d "$USER" -f "$SENDER" "$EXTENSION"")

I have setup maildropldap.cf as such:

hostname ldap.mydomain.tld
basedn ou=accounts,dc=mydomain,dc=tld
search_method mail
default_uidnumber 8
default_gidnumber 100
mail_attr mailAddress
uid_attr uid
maildir_attr mailMessageStore
homedirectory_attr homeDirectory

--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d-- s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41