LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Please Help : Sendmail/Cyrus/LDAP howto ?? (https://www.linuxquestions.org/questions/linux-server-73/please-help-sendmail-cyrus-ldap-howto-600768/)

bipinkdas 11-19-2007 03:42 AM

Please Help : Sendmail/Cyrus/LDAP howto ??
 
Dear Team,

One of my client needs to setup a mail server with the following components

1.Sendmail --->Sending mail
2.Cyrus-IMAP --->POP3/IMAP
3.LDAP --->AccessDB,Virtuser,User authentication
4.Squirrelmail --->Webmail
5.Saslauth -->Authentication.

I had made a wild search on google,unfortunately didnt found a good howto. Can anybody come across the same environment,if yes please share your experience. Thanks in advance.

acid_kewpie 11-19-2007 04:27 AM

we can't recite documentation on such a large area, just break it down piece by piece and ask if you have specific problems. start with ldap maybe, an ldap instance has nothing to do with email services at all in terms of making it run. once it's up you can then use it for whatever you want. also sendmail (might prefer postfix or something else nicer to configure) will deliver mail to a file, and Cyrus will read mail from a file. they have nothing to do with each other, only the common files in between. so get an smtp server running as your next step...

bipinkdas 11-19-2007 10:29 PM

Yes..Starting with sendmail
 
Dear Sir,
I had made the following changes in the sendmail.mc file for authenticating with LDAP

------------------------------------------------------------------------
FEATURE(`ldap_routing')dnl
LDAPROUTE_DOMAIN(`xxx.xx.xx.xxx')dnl
define(confLDAP_DEFAULT_SPEC,`-h xxx.xx.xx.xxx -b "dc=example,dc=com" -d "cn=example,dc=com,dc=org" -P /etc/mail/ldap')
FEATURE(`access_db', `LDAP')
FEATURE(`virtusertable', `LDAP')
-------------------------------------------------------------------------
After that I had created the sendmail.cf and tried to start the sendmail,but it gives the following error

--------------------------------------------------------------------------
Warning: Option: LDAPDefaultSpec requires LDAP support (-DLDAPMAP)
554 5.0.0 /etc/mail/sendmail.cf: line 174: readcf: map ldapmh: class ldap not available
554 5.0.0 /etc/mail/sendmail.cf: line 176: readcf: map ldapmra: class ldap not available
554 5.0.0 /etc/mail/sendmail.cf: line 179: readcf: map access: class ldap not available
554 5.0.0 /etc/mail/sendmail.cf: line 182: readcf: map virtuser: class ldap not available
--------------------------------------------------------------------------

Here I am stuck first time,what does it mean ?I think if the sendmail get up,we will be in the right track.

acid_kewpie 11-20-2007 02:05 AM

looks like your version of sendmail isn't built with ldap support, either recompile it, find a binary version with support, or use an alternative to sendmail.

bipinkdas 11-20-2007 02:43 AM

Thanks
 
Dear List,
I did a blunder,compile sendmail without LDAP. I had recompile it again. Now SMTP daemon is UP.


All times are GMT -5. The time now is 03:54 PM.