fatal dict_open error

Discussion in 'Server Operation' started by said76, Sep 12, 2011.

  1. said76

    said76 New Member

    Hi,

    I am getting the following error when trying to send emails out from my Ubuntu 10.04.

    postfix/smtpd[2847]: fatal: dict_open: unsupported dictionary type: ldap: Is the postfix-ldap package installed?
    postfix/master[2520]: warning: process /usr/lib/postfix/smtpd pid 2847 exit status 1
    postfix/master[2520]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

    What I have got running on my Ubuntu machine is Postfix, Dovecot, openLDAP and Squirrelmail.

    Here is my Postfix main.cf configuration
    biff = no
    append_dot_mydomain = no
    readme_directory = no
    smtpd_use_tls=yes

    myhostname = mailservercomp1.example.com
    alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-account.cf
    #alias_database = hash:/etc/aliases
    myorigin = example.com
    mydestination = mailservercomp1.example.com, localhost.localdomain, localhost
    relayhost =
    mynetworks = 127.0.0.0/8, 192.168.1.0/24
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = ipv4
    home_mailbox = Maildir/
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_security_options = noanonymous, noplaintext
    smtpd_sasl_tls_security_options = noanomymous
    smtpd_tls_auth_only = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_sender_login_mismatch
    smtpd_sasl_local_domain = mailservercomp1.example.com

    And what is in my ldap-account.cf is
    server_host = localhost
    port = 389
    version = 3
    search_base = ou=accounts,dc=example,dc=au
    scope = sub
    query_filter = (mail=%s)
    result_attribute = uid
    domain = mailservercomp1.example.com

    I do not know what else that may cause this error. Any help would be greatly appreciated.

    Thank you
     
  2. said76

    said76 New Member

    Hi again,

    I managed to get rid of the error by installing postfix-ldap package. However, I am getting another error with the following message

    Sep 12 16:40:34 mailservercomp1 postfix/smtpd[1844]: connect from nm7.bullet.mail.sp2.yahoo.com[98.139.91.77]
    Sep 12 16:40:35 mailservercomp1 postfix/smtpd[1844]: NOQUEUE: reject: RCPT from nm7.bullet.mail.sp2.yahoo.com[98.139.91.77]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<nm7.bullet.mail.sp2.yahoo.com>

    I thought this error to do with defining the alias_maps

    alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-account.cf

    Thank you very much in advance
     
  3. Mark_NL

    Mark_NL New Member

    That should work if you've defined $alias_maps in local_recipient_maps

    does a manual lookup in ldap work correctly?
     
  4. said76

    said76 New Member

    Thanks Mark_NL,

    I tried to define $alias_maps in local_recipient_maps as shown below (but I was not sure if I did it right - as I am still getting my head around the linux system)

    in main.cf,

    alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-account.cf
    myhostname = mailservercomp1.example.com
    alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-account.cf
    myorigin = example.com
    mydestination = mailservercomp1.example.com, localhost.localdomain, localhost
    local_recipient_maps = $alias_maps

    Then, I tried to do a manual lookup in ldap by typing into the terminal

    $ ldapsearch -xLLL -b "dc=admin,dc=example,dc=au" uid=mlee sn givenName cn

    It did return as follows

    dn: uid=mlee,ou=accounts,dc=example,dc=au
    cn: Michael Lee
    sn: Lee
    givenName: Michael

    Anyway, I tried the above by adding the local_recipient_maps to main.cf, restarted the postfix, and still got the same error message Recipient address rejected: User unknown in local recipient table.

    Many thanks
     
  5. Mark_NL

    Mark_NL New Member

Share This Page