Problem with Postfix and ldap

This is a discussion on Problem with Postfix and ldap within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hello All, Having an issue with postfix using LDAP. Running postfix 2.0.18 and openldap 2.2.4 my ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2004
Jim Greene
 
Posts: n/a
Default Problem with Postfix and ldap

Hello All,
Having an issue with postfix using LDAP. Running postfix 2.0.18 and
openldap 2.2.4
my Main.cf is below:

readme_directory = no
myorigin = domain.net
myhostname = host.domain.net
mynetworks = x.x.x.x/23
biff = no
smtpd_banner = host.domain.net ESMTP
message_size_limit = 10000000
local_transport = virtual
virtual_mailbox_base = /
virtual_mailbox_maps = ldap:ldapvirtual
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_minimum_uid = 500
virtual_mailbox_limit = 0
ldapvirtual_server_host = localhost
ldapvirtual_server_port = 389
ldapvirtual_bind = yes
ldapvirtual_bind_dn = cn=Manager,dc=domain,dc=net
ldapvirtual_bind_pw = password
ldapvirtual_search_base = ou=isp,dc=domain,dc=net
ldapvirtual_query_filter = (mail=%s)
ldapvirtual_result_attribute = mailMessageStore

mydestination = $myhostname, localhost.$mydomain, localhost.localdomain,
ldap:ac
ceptdomains
acceptdomains_server_host = localhost
acceptdomains_server_port = 389
acceptdomains_bind = yes
acceptdomains_bind_dn = cn=Manager,dc=domain,dc=net
acceptdomains_bind_pw = password
acceptdomains_search_base = ou=postfix,dc=domain,dc=net
acceptdomains_query_filter = (associatedDomain=*)
acceptdomains_result_attribute = associatedDomain

Below is a dump of my ldap server:


version: 1
dn: dc=domain,dc=net
objectClass: top

dn: ou=isp,dc=domain,dc=net
objectClass: organizationalUnit
ou: isp
description: mail hosting root

dn: domainName=test.net,ou=isp,dc=domain,dc=net
objectClass: top
objectClass: ispDomain
domainName: test.net
mailboxLimit: 10
mailQuota: 100MB
accountStatus: enabled

dn: uid=havoc,domainName=test.net,ou=isp,dc=domain,dc= net
objectClass: top
objectClass: ispAccount
uid: havoc
userPassword: {CRYPT}bah...
uidNumber: 1223
gidNumber: 100
homeDirectory: /usr/mail/test.net/jwgreene/
loginShell: /bin/false
mail: havoc@test.net
mailAlternateAddress: snoopy@yahoo.com
mailMessageStore: /usr/mail/test.net/jwgreene/
mailForwardingAddress: undefined
mailQuota: 10MB
mailAlias: havoc2@test.net
attachedMailBoxes: havoc3
accountStatus: enabled

dn: ou=postfix,dc=domain,dc=net
ou: postfix
objectClass: organizationalUnit

dn: dc=net,ou=postfix,dc=domain,dc=net
associatedDomain: test.net
dc: net
objectClass: dNSDomain
objectClass: domainRelatedObject

Basically I send an email to havoc@test.net and I get the following in my
logs...

Feb 3 09:23:08 host postfix/smtpd[2782]: connect from domain.net[x.x.x.x]
Feb 3 09:23:08 host postfix/smtpd[2782]: BBE7524ADA5:
client=blah.net[x.x.x.x]
Feb 3 09:23:08 host postfix/trivial-rewrite[2785]: warning:
dict_ldap_lookup: Fixed query_filter (associatedDomain=*) is probably
useless
Feb 3 09:23:08 host postfix/smtpd[2782]: warning: dict_ldap_lookup: Fixed
query_filter (associatedDomain=*) is probably useless
Feb 3 09:23:08 host last message repeated 3 times
Feb 3 09:23:08 host postfix/smtpd[2782]: BBE7524ADA5: reject: RCPT from
domain.net[x.x.x.x]: 450 <havoc@test.net>: User unknown in local recipient
table; from=<jwgreene> to=<havoc@test.net> proto=ESMTP helo=<domain.net>
Feb 3 09:23:09 host postfix/smtpd[2782]: disconnect from
domain.net[x.x.x.x]

I know I don't have maildrop or anything configured yet, but I still should
not get that error. Any thoughts ?
Thanks
Jim
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0