informatique:reseau:messagerie:dovecot

Ceci est une ancienne révision du document !


Configurer Postfix pour utiliser le LDA de Dovecot

  • Editer le fichier master.cf et ajouter :
    dovecot   unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -n -d ${recipient}
  • Le transport dovecot peut ensuite utiliser pour les boites virtuelles dans le fichier main.cf comme ceci :
    dovecot_destination_recipient_limit = 1
    virtual_transport = dovecot
On peut également utiliser transport_maps pour plus de souplesse et utiliser ainsi des backend LDAP / DB en retrounant de valeur comme dovecot:user@domain.

Configurer Postfix pour utiliser l'interface authentification de Dovecot pour du SASL

  • Dans la configuration de dovecot (dovecot.conf) :
      socket listen {
        master {
          # Master socket provides access to userdb information. It's typically
          # used to give Dovecot's local delivery agent access to userdb so it
          # can find mailbox locations.
          path = /var/run/dovecot/auth-master
          mode = 0600
          # Default user/group is the one who started dovecot-auth (root)
          user = vmail
          group = vmail
        }
        client {
          # The client socket is generally safe to export to everyone. Typical use
          # is to export it to your SMTP server so it can do SMTP AUTH lookups
          # using it.
          #path = /var/run/dovecot/auth-client
          path = /var/spool/postfix/private/auth
          mode = 0660
          user = postfix
          group = postfix
        }
      }
  • Dans la configuration de postfix (main.cf) :
    # Authentification
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    
    # Authentification seulement en ssl
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/dovecot/ssl/server.crt
    smtpd_tls_key_file = /etc/dovecot/ssl/server.key
    smtpd_use_tls = yes
  • informatique/reseau/messagerie/dovecot.1297428899.txt.gz
  • Dernière modification : 2011/06/21 12:48
  • (modification externe)