Postfix Virtual Hosting With LDAP Backend With Dovecot As IMAP/POP3 Server On Ubuntu

Discussion in 'HOWTO-Related Questions' started by Zeek, Nov 12, 2008.

  1. Zeek

    Zeek New Member

    Hi,

    I'm trying to make this installation on a ubuntu 8.04.
    All the installation seems to be right as long as im not trying to send mails...

    This is what i get when i'm doing a : telnet 127.0.0.1 25

    Code:
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    220 example.domain.com ESMTP Postfix (Ubuntu)
    
    Then i'm typing : ehlo me
    Code:
    250-example.domain.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    
    And when im trying to send a mail with : mail from: [email protected]

    the console freeze and i'm getting this in /var/log/mail.log :

    Code:
    Nov 12 15:42:54 example postfix/smtpd[4794]: connect from localhost.localdomain[127.0.0.1]
    Nov 12 15:43:07 example postfix/trivial-rewrite[4797]: warning: dict_ldap_lookup: transport: Search base '' not found: 32: No such object
    Nov 12 15:43:07 example last message repeated 2 times
    Nov 12 15:43:07 example postfix/trivial-rewrite[4797]: fatal: ldap:transport(0,lock|fold_fix): table lookup problem
    Nov 12 15:43:08 example postfix/master[4287]: warning: process /usr/lib/postfix/trivial-rewrite pid 4797 exit status 1
    Nov 12 15:43:09 example postfix/trivial-rewrite[4798]: warning: dict_ldap_lookup: transport: Search base '' not found: 32: No such object
    Nov 12 15:43:09 example last message repeated 2 times
    Nov 12 15:43:09 example postfix/trivial-rewrite[4798]: fatal: ldap:transport(0,lock|fold_fix): table lookup problem
    Nov 12 15:43:10 example postfix/smtpd[4794]: warning: problem talking to service rewrite: Success
    Nov 12 15:43:10 example postfix/master[4287]: warning: process /usr/lib/postfix/trivial-rewrite pid 4798 exit status 1
    Nov 12 15:43:10 example postfix/master[4287]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
    
    Seems their is a problem with LDAP but i can't find it.

    Thanks by advance for all your help !
     
  2. Zeek

    Zeek New Member

    I'm manage to connect a user with thunderbird.
    I get this when thunderbird ask for password :

    Code:
    dovecot: Nov 25 12:03:04 Info: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=***.**.**.***, lip=***.**.**.***
    dovecot: Nov 25 12:03:05 Info: IMAP([email protected]): Effective uid=5000, gid=5000, home=
    dovecot: Nov 25 12:03:05 Info: IMAP([email protected]): maildir: data=/home/vmail/domains/domain.com/[email protected]
    dovecot: Nov 25 12:03:05 Info: IMAP([email protected]): maildir: root=/home/vmail/domains/domain.com/[email protected], index=/home/vmail/domains/domain.com/[email protected], control=, inbox=
    
    but when i try to send a mail i got an error telling me that i can't contact the server SMTP, but with no errors in the logs...
    I still get the same problem when i'm doing a

    Code:
    telnet localhost 25
    Code:
    Trying 127.0.0.1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    220 example.domain.com ESMTP Postfix (Ubuntu)
    Then it freeze if i try to do a mail from: ( if i just press enter i got "500 5.5.2 Error: bad syntax" , and i can quit normally ), and i have to restart postfix after that.

    Please, is there someone here who already try to make this work, with LDAP and Dovecot...
     
    Last edited: Nov 25, 2008

Share This Page