[TriLUG] LDAP and Mail routing.

Ben Simpson ben at silextech.com
Sat Aug 24 08:48:37 EDT 2002


If anyone is having or had trouble setting up sendmail (or any mail server 
that looks up mail routing in an LDAP directory) here is the schema that I 
used to get it to work.
The schema that is on sendmail's website didn't work for me.
I had to do this so that I can get the mail routing function on 
Directory-Administrator to work.

attributetype ( 2.16.840.1.113730.3.1.13
           NAME 'mailLocalAddress'
           DESC 'RFC 822 email address of this recipient'
           EQUALITY caseIgnoreIA5Match
           SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{256}'
       )
attributetype ( 2.16.840.1.113730.3.1.18
           NAME 'mailHost'
           DESC 'fully-qualified hostname of the MTA that is the final
               SMTP destination of messages to this recipient'
           EQUALITY caseIgnoreIA5Match
           SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{256}'
           SINGLE-VALUE
       )

attributetype ( 2.16.840.1.113730.3.1.47
           NAME 'mailRoutingAddress'
           DESC 'RFC 822 address to use when routing messages to
               the SMTP MTA of this recipient'
           EQUALITY caseIgnoreIA5Match
           SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{256}'
           SINGLE-VALUE
       )

objectClass ( 2.16.840.1.113730.3.2.3
           NAME 'inetLocalMailRecipient'
           SUP top
           AUXILIARY
           MAY ( mailLocalAddress $
               mailHost $ mailRoutingAddress
           )
       )

I had to enter a (3) on the end of the objectclass number but it seems to 
work.

Ben



More information about the TriLUG mailing list