Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: [SOLVED] Sendmail Relay Question (address check against Zimbra)

  1. #1
    Robert Mortimer is offline Active Member
    Join Date
    Apr 2006
    Posts
    31
    Rep Power
    9

    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

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

  3. #3
    Robert Mortimer is offline Active Member
    Join Date
    Apr 2006
    Posts
    31
    Rep Power
    9

    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

  4. #4
    Robert Mortimer is offline Active Member
    Join Date
    Apr 2006
    Posts
    31
    Rep Power
    9

    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?

  5. #5
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    How did you restart LDAP ? Just ensure that your modification is persistent across restarts as most of the configuration gets re-written.

  6. #6
    Robert Mortimer is offline Active Member
    Join Date
    Apr 2006
    Posts
    31
    Rep Power
    9

    Default

    Re-written from where?
    Where is the template file?
    is there a zmconfig option to add the parameter?

  7. #7
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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.

  8. #8
    Robert Mortimer is offline Active Member
    Join Date
    Apr 2006
    Posts
    31
    Rep Power
    9

    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

  9. #9
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Last edited by uxbod; 04-14-2008 at 06:43 AM.

  10. #10
    Robert Mortimer is offline Active Member
    Join Date
    Apr 2006
    Posts
    31
    Rep Power
    9

    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. QUE Failure
    By tbullock in forum Administrators
    Replies: 31
    Last Post: 07-30-2008, 12:17 PM
  2. zmperditionctl start asking for password
    By k7sle in forum Administrators
    Replies: 32
    Last Post: 02-20-2008, 11:13 AM
  3. Replies: 31
    Last Post: 12-15-2007, 09:05 PM
  4. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 03:48 PM
  5. FC3 Install and no zimbra ?
    By aws in forum Installation
    Replies: 10
    Last Post: 10-09-2005, 04:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •