[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix, dovecot et LDAP



Bonsoir,
Je n'utilise pas ldap mais mysql pour mes vusers.
Mais, le probleme est que postfix ne trouve pas l'utilisateur... on dirait qu'il le cherche en local :s
Je lance la piste alors :D

GL


Le 18 avr. 2010 à 22:41, David H. a écrit :

> Bonjour tout le monde :)
> 
> J'essaie actuellement de mettre en place un serveur mail avec postfix et dovecot, le tout en utilisant une authentification LDAP.
> Cependant, je rencontre quelques problemes :
> 
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[15176]: [ID 197553 mail.info] connect from Atlantis.cpt.appartland.eu[192.168.1.100]
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/master[14369]: [ID 197553 mail.info] reload -- version 2.6.5, configuration /usr/pkg/etc/postfix
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[15176]: [ID 197553 mail.info] 378328672: client=Atlantis.cpt.appartland.eu[192.168.1.100], sasl_method=PLAIN, sasl_username=bougie@appartland.eu
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 197553 mail.info] 378328672: message-id=<4BCB39D5.2030901@appartland.eu>
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 mail.info] 378328672: from=<bougie@appartland.eu>, size=610, nrcpt=1 (queue active)
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[15176]: [ID 197553 mail.info] disconnect from Atlantis.cpt.appartland.eu[192.168.1.100]
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/local[15322]: [ID 197553 mail.info] 378328672: to=<bougie@appartland.eu>, relay=local, delay=0.06, delays=0.03/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "bougie")
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 197553 mail.info] 437148674: message-id=<20100418165649.437148674@smtp.appartland.eu>
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/bounce[15323]: [ID 197553 mail.info] 378328672: sender non-delivery notification: 437148674
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 mail.info] 437148674: from=<>, size=2403, nrcpt=1 (queue active)
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 mail.info] 378328672: removed
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/local[15322]: [ID 197553 mail.info] 437148674: to=<bougie@appartland.eu>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (unknown user: "bougie")
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 mail.info] 437148674: removed
> 
> L'authentification sur le serveur IMAP et STMP fonctionne très bien (testée avec thunderbird 3 et en telnet).
> 
> Auriez vous une idée de la cause du probleme ?
> 
> Ci après, mes fichiers de configurations :
> main.cf
> inet_protocols = all
> inet_interfaces = all
> biff = no
> mail_spool_directory = /var/spool/postfix/
> myhostname = smtp.appartland.eu
> mydomain = appartland.eu
> mydestination = localhost.$mydomain,localhost,$mydomain,$myhostname
> mynetworks = 10.69.0.0/16 192.168.1.0/24 127.0.0.7
> mynetworks_style = subnet
> append_dot_mydomain = no
> append_at_myorigin = yes
> alias_maps = hash:/etc/mail/aliases
> alias_database = hash:/etc/mail/aliases
> recipient_delimiter = +
> 
> mail_transport = dovecot
> local_recipient = virtual
> local_recipient_maps = $alias_maps $virtual_mailbox_maps
> unknown_local_recipient_reject_code = 550
> 
> virtual_mailbox_base = /srv/vmail
> virtual_mailbox_maps = ldap:/usr/pkg/etc/postfix/virtual_mailboxes.cf
> virtual_alias_maps = ldap:/usr/pkg/etc/postfix/virtual_alias.cf
> virtual_minimum_uid = 102
> virtual_uid_maps = static:102
> virtual_gid_maps = static:103
> virtual_transport = dovecot
> dovecot_destination_recipient_limit = 1
> 
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_type = dovecot
> smtpd_sasl_path = private/auth
> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
> smtpd_use_tls = no
> 
> /usr/pkg/etc/postfix/virtual_mailboxes.cf
> server_host = ldap.appartland.eu
> server_port = 389
> search_base = ou=people,dc=appartland,dc=eu
> query_filter = (&(objectClass=InetOrgPerson)(mail=%s))
> result_attribute = mail
> bind = yes
> bind_dn = cn=admin
> bind_pw = monmdp
> version = 3
> 
> /usr/pkg/etc/postfix/virtual_alias.cf
> server_host = ldap.appartland.eu
> server_port = 389
> search_base = ou=people,dc=appartland,dc=eu
> query_filter = (&(objectClass=InetOrgPerson)(mail=%s))
> result_attribute = mail
> bind = yes
> bind_dn = cn=admin
> bind_pw = monmdp
> version = 3
> 
> /usr/pkg/etc/dovecot/dovecot.conf
> listen = *
> ssl = no
> protocols = imap
> mail_uid = postfix
> mail_gid = postfix
> first_valid_uid = 102
> first_valid_gid = 103
> 
> login_max_processes_count=28
> max_mail_processes=18
> 
> login_greeting = Dovecot IMAP Server ready.
> mail_location = maildir:/srv/vmail/%u/Maildir
> disable_plaintext_auth=no
> 
> log_timestamp = "%Y-%m-%d %H:%M:%S "
> log_path = /var/log/dovecot.log
> info_log_path = /var/log/mail.log
> 
> protocol imap {
> }
> 
> protocol lda {
> postmaster_address = postmaster@example.tld
> auth_socket_path = /var/run/dovecot/auth-master
> log_path = /var/log/dovecot-deliver.log
> info_log_path = /var/log/dovecot-deliver.log
> }
> 
> auth default {
> mechanisms = plain login
> 
> passdb ldap {
> args = /usr/pkg/etc/dovecot/dovecot-ldap_passdb.conf
> }
> userdb ldap {
> args = /usr/pkg/etc/dovecot/dovecot-ldap_passdb.conf
> }
> socket listen {
> master {
> path = /var/run/dovecot/auth-master
> mode = 0660
> user = postfix
> group = postfix
> }
> client {
> path = /var/spool/postfix/private/auth
> mode = 0660
> user = postfix
> group = postfix
> }
> }
> }
> 
> /usr/pkg/etc/dovecot/dovecot-ldap_passdb.conf
> hosts = ldap.appartland.eu
> auth_bind = yes
> ldap_version = 3
> base = ou=people,dc=appartland,dc=eu
> user_attrs = mailbox=home
> user_filter = (&(objectClass=InetOrgPerson)(mail=%u))
> pass_attrs = mail=user,userPassword=password
> pass_filter = (&(objectClass=InetOrgPerson)(mail=%u))
> 
> master.cf
> dovecot unix - n n - - pipe
> flags=DRhu user=postfix:postfix argv=/usr/pkg/libexec/dovecot/deliver -f ${sender} -d $(recipient)
> 
> Merci d'avance pour votre aide.


Reply to: