Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-11-2008, 07:15 AM
Active Member
 
Posts: 31
Default [SOLVED] Sendmail Relay Question (address check against Zimbra)

I have set up a Sendmail SMTP machine as our fail-over mail server. When our ADSL is down it now collects email for our domain and delivers it forward when the ADSL is up again.

I can replicate the Zimbra ldap to the sendmail machine. Anyone got a good HOW to for checking valid addresses against LDAP on a sendmail relay?

Rob
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 10:50 PM
Moderator
 
Posts: 7,911
Default

SendMail and the LDAP Protocol
__________________
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 03:03 AM
Active Member
 
Posts: 31
Default

Mere mortals edit the /etc/mail/sendmail.mc and let the macro rebuild sendmail.cf. Editing sendmail.cf is "Hard Core".

At the moment I am looking at FEATURE(`ldap_routing')

The feature can be used to route mail on an individual basis based on LDAP lookup. The example lookup is as follows.

ldap -1 -T<TMPF> -v mailRoutingAddress
-k (&(objectClass=inetLocalMailRecipient)
(mailLocalAddress=%0))

This returns the destination mail server based on a match in mailLocalAddress to return mailRoutingAddress . Obviously this will have to be amended to match the Zimbra shema:-

Maybe

ldap -1 -T<TMPF> -v zimbraMailHost
-k (&(objectClass=organizationalPerson)
(mail=%0))

Will keep list informed of progeress
Reply With Quote
  #4 (permalink)  
Old 04-14-2008, 06:06 AM
Active Member
 
Posts: 31
Default

I'm about there but I need to get an LDAP V2 bind to Zimbra in order to allow sendmail to connect. I have tried adding "allow bind_v2" to slapd.conf in /opt/zimbra/openldap/etc/openldap but no joy so far. Any ideas?
Reply With Quote
  #5 (permalink)  
Old 04-14-2008, 06:09 AM
Moderator
 
Posts: 7,911
Default

How did you restart LDAP ? Just ensure that your modification is persistent across restarts as most of the configuration gets re-written.
__________________
Reply With Quote
  #6 (permalink)  
Old 04-14-2008, 06:41 AM
Active Member
 
Posts: 31
Default

Re-written from where?
Where is the template file?
is there a zmconfig option to add the parameter?
Reply With Quote
  #7 (permalink)  
Old 04-14-2008, 06:51 AM
Moderator
 
Posts: 7,911
Default

try
Code:
zmlocalconfig | grep -i ldap
zmlocalconfig | grep -i slapd
it may be that it has not been over-written so just check your slapd.conf after a restart to ensure your mods are still present.
__________________
Reply With Quote
  #8 (permalink)  
Old 04-14-2008, 07:38 AM
Active Member
 
Posts: 31
Default

Nothing of use in

zmlocalconfig | grep -i ldap
zmlocalconfig | grep -i slapd

It upsets my users when I re-start the server during the day so I will try a restart tonight.

Is there an easy way to just re-start the LDAP server
Reply With Quote
  #9 (permalink)  
Old 04-14-2008, 07:41 AM
Moderator
 
Posts: 7,911
Default

Zimbra CLI Command List - Zimbra :: Wiki

Code:
su - zimbra
ldap stop ; ldap start
Also, http://www.zimbra.com/forums/announc...r-profile.html please
__________________

Last edited by uxbod; 04-14-2008 at 07:43 AM..
Reply With Quote
  #10 (permalink)  
Old 04-14-2008, 08:57 AM
Active Member
 
Posts: 31
Default

I have "allow bind_v2" in /opt/zimbra/openldap/etc/openldap/slapd.conf
After a re-start of the LDAP it is still there but I can not do a LDAP version 2 bind.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.