Postfix, dovecot et LDAP

Le
David H.
--00151747bf7e6cee80048488dfbd
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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: "bo=
ugie")
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_authenticat=
ed,
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.

--00151747bf7e6cee80048488dfbd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>Bonjour tout le monde :)<br></div><div><br></div><div>J&#39;essaie act=
uellement de mettre en place un serveur mail avec postfix et dovecot, le to=
ut en utilisant une authentification LDAP.</div><div>Cependant, je rencontr=
e quelques problemes :</div>
<div><br></div><div>Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[151=
76]: [ID 197553 <a href="http://mail.info">mail.info</a>] connect from <a=
href="http://Atlantis.cpt.appartland.eu">Atlantis.cpt.appartland.eu</a>[=
192.168.1.100]<br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/master[14369]: [ID 197553 <a =
href="http://mail.info">mail.info</a>] reload -- version 2.6.5, configura=
tion /usr/pkg/etc/postfix<br>Apr 18 18:56:49 [10.69.33.18.183.169] postfix/=
smtpd[15176]: [ID 197553 <a href="http://mail.info">mail.info</a>] 378328=
672: client=<a href="http://Atlantis.cpt.appartland.eu">Atlantis.cpt.ap=
partland.eu</a>[192.168.1.100], sasl_method=PLAIN, sasl_username=<a hre=
f="mailto:bougie@appartland.eu">bougie@appartland.eu</a><br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 197553 <a=
href="http://mail.info">mail.info</a>] 378328672: message-id=&lt;<a hr=
ef="mailto:4BCB39D5.2030901@appartland.eu">4BCB39D5.2030901@appartland.eu=
</a>&gt;<br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 <a hr=
ef="http://mail.info">mail.info</a>] 378328672: from=&lt;<a href="mai=
lto:bougie@appartland.eu">bougie@appartland.eu</a>&gt;, size=610, nrcpt=
=1 (queue active)<br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[15176]: [ID 197553 <a h=
ref="http://mail.info">mail.info</a>] disconnect from <a href="http://A=
tlantis.cpt.appartland.eu">Atlantis.cpt.appartland.eu</a>[192.168.1.100]<br=
>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/local[15322]: [ID 197553 <a h=
ref="http://mail.info">mail.info</a>] 378328672: to=&lt;<a href="mail=
to:bougie@appartland.eu">bougie@appartland.eu</a>&gt;, relay=local, delay=
=0.06, delays=0.03/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown =
user: &quot;bougie&quot;)<br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 197553 <a=
href="http://mail.info">mail.info</a>] 437148674: message-id=&lt;<a hr=
ef="mailto:20100418165649.437148674@smtp.appartland.eu">20100418165649.43=
7148674@smtp.appartland.eu</a>&gt;<br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/bounce[15323]: [ID 197553 <a =
href="http://mail.info">mail.info</a>] 378328672: sender non-delivery not=
ification: 437148674<br>Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[=
15319]: [ID 197553 <a href="http://mail.info">mail.info</a>] 437148674: f=
rom=&lt;&gt;, size=2403, nrcpt=1 (queue active)<br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 <a hr=
ef="http://mail.info">mail.info</a>] 378328672: removed<br>Apr 18 18:56:4=
9 [10.69.33.18.183.169] postfix/local[15322]: [ID 197553 <a href="http://=
mail.info">mail.info</a>] 437148674: to=&lt;<a href="mailto:bougie@appa=
rtland.eu">bougie@appartland.eu</a>&gt;, relay=local, delay=0.01, delay=
s=0.01/0/0/0, dsn=5.1.1, status=bounced (<strong>unknown user: &quot;=
bougie&quot;</strong>)<br>
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 <a hr=
ef="http://mail.info">mail.info</a>] 437148674: removed<br></div><div><br=
></div><div>L&#39;authentification sur le serveur IMAP et STMP fonctionne t=
rès bien (testée avec thunderbird 3 et en telnet).</div>
<div><br></div><div>Auriez vous une idée de la cause du probleme ?</div><=
div><br></div><div>Ci après, mes fichiers de configurations :</div><div><=
strong><a href="http://main.cf">main.cf</a></strong></div><div>inet_proto=
cols = all<br>
inet_interfaces = all<br>biff = no<br>mail_spool_directory = /var/spo=
ol/postfix/<br>myhostname = <a href="http://smtp.appartland.eu">smtp.ap=
partland.eu</a><br>mydomain = <a href="http://appartland.eu">appartland=
.eu</a><br>
mydestination = localhost.$mydomain,localhost,$mydomain,$myhostname<br>my=
networks = <a href="http://10.69.0.0/16">10.69.0.0/16</a> <a href="ht=
tp://192.168.1.0/24">192.168.1.0/24</a> 127.0.0.7<br>mynetworks_style = s=
ubnet<br>
append_dot_mydomain = no<br>append_at_myorigin = yes<br>alias_maps = =
hash:/etc/mail/aliases<br>alias_database = hash:/etc/mail/aliases<br>reci=
pient_delimiter = +<br><br>mail_transport = dovecot<br>local_recipient =
= virtual<br>
local_recipient_maps = $alias_maps $virtual_mailbox_maps<br>unknown_local=
_recipient_reject_code = 550<br><br>virtual_mailbox_base = /srv/vmail<b=
r>virtual_mailbox_maps = ldap:/usr/pkg/etc/postfix/<a href="http://virt=
ual_mailboxes.cf">virtual_mailboxes.cf</a><br>
virtual_alias_maps = ldap:/usr/pkg/etc/postfix/<a href="http://virtual_=
alias.cf">virtual_alias.cf</a><br>virtual_minimum_uid = 102<br>virtual_ui=
d_maps = static:102<br>virtual_gid_maps = static:103<br>virtual_transpo=
rt = dovecot<br>
dovecot_destination_recipient_limit = 1<br><br>smtpd_sasl_auth_enable ==
yes<br>smtpd_sasl_type = dovecot<br>smtpd_sasl_path = private/auth<br>=
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticat=
ed, reject_unauth_destination<br>
smtpd_use_tls = no<br></div><div><br></div><div> <strong>/usr/pkg/etc/pos=
tfix/<a href="http://virtual_mailboxes.cf">virtual_mailboxes.cf</a></stro=
ng><br>server_host = <a href="http://ldap.appartland.eu">ldap.appartlan=
d.eu</a><br>
server_port = 389<br>search_base = ou=people,dc=appartland,dc=eu<=
br>query_filter = (&amp;(objectClass=InetOrgPerson)(mail=%s))<br>resu=
lt_attribute = mail<br>bind = yes<br>bind_dn = cn=admin<br>bind_pw =
= monmdp<br>version = 3<br>
</div><div><br></div><div><strong>/usr/pkg/etc/postfix/<a href="http://vi=
rtual_alias.cf">virtual_alias.cf</a></strong><br>server_host = <a href==
"http://ldap.appartland.eu">ldap.appartland.eu</a><br>server_port = 389<b=
r>search_base = ou=people,dc=appartland,dc=eu<br>
query_filter = (&amp;(objectClass=InetOrgPerson)(mail=%s))<br>result_=
attribute = mail<br>bind = yes<br>bind_dn = cn=admin<br>bind_pw ==
monmdp<br>version = 3<br></div><div><br></div><div><strong>/usr/pkg/etc/=
dovecot/dovecot.conf</strong><br>
listen = *<br>ssl = no<br>protocols = imap<br>mail_uid = postfix<br=
>mail_gid = postfix<br>first_valid_uid = 102<br>first_valid_gid = 103=
<br><br>login_max_processes_count=28<br>max_mail_processes=18<br><br>lo=
gin_greeting = Dovecot IMAP Server ready.<br>
mail_location = maildir:/srv/vmail/%u/Maildir<br>disable_plaintext_auth=
=no<br><br>log_timestamp = &quot;%Y-%m-%d %H:%M:%S &quot;<br>log_path =
= /var/log/dovecot.log<br>info_log_path = /var/log/mail.log<br><br>prot=
ocol imap {<br>
}<br><br>protocol lda {<br> postmaster_address = postmaster@example.tl=
d<br> auth_socket_path = /var/run/dovecot/auth-master<br> log_path =
= /var/log/dovecot-deliver.log<br> info_log_path = /var/log/dovecot-=
deliver.log<br>
}<br><br>auth default {<br> mechanisms = plain login<br><br> pass=
db ldap {<br> args = /usr/pkg/etc/dovecot/dovecot-ldap_passdb.con=
f<br> }<br> userdb ldap {<br> args = /usr/pkg/etc/dovecot=
/dovecot-ldap_passdb.conf<br>
}<br> socket listen {<br> master {<br> path =
= /var/run/dovecot/auth-master<br> mode = 0660<br> =
user = postfix<br> group = postfix<br> }<br> =
client {<br>
path = /var/spool/postfix/private/auth<br> mode =
= 0660<br> user = postfix<br> group = postfix<=
br> }<br> }<br>}<br></div><div><br></div><div><strong>/usr/pkg/=
etc/dovecot/dovecot-ldap_passdb.conf</strong><br>
hosts = <a href="http://ldap.appartland.eu">ldap.appartland.eu</a><br>a=
uth_bind = yes<br>ldap_version = 3<br>base = ou=people,dc=appartl=
and,dc=eu<br>user_attrs = mailbox=home<br>user_filter = (&amp;(obje=
ctClass=InetOrgPerson)(mail=%u))<br>
pass_attrs = mail=user,userPassword=password<br>pass_filter = (&amp=
;(objectClass=InetOrgPerson)(mail=%u))<br></div><div><br></div><div><st=
rong><a href="http://master.cf">master.cf</a></strong></div><div>dovecot =
unix - n n - - pipe<br>
flags=DRhu user=postfix:postfix argv=/usr/pkg/libexec/dovecot/deliv=
er -f ${sender} -d $(recipient)<br></div><div><br></div><div>Merci d&#39;av=
ance pour votre aide.</div>

--00151747bf7e6cee80048488dfbd--

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org
Archive: http://lists.debian.org/m2la0ab79641004181341y89b6bc47ieba7aa70bdd5fda1@mail.gmail.com
Vidéos High-Tech et Jeu Vidéo
Téléchargements
Vos réponses
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
Florian BLANC
Le #21588641
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=
Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 197553 mail.info] 378328672: message-id Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 mail.info] 378328672: from 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 Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 197553 mail.info] 437148674: message-id 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$03, 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 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­min
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­min
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(
max_mail_processes

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 =
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.



--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
David H.
Le #21588991
--0023545bd638a0df9704849109f2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Je me demande surtout pourquoi c'est l'utilisateur "bougie" qu'il ne trouve
pas alors que partout ou je me log l'utilisateur c'est "bougie*@
appartland.eu*".

2010/4/19 Florian BLANC
Bonsoir,
Je n'utilise pas ldap mais mysql pour mes vusers.
Mais, le probleme est que postfix ne trouve pas l'utilisateur... on dirai t
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 e t
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=
> Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 19755 3
mail.info] 378328672: message-id > Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553
mail.info] 378328672: from (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 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 19755 3
mail.info] 437148674: message-id=<

> 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$03, 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 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­min
> 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­min
> 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(
> max_mail_processes
>
> 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 =
> 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/del iver -f
${sender} -d $(recipient)
>
> Merci d'avance pour votre aide.

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive:
http://lists.debian.org/





--0023545bd638a0df9704849109f2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Je me demande surtout pourquoi c&#39;est l&#39;utilisateur &quot;bougie&quo t; qu&#39;il ne trouve pas alors que partout ou je me log l&#39;utilisateur c&#39;est &quot;bougie Bonsoir,<br>
Je n&#39;utilise pas ldap mais mysql pour mes vusers.<br>
Mais, le probleme est que postfix ne trouve pas l&#39;utilisateur... on dir ait qu&#39;il le cherche en local :s<br>
Je lance la piste alors :D<br>
<br>
GL<br>
<br>
<br>
Le 18 avr. 2010 à 22:41, David H. a écrit :<br>
<div><div class="h5"><br>
&gt; Bonjour tout le monde :)<br>
&gt;<br>
&gt; J&#39;essaie actuellement de mettre en place un serveur mail avec post fix et dovecot, le tout en utilisant une authentification LDAP.<br>
&gt; Cependant, je rencontre quelques problemes :<br>
&gt;<br>
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[15176]: [ID 197553
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/master[14369]: [ID 19755 3 &gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[15176]: [ID 197553
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 1975 53
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/smtpd[15176]: [ID 197553
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/local[15322]: [ID 197553
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/cleanup[15320]: [ID 1975 53
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/bounce[15323]: [ID 19755 3 &gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 &gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 &gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/local[15322]: [ID 197553
&gt; Apr 18 18:56:49 [10.69.33.18.183.169] postfix/qmgr[15319]: [ID 197553 &gt;<br>
&gt; L&#39;authentification sur le serveur IMAP et STMP fonctionne très b ien (testée avec thunderbird 3 et en telnet).<br>
&gt;<br>
&gt; Auriez vous une idée de la cause du probleme ?<br>
&gt;<br>
&gt; Ci après, mes fichiers de configurations :<br>
&gt; &gt; inet_protocols = all<br>
&gt; inet_interfaces = all<br>
&gt; biff = no<br>
&gt; mail_spool_directory = /var/spool/postfix/<br>
&gt; myhostname = &gt; mydomain = &gt; mydestination = localhost.$mydomain,localhost,$mydomain,$myhostname< br>
&gt; mynetworks = &gt; mynetworks_style = subnet<br>
&gt; append_dot_mydomain = no<br>
&gt; append_at_myorigin = yes<br>
&gt; alias_maps = hash:/etc/mail/aliases<br>
&gt; alias_database = hash:/etc/mail/aliases<br>
&gt; recipient_delimiter = +<br>
&gt;<br>
&gt; mail_transport = dovecot<br>
&gt; local_recipient = virtual<br>
&gt; local_recipient_maps = $alias_maps $virtual_mailbox_maps<br>
&gt; unknown_local_recipient_reject_code = 550<br>
&gt;<br>
&gt; virtual_mailbox_base = /srv/vmail<br>
&gt; virtual_mailbox_maps = ldap:/usr/pkg/etc/postfix/ &gt; virtual_alias_maps = ldap:/usr/pkg/etc/postfix/ &gt; virtual_minimum_uid = 102<br>
&gt; virtual_uid_maps = static:102<br>
&gt; virtual_gid_maps = static:103<br>
&gt; virtual_transport = dovecot<br>
&gt; dovecot_destination_recipient_limit = 1<br>
&gt;<br>
&gt; smtpd_sasl_auth_enable = yes<br>
&gt; smtpd_sasl_type = dovecot<br>
&gt; smtpd_sasl_path = private/auth<br>
&gt; smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authen ticated, reject_unauth_destination<br>
&gt; smtpd_use_tls = no<br>
&gt;<br>
&gt; /usr/pkg/etc/postfix/ &gt; server_host = &gt; server_port = 389<br>
&gt; search_base = ou=people,dc=appartland,dc=eu<br>
&gt; query_filter = (&amp;(objectClass=InetOrgPerson)(mail=%s))<br>
&gt; result_attribute = mail<br>
&gt; bind = yes<br>
&gt; bind_dn = cn­min<br>
&gt; bind_pw = monmdp<br>
&gt; version = 3<br>
&gt;<br>
&gt; /usr/pkg/etc/postfix/ &gt; server_host = &gt; server_port = 389<br>
&gt; search_base = ou=people,dc=appartland,dc=eu<br>
&gt; query_filter = (&amp;(objectClass=InetOrgPerson)(mail=%s))<br>
&gt; result_attribute = mail<br>
&gt; bind = yes<br>
&gt; bind_dn = cn­min<br>
&gt; bind_pw = monmdp<br>
&gt; version = 3<br>
&gt;<br>
&gt; /usr/pkg/etc/dovecot/dovecot.conf<br>
&gt; listen = *<br>
&gt; ssl = no<br>
&gt; protocols = imap<br>
&gt; mail_uid = postfix<br>
&gt; mail_gid = postfix<br>
&gt; first_valid_uid = 102<br>
&gt; first_valid_gid = 103<br>
&gt;<br>
&gt; login_max_processes_count(<br>
&gt; max_mail_processes<br>
&gt;<br>
&gt; login_greeting = Dovecot IMAP Server ready.<br>
&gt; mail_location = maildir:/srv/vmail/%u/Maildir<br>
&gt; disable_plaintext_auth=no<br>
&gt;<br>
&gt; log_timestamp = &quot;%Y-%m-%d %H:%M:%S &quot;<br>
&gt; log_path = /var/log/dovecot.log<br>
&gt; info_log_path = /var/log/mail.log<br>
&gt;<br>
&gt; protocol imap {<br>
&gt; }<br>
&gt;<br>
&gt; protocol lda {<br>
&gt; postmaster_address = <br>
&gt; auth_socket_path = /var/run/dovecot/auth-master<br>
&gt; log_path = /var/log/dovecot-deliver.log<br>
&gt; info_log_path = /var/log/dovecot-deliver.log<br>
&gt; }<br>
&gt;<br>
&gt; auth default {<br>
&gt; mechanisms = plain login<br>
&gt;<br>
&gt; passdb ldap {<br>
&gt; args = /usr/pkg/etc/dovecot/dovecot-ldap_passdb.conf<br>
&gt; }<br>
&gt; userdb ldap {<br>
&gt; args = /usr/pkg/etc/dovecot/dovecot-ldap_passdb.conf<br>
&gt; }<br>
&gt; socket listen {<br>
&gt; master {<br>
&gt; path = /var/run/dovecot/auth-master<br>
&gt; mode = 0660<br>
&gt; user = postfix<br>
&gt; group = postfix<br>
&gt; }<br>
&gt; client {<br>
&gt; path = /var/spool/postfix/private/auth<br>
&gt; mode = 0660<br>
&gt; user = postfix<br>
&gt; group = postfix<br>
&gt; }<br>
&gt; }<br>
&gt; }<br>
&gt;<br>
&gt; /usr/pkg/etc/dovecot/dovecot-ldap_passdb.conf<br>
&gt; hosts = &gt; auth_bind = yes<br>
&gt; ldap_version = 3<br>
&gt; base = ou=people,dc=appartland,dc=eu<br>
&gt; user_attrs = mailbox=home<br>
&gt; user_filter = (&amp;(objectClass=InetOrgPerson)(mail=%u))<br>
&gt; pass_attrs = mail=user,userPassword=password<br>
&gt; pass_filter = (&amp;(objectClass=InetOrgPerson)(mail=%u))<br>
&gt;<br>
&gt; &gt; dovecot unix - n n - - pipe<br>
&gt; flags=DRhu user=postfix:postfix argv=/usr/pkg/libexec/dovecot/de liver -f ${sender} -d $(recipient)<br>
&gt;<br>
&gt; Merci d&#39;avance pour votre aide.<br>
<br>
</div></div><font color="#888888">--<br>
Lisez la FAQ de la liste avant de poser une question :<br>
<br>
Pour vous DESABONNER, envoyez un message avec comme objet &quot;unsubscribe &quot;<br>
vers En cas de soucis, contactez EN ANGLAIS Archive: <br>
</font></blockquote></div><br>

--0023545bd638a0df9704849109f2--

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Marc
Le #21596391
Juste une petite astuce qui peut peut-être t'aider :
C'est d'activer le log_level à debug dans slapd dans /etc/ldap/slapd.conf :

loglevel 256

Ca permet souvent de voir ce qui cloche au niveau des requêtes LDAP,
si et seulement si la connexion s'établit avec le LDAP..

Marc



--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Publicité
Poster une réponse
Anonyme