dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -n -d ${recipient}
dovecot_destination_recipient_limit = 1 virtual_transport = dovecot
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 } }
# 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
!include auth-master.conf.ext
htpasswd -s /etc/dovecot/master-users [master user]
chmod 440 /etc/dovecot/master-users chown dovecot: /etc/dovecot/master-users
Pour utiliser ce compte master il suffira de se connecter avec le login [user login]*[master login] et le mot de passe du compte master.