|
[SMS] - Superb Mini Server Project Support Forum |
 |
|
 |
View previous topic :: View next topic |
Author |
Message |
Cheikh Member
Joined: 11 Jun 2011 Posts: 25
|
Posted: Tue Nov 20, 2012 11:06 pm Post subject: Postfix virtual users in OpenLDAP |
|
|
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 |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Tue Nov 20, 2012 11:24 pm Post subject: |
|
|
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 |
|
|
|
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
|
 |
|
|