Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

od connection failing and crashing postmap

Reply to Post Add a New Topic
UserPost

1:23 pm
April 25, 2011


scott_the_musician

Melbourne, Australia

Member

posts 5

Post edited 1:25 pm – April 25, 2011 by scott_the_musician


First things first – your site is outstanding! Like many others, I'm finding this comprehensive guide to be *very* well thought out, and easy to follow. I am certain that the directors (and users) at my workplace will feel the same way. Great stuff!

Secondly, I'm essentially having some trouble connecting my postfix and to my LDAP server. My LDAP system is running on Mac OS X Workgroup manager, and since this is built on OpenLDAP v3, I imagine it would be fairly straightforward.

Here's three areas that aren't functioning properly:
a) firstly, when I run
telnet localhost smtp
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

…. and then it just sits there (i used to get the "220 mail.mycompany.com.au ESMTP Postfix" line, but not anymore. Typing commands does nothing, all i can do is quit Telnet.

b) telnet localhost imap

Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready.
. login <network username> <network password>
. NO Authentication failed.

c) postmap -q user@mycompany.com.au ldap:/etc/postfix/ldap-users.cf
Segmentation Fault

I know that OpenDirectory is functioning fine on the server end (other Mac clients are bound to it).. and I am sure that my DNS + hosts are setup and functioning OK. If it helps, my mac clients have not needed any usernames/passwords to bind themselves to the OpenDirectory server in the past.

My /etc/postfix/ldap-users.cf looks like this:

server_host = fileserv.mycompany.com.au
search_base = dc=fileserv,dc=mycompany,dc=com,dc=au
version = 3
query_filter = (%(objectclass=person)(mail=%s))
result_attribute = uid
result_format = %s/Maildir/

(for the record, i've also tried result_attribute = UniqueID (- this is the name of the OSX OpenDirectory field – but to no avail. I've also tried adding CN=users to search_base).

/etc/dovecot-ldap.conf:
 
hosts = fileserv.mycompany.com.au
base = dc=fileserv,dc=mycompany,dc=com,dc=au
ldap_version = 3
pass_filter = (&(objectclass=person)(UniqueID=%u))

Any thoughts would be great?

 

" System Administrators are like werewolves. They may
look outwardly ordinary, but are incredibly strong, mostly invulnerable
to stuff that would kill regular people — and prone to strange
transformations during a moon "outage". "

12:24 pm
April 26, 2011


consultant

Admin

posts 353

Hi Scott,

 

Haven't tried OpenLDAP in Mac OSX, so my only suggestion is to try the verbose output option in postmap to give you more clues to work on.

 

postmap -q user@mycompany.com.au ldap:/etc/postfix/ldap-users.cf

3:24 am
May 4, 2011


scott_the_musician

Melbourne, Australia

Member

posts 5

Hi Consultant,

Thanks for the reply! I actually became victom of a hard disk crash last week, whilst playing with this. I'm now in the process of rebuilding and I'll let you know how I go with the OpenLDAP stuff when i get to it.

Thanks again!

-scott-

 

" System Administrators are like werewolves. They may
look outwardly ordinary, but are incredibly strong, mostly invulnerable
to stuff that would kill regular people — and prone to strange
transformations during a moon "outage". "

Reply to Post

Reply to Topic:
od connection failing and crashing postmap

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 2
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 343
Posts: 1062

Membership:

There are 966 Members
There have been 91 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 46
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: waveney, achal, niesul14, hesaum, sreevinodss, nasonov

Administrators: consultant (353 Posts)