Bonjour,
Je suis actuellement en train de mettre en place un serveur de messagerie sous postfix pour mon stage et ce serveur (IP : 10.x.x.x9) doit etre capable de rentrer en communication avec un annuaire LDAP situé sur un autre serveur (IP : 10.x.x.x10) afin de vérifier si l'adresse mail en interne existe ou non...

Lorsque je teste l'envoi d'un mail, voici ce qu'il s'affiche dans mon log :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
May 18 10:57:40 pifix postfix/postfix-script: starting the Postfix mail system
May 18 10:57:40 pifix postfix/master[22509]: daemon started -- version 2.1.5
May 18 10:58:10 pifix postfix/pickup[22510]: 8C5D31F77C0: uid=1000 from=<pifix>
May 18 10:58:10 pifix postfix/cleanup[22522]: 8C5D31F77C0: message-id=<20050518085810.8C5D31F77C0@pifix.ch-pinel.fr>
May 18 10:58:10 pifix postfix/qmgr[22511]: 8C5D31F77C0: from=<pifix@ch-pinel.fr>, size=329, nrcpt=1 (queue active)
May 18 10:58:10 pifix postfix/local[22513]: 8C5D31F77C0: to=<abxxxxxx@ch-pinel.fr>, relay=local, delay=0, status=bounced (unknown user: "abxxxxxx")
May 18 10:58:10 pifix postfix/cleanup[22522]: A270D1F77BF: message-id=<20050518085810.A270D1F77BF@pifix.ch-pinel.fr>
May 18 10:58:10 pifix postfix/qmgr[22511]: A270D1F77BF: from=<>, size=1978, nrcpt=1 (queue active)
May 18 10:58:10 pifix postfix/qmgr[22511]: 8C5D31F77C0: removed
May 18 10:58:10 pifix postfix/local[22513]: A270D1F77BF: to=<pifix@ch-pinel.fr>, relay=local, delay=0, status=sent (delivered to command: procmail -a "$EXTENSION")
May 18 10:58:10 pifix postfix/qmgr[22511]: A270D1F77BF: removed
Et voici mon fichier main.cf :


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
 
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
 
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
 
# appending .domain is the MUA's job.
append_dot_mydomain = no
 
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
 
myhostname = pifix.ch-pinel.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
# /etc/mailname
mydestination = $myhostname, localhost.$mydomain, $mydomain
#pifix.ch-pinel.fr, localhost.ch-pinel.fr, , localhost
# ,$transport_maps
mydomain = ch-pinel.fr
relayhost =
mynetworks = 127.0.0.0/8, 10.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
 
inet_interfaces = all
 
# CONFIGURATION LDAP
 
### Transport
#transport_server_host = 10.x.x.x10
#transport_search_base = o=pidap,c=com
#transport_query_filter = (&(virtualDomain=%s)(objectClass=inetOrgPerson))
#transport_result_attribute = postfixTransport
#transport_scope = one
#transport_cache = yes
#transport_bind = yes
#transport_bind_dn = cn=admin,o=pidap,c=com
#transport_bind_pw = xxxxxxx
 
#transport_maps = ldap:transport
 
### Alias
aliases_server_host = 10.x.x.x10
aliases_search_base = o=pidap,c=com
aliases_query_filter = (&(&(objectClass=inetOrgPerson)(mail=%s))(accountActive=TRUE))
aliases_result_attribute = maildrop
aliases_scope = sub
#aliases_cache = yes
aliases_bind = yes
aliases_bind_dn = cn=admin,o=pidap,c=com
aliases_bind_pw = xxxxxxx
 
### Comptes
#Pour la définition des comptes,
#nous avons besoin de connaître l'endroit où sont stockés les mails
#et l'adresse email de reception.
#D'oula création de deux source : accounts et accountsmap.
 
accounts_server_host = 10.x.x.x10
accounts_search_base = o=pidap,c=com
accounts_query_filter = (&(&(objectClass=inetOrgPerson)(mail=%s))(accountActive=TRUE))
accounts_result_attribute = mailbox
accounts_scope = sub
#accounts_cache = yes
accounts_bind = yes
accounts_bind_dn = cn=admin,o=pidap,c=com
accounts_bind_pw = xxxxxxx
 
accountsmap_server_host = 10.x.x.x10
accountsmap_search_base = o=pidap,c=com
accountsmap_query_filter = (&(&(objectClass=inetOrgPerson)(mail=%s))(accountActive=TRUE))
accountsmap_result_attribute = mail
accountsmap_scope = sub
#accountsmap_cache = yes
accountsmap_bind = yes
accountsmap_bind_dn = cn=admin,o=pidap,c=com
accountsmap_bind_pw = xxxxxxx
 
### Distribution
virtual_uid_maps = static:800
virtual_gid_maps = static:800
virtual_mailbox_base = /home/vmail/domains
virtual_mailbox_maps = ldap:accounts
virtual_maps = ldap:aliases, ldap:accountsmap
 
local_recipient_maps = $alias_maps unix:passwd.byname $virtual_mailbox_maps
Merci pour votre aide que j'attends avec impatience!! (je ne vous le cache pas)