Bon apparemment mon problème ne passionne pas les foules 
comme apparemment le seul truc qui manque c’est le fameux fichier ldap-aliases.cf
j’en ai créé un moi meme que j’ai rempli (PS si une bonne ame peut m’envoyer le sien cela m’arrange histoire de l’avoir en complet)
Voila ou j’en suis:
main.cf
[code]smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = proxy.entreprise.fr
alias_maps = hash:/etc/aliases ldap:/etc/postfix/ldap-aliases.cf
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = entreprise.fr, proxy.entreprise.fr, localhost.entreprise.fr, localhost
relayhost =srvexch.entreprise.fr
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.0.0/16
mynetworks = 172.16.0.0/16
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4[/code]
ldap-aliases.cf
[code]#Directory settings
domain= entreprise.fr
server_host= srvAD.entreprise.fr
search_base=dc=entreprise, dc=fr
version= 3
User Binding
bind = yes
bind_dn = cn=administrateur, cn=Users, dc=entreprise, dc=fr
bind_pw = password
Filter
query_filter = (proxyAddresses=smtp:%s)
#query_filter = (&(objectclass=person)(proxyAddresses=smtp:%s))
leaf_result_attribute = proxyAddresses
result_format = maildrop[/code]
je tente en telnet d’un poste distant d’envoyer un mail
220 proxy.entreprise.fr ESMTP Postfix (Debian/GNU)
EHLO entreprise.fr
250-proxy.entreprise.fr
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: webmaster@entreprise.fr
250 2.1.0 Ok
RCPT TO: eric@entreprise.fr
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
blablabla
blablabla
.
250 2.0.0 Ok: queued as AF8511922A3
et dans mail.log:[code]
Dec 1 11:55:03 proxy postfix/smtpd[4583]: connect from pcb107.entreprise.fr[172.16.3.40]
Dec 1 11:55:58 proxy postfix/smtpd[4583]: AF8511922A3: client=pcb107.entreprise.fr[172.16.3.40]
Dec 1 11:56:15 proxy postfix/cleanup[4587]: AF8511922A3: message-id=<>
Dec 1 11:56:15 proxy postfix/qmgr[4581]: AF8511922A3: from=webmaster@entreprise.fr, size=202, nrcpt=1 (queue active)
Dec 1 11:56:15 proxy postfix/local[4588]: AF8511922A3: to=e.lefoll@entreprise.fr, relay=local, delay=41, delays=41/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: “e.lefoll”)
Dec 1 11:56:15 proxy postfix/cleanup[4587]: C73321922B3: message-id=20101201105615.C73321922B3@proxy.entreprise.fr
Dec 1 11:56:15 proxy postfix/qmgr[4581]: C73321922B3: from=<>, size=1951, nrcpt=1 (queue active)
Dec 1 11:56:15 proxy postfix/bounce[4589]: AF8511922A3: sender non-delivery notification: C73321922B3
Dec 1 11:56:15 proxy postfix/qmgr[4581]: AF8511922A3: removed
Dec 1 11:56:15 proxy postfix/local[4588]: C73321922B3: to=administrateur@entreprise.fr, orig_to=webmaster@entreprise.fr, relay=local, delay=0.03, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 1 11:56:15 proxy postfix/qmgr[4581]: C73321922B3: removed[/code]
voila, la je suis perdu…
apparement postfix trouve bien mon compte mais refuse de faire le boulot…
est ce que vous pourriez me filer un coup de main ?
Merci !