ubuntuusers.de

Postfix und LDAP verbinden

Status: Ungelöst | Ubuntu-Version: Ubuntu 16.04 (Xenial Xerus)
Antworten |

Dupsyschnupsi

Anmeldungsdatum:
2. Januar 2018

Beiträge: 32

Hey Forum ! Derzeit habe ich einige Probleme mit der Postfix Syntax... Undzwar möchte ich Postfix mit dem Firmen LDAP verbinden. Ich bin wie in diesem Tutorial vorgegangen:

https://www.whisperedshouts.de/dokumente/postfix-und-ldap-part-3-postfix-konfigurieren

Da ich Dovecot bereits mit dem LDAP verknüpft habe kann ich mich auch schon mit den hinterlegten Accounts anmelden. Wenn ich jetzt von diesem Account eine Mail versende funktioniert auch alles wie es sollte. Andersherum jedoch nicht, da sagt mir Thunderbird dass er die empfängeraddresse nicht finden konnte.

Hier einmal die Logs während des versendens der mail.

  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
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
postfix/smtpd[10824]: connection established
postfix/smtpd[10824]: master_notify: status 0
postfix/smtpd[10824]: name_mask: resource
postfix/smtpd[10824]: name_mask: software
postfix/smtpd[10824]: connect from localhost[::1]
postfix/smtpd[10824]: match_list_match: localhost: no match
postfix/smtpd[10824]: match_list_match: ::1: no match
postfix/smtpd[10824]: match_list_match: localhost: no match
postfix/smtpd[10824]: match_list_match: ::1: no match
postfix/smtpd[10824]: smtp_stream_setup: maxtime=300 enable_deadline=0
postfix/smtpd[10824]: match_hostname: smtpd_client_event_limit_exceptions: localhost ~? 127.0.0.0/8
postfix/smtpd[10824]: match_hostaddr: smtpd_client_event_limit_exceptions: ::1 ~? 127.0.0.0/8
postfix/smtpd[10824]: match_hostname: smtpd_client_event_limit_exceptions: localhost ~? [::ffff:127.0.0.0]/104
postfix/smtpd[10824]: match_hostaddr: smtpd_client_event_limit_exceptions: ::1 ~? [::ffff:127.0.0.0]/104
postfix/smtpd[10824]: match_hostname: smtpd_client_event_limit_exceptions: localhost ~? [::1]/128
postfix/smtpd[10824]: match_hostaddr: smtpd_client_event_limit_exceptions: ::1 ~? [::1]/128
postfix/smtpd[10824]: > localhost[::1]: 220 test.dvg ESMTP Postfix (Ubuntu)
postfix/smtpd[10824]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
postfix/smtpd[10824]: name_mask: noanonymous
postfix/smtpd[10824]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
postfix/smtpd[10824]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
postfix/smtpd[10824]: < localhost[::1]: EHLO test.dvg
postfix/smtpd[10824]: match_list_match: localhost: no match
postfix/smtpd[10824]: match_list_match: ::1: no match
postfix/smtpd[10824]: > localhost[::1]: 250-test.dvg
postfix/smtpd[10824]: > localhost[::1]: 250-PIPELINING
postfix/smtpd[10824]: > localhost[::1]: 250-SIZE 10240000
postfix/smtpd[10824]: > localhost[::1]: 250-VRFY
postfix/smtpd[10824]: > localhost[::1]: 250-ETRN
postfix/smtpd[10824]: > localhost[::1]: 250-STARTTLS
postfix/smtpd[10824]: > localhost[::1]: 250-AUTH PLAIN LOGIN
postfix/smtpd[10824]: > localhost[::1]: 250-AUTH=PLAIN LOGIN
postfix/smtpd[10824]: > localhost[::1]: 250-ENHANCEDSTATUSCODES
postfix/smtpd[10824]: > localhost[::1]: 250-8BITMIME
postfix/smtpd[10824]: > localhost[::1]: 250 DSN
postfix/smtpd[10824]: < localhost[::1]: STARTTLS
postfix/smtpd[10824]: > localhost[::1]: 220 2.0.0 Ready to start TLS
postfix/smtpd[10824]: auto_clnt_open: connected to private/tlsmgr
postfix/smtpd[10824]: send attr request = seed
postfix/smtpd[10824]: send attr size = 32
postfix/smtpd[10824]: private/tlsmgr: wanted attribute: status
postfix/smtpd[10824]: input attribute name: status
postfix/smtpd[10824]: input attribute value: 0
postfix/smtpd[10824]: private/tlsmgr: wanted attribute: seed
postfix/smtpd[10824]: input attribute name: seed
postfix/smtpd[10824]: input attribute value: d9L7C1gxu2nguDqOsn6LJdzIpMpw+7loOmEjdtUxC2o=
postfix/smtpd[10824]: private/tlsmgr: wanted attribute: (list terminator)
postfix/smtpd[10824]: input attribute name: (end)
postfix/smtpd[10824]: Anonymous TLS connection established from localhost[::1]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
postfix/smtpd[10824]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
postfix/smtpd[10824]: name_mask: noanonymous
postfix/smtpd[10824]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
postfix/smtpd[10824]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
postfix/smtpd[10824]: < localhost[::1]: EHLO test.dvg
postfix/smtpd[10824]: match_list_match: localhost: no match
postfix/smtpd[10824]: match_list_match: ::1: no match
postfix/smtpd[10824]: > localhost[::1]: 250-test.dvg
postfix/smtpd[10824]: > localhost[::1]: 250-PIPELINING
postfix/smtpd[10824]: > localhost[::1]: 250-SIZE 10240000
postfix/smtpd[10824]: > localhost[::1]: 250-VRFY
postfix/smtpd[10824]: > localhost[::1]: 250-ETRN
postfix/smtpd[10824]: > localhost[::1]: 250-AUTH PLAIN LOGIN
postfix/smtpd[10824]: > localhost[::1]: 250-AUTH=PLAIN LOGIN
postfix/smtpd[10824]: > localhost[::1]: 250-ENHANCEDSTATUSCODES
postfix/smtpd[10824]: > localhost[::1]: 250-8BITMIME
postfix/smtpd[10824]: > localhost[::1]: 250 DSN
postfix/smtpd[10824]: < localhost[::1]: AUTH PLAIN AGRlbm5pcwBkZW5uaXM=
postfix/smtpd[10824]: xsasl_dovecot_server_first: sasl_method PLAIN, init_response AGRlbm5pcwBkZW5uaXM=
postfix/smtpd[10824]: xsasl_dovecot_handle_reply: auth reply: OK?2?user=dennis?
postfix/smtpd[10824]: > localhost[::1]: 235 2.7.0 Authentication successful
postfix/smtpd[10824]: < localhost[::1]: MAIL FROM:<dennis@test.dvg> BODY=8BITMIME SIZE=394
postfix/smtpd[10824]: extract_addr: input: <dennis@test.dvg>
postfix/smtpd[10824]: smtpd_check_addr: addr=dennis@test.dvg
postfix/smtpd[10824]: ctable_locate: leave existing entry key dennis@test.dvg
postfix/smtpd[10824]: extract_addr: in: <dennis@test.dvg>, result: dennis@test.dvg
postfix/smtpd[10824]: smtpd_check_rewrite: trying: permit_inet_interfaces
postfix/smtpd[10824]: permit_inet_interfaces: localhost ::1
postfix/smtpd[10824]: fsspace: .: block size 4096, blocks free 106841373
postfix/smtpd[10824]: smtpd_check_queue: blocks 4096 avail 106841373 min_free 0 msg_size_limit 10240000
postfix/smtpd[10824]: > localhost[::1]: 250 2.1.0 Ok
postfix/smtpd[10824]: < localhost[::1]: RCPT TO:<dknuf@test.dvg>
postfix/smtpd[10824]: extract_addr: input: <dknuf@test.dvg>
postfix/smtpd[10824]: smtpd_check_addr: addr=dknuf@test.dvg
postfix/smtpd[10824]: ctable_locate: move existing entry key dknuf@test.dvg
postfix/smtpd[10824]: extract_addr: in: <dknuf@test.dvg>, result: dknuf@test.dvg
postfix/smtpd[10824]: >>> START Recipient address RESTRICTIONS <<<
postfix/smtpd[10824]: generic_checks: name=permit_mynetworks
postfix/smtpd[10824]: permit_mynetworks: localhost ::1
postfix/smtpd[10824]: match_hostname: mynetworks: localhost ~? 127.0.0.0/8
postfix/smtpd[10824]: match_hostaddr: mynetworks: ::1 ~? 127.0.0.0/8
postfix/smtpd[10824]: match_hostname: mynetworks: localhost ~? [::ffff:127.0.0.0]/104
postfix/smtpd[10824]: match_hostaddr: mynetworks: ::1 ~? [::ffff:127.0.0.0]/104
postfix/smtpd[10824]: match_hostname: mynetworks: localhost ~? [::1]/128
postfix/smtpd[10824]: match_hostaddr: mynetworks: ::1 ~? [::1]/128
postfix/smtpd[10824]: smtpd_acl_permit: checking smtpd_log_access_permit_actions settings
postfix/smtpd[10824]: match_list_match: permit_mynetworks: no match
postfix/smtpd[10824]: smtpd_acl_permit: smtpd_log_access_permit_actions: no match
postfix/smtpd[10824]: generic_checks: name=permit_mynetworks status=1
postfix/smtpd[10824]: >>> END Recipient address RESTRICTIONS <<<
postfix/smtpd[10824]: >>> START Recipient address RESTRICTIONS <<<
postfix/smtpd[10824]: generic_checks: name=permit_sasl_authenticated
postfix/smtpd[10824]: smtpd_acl_permit: checking smtpd_log_access_permit_actions settings
postfix/smtpd[10824]: match_list_match: permit_sasl_authenticated: no match
postfix/smtpd[10824]: smtpd_acl_permit: smtpd_log_access_permit_actions: no match
postfix/smtpd[10824]: generic_checks: name=permit_sasl_authenticated status=1
postfix/smtpd[10824]: >>> END Recipient address RESTRICTIONS <<<
postfix/smtpd[10824]: >>> CHECKING RECIPIENT MAPS <<<
postfix/smtpd[10824]: ctable_locate: leave existing entry key dknuf@test.dvg
postfix/smtpd[10824]: maps_find: recipient_canonical_maps: dknuf@test.dvg: not found
postfix/smtpd[10824]: maps_find: recipient_canonical_maps: dknuf: not found
postfix/smtpd[10824]: maps_find: recipient_canonical_maps: @test.dvg: not found
postfix/smtpd[10824]: mail_addr_find: dknuf@test.dvg -> (not found)
postfix/smtpd[10824]: maps_find: canonical_maps: dknuf@test.dvg: not found
postfix/smtpd[10824]: maps_find: canonical_maps: dknuf: not found
postfix/smtpd[10824]: maps_find: canonical_maps: @test.dvg: not found
postfix/smtpd[10824]: mail_addr_find: dknuf@test.dvg -> (not found)
postfix/smtpd[10824]: dict_ldap_lookup: In dict_ldap_lookup
postfix/smtpd[10824]: dict_ldap_lookup: Using existing connection for LDAP source /etc/postfix/ldap/virtual_aliases.cf
postfix/smtpd[10824]: dict_ldap_lookup: /etc/postfix/ldap/virtual_aliases.cf: Searching with filter (|(uid=dknuf@test.dvg)(mailAlternateAddress=dknuf@test.dvg))
postfix/smtpd[10824]: dict_ldap_get_values[1]: Search found 0 match(es)
postfix/smtpd[10824]: dict_ldap_get_values[1]: Leaving dict_ldap_get_values
postfix/smtpd[10824]: dict_ldap_lookup: Search returned nothing
postfix/smtpd[10824]: maps_find: virtual_alias_maps: dknuf@test.dvg: not found
postfix/smtpd[10824]: dict_ldap_lookup: In dict_ldap_lookup
postfix/smtpd[10824]: dict_ldap_lookup: Using existing connection for LDAP source /etc/postfix/ldap/virtual_aliases.cf
postfix/smtpd[10824]: dict_ldap_lookup: /etc/postfix/ldap/virtual_aliases.cf: Searching with filter (|(uid=dknuf)(mailAlternateAddress=dknuf))
postfix/smtpd[10824]:[mark] dict_ldap_get_values[1]: Search found 1 match(es)[/mark]
postfix/smtpd[10824]: dict_ldap_get_values[1]: Leaving dict_ldap_get_values
postfix/smtpd[10824]:[mark] dict_ldap_lookup: Search returned nothing[/mark]
postfix/smtpd[10824]: maps_find: virtual_alias_maps: dknuf: not found
postfix/smtpd[10824]: dict_ldap_lookup: In dict_ldap_lookup
postfix/smtpd[10824]: dict_ldap_lookup: Using existing connection for LDAP source /etc/postfix/ldap/virtual_aliases.cf
postfix/smtpd[10824]: dict_ldap_lookup: /etc/postfix/ldap/virtual_aliases.cf: Searching with filter (|(uid=@test.dvg)(mailAlternateAddress=@test.dvg))
postfix/smtpd[10824]: dict_ldap_get_values[1]: Search found 0 match(es)
postfix/smtpd[10824]: dict_ldap_get_values[1]: Leaving dict_ldap_get_values
postfix/smtpd[10824]: dict_ldap_lookup: Search returned nothing
postfix/smtpd[10824]: maps_find: virtual_alias_maps: @test.dvg: not found
postfix/smtpd[10824]: mail_addr_find: dknuf@test.dvg -> not found)
postfix/smtpd[10824]: connect to subsystem private/proxymap
postfix/smtpd[10824]: send attr request = lookup
postfix/smtpd[10824]: send attr table = unix:passwd.byname
postfix/smtpd[10824]: send attr flags = 540736
postfix/smtpd[10824]: send attr key = dknuf@test.dvg
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: status
postfix/smtpd[10824]: input attribute name: status
postfix/smtpd[10824]: input attribute value: 1
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: value
postfix/smtpd[10824]: input attribute name: value
postfix/smtpd[10824]: input attribute value: (end)
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[10824]: input attribute name: (end)
postfix/smtpd[10824]: dict_proxy_lookup: table=unix:passwd.byname flags=lock|fold_fix|utf8_request key=dknuf@test.dvg -> status=1 result=
postfix/smtpd[10824]: maps_find: local_recipient_maps: dknuf@test.dvg: not found
postfix/smtpd[10824]: send attr request = lookup
postfix/smtpd[10824]: send attr table = unix:passwd.byname
postfix/smtpd[10824]: send attr flags = 540736
postfix/smtpd[10824]: send attr key = dknuf
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: status
postfix/smtpd[10824]: input attribute name: status
postfix/smtpd[10824]: input attribute value: 1
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: value
postfix/smtpd[10824]: input attribute name: value
postfix/smtpd[10824]: input attribute value: (end)
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[10824]: input attribute name: (end)
postfix/smtpd[10824]: dict_proxy_lookup: table=unix:passwd.byname flags=lock|fold_fix|utf8_request key=dknuf -> status=1 result=
postfix/smtpd[10824]: maps_find: local_recipient_maps: dknuf: not found
postfix/smtpd[10824]: send attr request = lookup
postfix/smtpd[10824]: send attr table = unix:passwd.byname
postfix/smtpd[10824]: send attr flags = 540736
postfix/smtpd[10824]: send attr key = @test.dvg
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: status
postfix/smtpd[10824]: input attribute name: status
postfix/smtpd[10824]: input attribute value: 1
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: value
postfix/smtpd[10824]: input attribute name: value
postfix/smtpd[10824]: input attribute value: (end)
postfix/smtpd[10824]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[10824]: input attribute name: (end)
postfix/smtpd[10824]: dict_proxy_lookup: table=unix:passwd.byname flags=lock|fold_fix|utf8_request key=@test.dvg -> status=1 result=
postfix/smtpd[10824]: maps_find: local_recipient_maps: @test.dvg: not found
postfix/smtpd[10824]: mail_addr_find: dknuf@test.dvg -> (not found)
postfix/smtpd[10824]: NOQUEUE: reject: RCPT from localhost[::1]: 550 5.1.1 <dknuf@test.dvg>: Recipient address rejected: User unknown in local recipient table; from=<dennis@test.dvg> proto=ESMTP helo=<test.dvg>
postfix/smtpd[10824]: > localhost[::1]: 550 5.1.1 <dknuf@test.dvg>: Recipient address rejected: User unknown in local recipient table
postfix/smtpd[10824]: smtp_get: EOF
postfix/smtpd[10824]: match_hostname: smtpd_client_event_limit_exceptions: localhost ~? 127.0.0.0/8
postfix/smtpd[10824]: match_hostaddr: smtpd_client_event_limit_exceptions: ::1 ~? 127.0.0.0/8
postfix/smtpd[10824]: match_hostname: smtpd_client_event_limit_exceptions: localhost ~? [::ffff:127.0.0.0]/104
postfix/smtpd[10824]: match_hostaddr: smtpd_client_event_limit_exceptions: ::1 ~? [::ffff:127.0.0.0]/104
postfix/smtpd[10824]: match_hostname: smtpd_client_event_limit_exceptions: localhost ~? [::1]/128
postfix/smtpd[10824]: match_hostaddr: smtpd_client_event_limit_exceptions: ::1 ~? [::1]/128
postfix/smtpd[10824]: lost connection after RCPT from localhost[::1]
postfix/smtpd[10824]: disconnect from localhost[::1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 commands=5/6
postfix/smtpd[10824]: master_notify: status 1
postfix/smtpd[10824]: connection closed
postfix/smtpd[10824]: auto_clnt_close: disconnect private/tlsmgr stream
postfix/smtpd[10824]: proxymap stream disconnect

Weiss einer von euch Rat ? Was ich jedoch nicht ver stehe ist dass Postfix ja den benutzer im LDAP verzeichnis findet ( makierte Stelle ), jedoch anscheinend nicht weitergibt....

Ich bin über jeden Tipp dankbar ! =)

Dupsyschnupsi

(Themenstarter)

Anmeldungsdatum:
2. Januar 2018

Beiträge: 32

Ich konnte den Fehler vermutlich finden, denn postfix findet den benutzer auf dem LDAP-Server.

1
2
3
4
5
6
7
8
postfix/smtpd[5811]: dict_ldap_lookup: In dict_ldap_lookup
postfix/smtpd[5811]: dict_ldap_lookup: Using existing connection for LDAP source /etc/postfix/ldap/virtual_aliases.cf
postfix/smtpd[5811]: dict_ldap_lookup: /etc/postfix/ldap/virtual_aliases.cf: Searching with filter (|(uid=dknuf)(mailAlternateAd
postfix/smtpd[5811]: dict_ldap_get_values[1]: Search found 1 match(es)
postfix/smtpd[5811]: dict_ldap_get_values[1]: Leaving dict_ldap_get_values
postfix/smtpd[5811]: dict_ldap_lookup: Search returned nothing
postfix/smtpd[5811]: maps_find: virtual_alias_maps: dknuf: not found
postfix/smtpd[5811]: dict_ldap_lookup: In dict_ldap_lookup

Aber warum wird das Ergebnis nicht weitergegeben ?

misterunknown Team-Icon

Ehemalige
Avatar von misterunknown

Anmeldungsdatum:
28. Oktober 2009

Beiträge: 4403

Wohnort: Sachsen

Zeig mal

postconf -n
cat /etc/postfix/ldap/virtual_aliases.cf
postmap -q dknuf ldap:/etc/postfix/ldap/virtual_aliases.cf
Antworten |