Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Postfix virtual users in OpenLDAP
View previous topic :: View next topic  
Author Message
Cheikh
Member


Joined: 11 Jun 2011
Posts: 25

PostPosted: Tue Nov 20, 2012 11:06 pm    Post subject: Postfix virtual users in OpenLDAP Reply with quote

Hello,
I am trying to setup postfix with virtual users using sms.ldif in /etc/openldap as starting template. My problem right now is mail is not sent to virtual users due to postfix lookup error. I am not sure if the lookup error is on postfix configuration or saslauthd not looking up users in openLDAP. I have changed the rc.saslauthd scrip so that it uses ldap instead of the default shadow /usr/sbin/saslauthd -a ldap; I have also made changes to /etc/saslauthd.conf to reflect my directory. Also the following 3 postfix files are changes to reflect the directory
ldap-aliases.cf
ldap-maillists.cf
ldap-users.cf
postmap -q 'ldapuser' ldap:/etc/postfix/ldap-users.cf
ldapuser/

testsaslauthd -u ldapuser -p password
0: NO "authentication failed"

This is the error I am seeing in maillog. " postfix/local[2740]: E9F461404A0: to=<ldapuser@domain.net>, relay=local, delay=4771, delays=4771/0.05/0/0.07, dsn=4.0.0, status=deferred (user lookup error) "

Email sent to normal system account are delivered correctly.

Please assist.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue Nov 20, 2012 11:24 pm    Post subject: Reply with quote

Try to add/change in /etc/postfix/main.cf

Code:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, defer


Although testsaslauthd should be working, even if postfix don't.

Take a look at /etc/postfix/main.cf.egroupware for a similar setup.
Also if you install egroupware you will have postfix with ldap authentication, beware though, because it will overwrite your confs, make a backup first.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional