From: Kottmann Norbert (no email)
Date: Wed Jun 01 2005 - 07:28:46 EDT
Hi
I've got a problem with a "dot" before "@" symbol (e.g.
"). Postfix will bounce all mails with error
message "user unknown" since we changed to virtual delivery. Other
aliases work fine.
Alias map with LDAP works fine:
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: dict_ldap_lookup:
Searching with filter (&(|(shadowFlag
=1)(shadowFlag=0)(shadowFlag=-1))(|
(mail=)
(mailAlternateAddress=firstname.name.@
students.unibe.ch)))
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: dict_ldap_get_values
[1]: Search found 1 match(es)
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: dict_ldap_get_values
[1]: search returned 1 value(s) for
requested result attribute uid
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: dict_ldap_get_values
[1]: Leaving dict_ldap_get_values
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: dict_ldap_lookup:
Search returned username
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: maps_find:
virtual_alias_maps: ldap:ldapvirtual(0,100):
= username
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: mail_addr_find:
-> username
as well as postmap:
stromberg:/etc/postfix# postmap -q
"" ldap:ldapaliases
username
stromberg:/etc/postfix#
Also rcpt check works fine:
Connected to stromberg-eth0.unibe.ch.
Escape character is '^]'.
220 stromberg.unibe.ch ESMTP Postfix
helo lulea
250 stromberg.unibe.ch
mail from:
250 Ok
rcpt to:
250 Ok
But Postfix will bounce with error message:
Jun 1 10:36:57 stromberg postfix/local[18146]: E36F4271954:
to=<>, relay=l
ocal, delay=13, status=bounced (unknown user: "firstname.name.")
Local gets wrong recipient attribute:
Jun 1 10:36:56 stromberg postfix/local[18146]: input attribute name:
original_recipient
Jun 1 10:36:56 stromberg postfix/local[18146]: input attribute
value:
Jun 1 10:36:56 stromberg postfix/local[18146]: local socket: wanted
attribute: recipient
Jun 1 10:36:56 stromberg postfix/local[18146]: input attribute name:
recipient
Jun 1 10:36:56 stromberg postfix/local[18146]: input attribute
value:
The recipient value should be not
. Therefore, local can not deliver to correct
user.
The problem semms to begin with smtpd, which quotes the alias, if a
dot appears before @.
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: < lulea.unibe.ch
[130.92.7.61]: rcpt to:
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: extract_addr: input:
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: smtpd_check_addr:
addr=
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: send attr request =
rewrite
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: send attr rule =
canonicalize
Jun 1 10:36:50 stromberg postfix/smtpd[18142]: send attr address =
"firstname.name."@students.unibe.ch
If no dot appears in alias before @ symbol, all works fine.
The problem appeared when we changed to virtual delivery with ldap:
# VIRTUAL MAPS
virtual_maps = ldap:ldapvirtual
ldapvirtual_query_filter = (&(|(shadowFlag=1)(shadowFlag=0)
(shadowFlag=-1))(|(mail=%s)(mailAlternateAddress=%s)))
ldapvirtual_result_attribute = uid
ldapvirtual_debug_level = 0
System Info:
postfix/testing uptodate 2.1.5-9
postfix-ldap/testing uptodate 2.1.5-9
Linux Debian 2.6.8.1
Anyone had the same problems? I don't have any idea what to change.
Thanks for help.
Norbert
-- _____________________________ University of Berne, Switzerland IT Services Department Norbert Kottmann
|
|
|