В mail.err следующая ошибкаDec 26 14:09:17 user postfix/trivial-rewrite[17931]: fatal: ldap:mydestination(0,100): table lookup problem
Dec 26 14:09:17 user postfix/trivial-rewrite[17930]: fatal: ldap:mydestination(0,100): table lookup problem
Dec 26 14:10:18 user postfix/trivial-rewrite[17964]: fatal: ldap:mydestination(0,100): table lookup problem
Dec 26 14:10:18 user postfix/trivial-rewrite[17965]: fatal: ldap:mydestination(0,100): table lookup problem
Dec 26 14:10:18 user postfix/trivial-rewrite[17966]: fatal: ldap:mydestination(0,100): table lookup problem
Даю кусок конфига# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no# appending .domain is the MUA's job.
append_dot_mydomain = no
#myorigin = mydomain
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
#config_directory = /etc/postfix
#daemon_directory = /usr/lib/postfix
#mail_owner = postfixmyhostname = user.domain.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#------------------------------------------------LDAP----------------------------------------------
mydestination = ldap:mydestination
mydestination_server_host = 192.168.0.1
mydestination_timeout = 10
mydestination_search_base = ou=people,ou=mail,ou=domain,dc=domain1,dc=net
mydestination_query_filter = (&(objectClass=mailDomainTransport)(mailTransport=local)(mailDomain=%s))
mydestination_result_attribute = mailDomain
mydestination_scope = one
mydestination_bind_dn = cn=miha,ou=users,dc=domain1,dc=net
mydestination_bind_pw = #########И что я наворотил не так? Объясните пожалуйста?
1. Не используйте старый формат таблиц ldap.
2. postconf -n.
3. В master.cf добавьте -v сервису trivial-rewrite.
4. Полный лог прохождения отдельного письма.
>2. postconf -n.2bounce_notice_recipient = sender
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
bounce_notice_recipient = sender
canonical_maps = ldap:mailcnange
config_directory = /etc/postfix
content_filter = scan:127.0.0.1:10025
debug_peer_level = 4
default_transport = smtp
delay_notice_recipient = sender
double_bounce_sender = double-bounce
error_notice_recipient = sender
inet_interfaces = all
local_recipient_maps = proxy:unix:passwd.byname $alias_maps ldap:uidsearch ldap:valias
mailbox_command = procmail -a $EXTENSION
mailbox_size_limit = 20480000
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 10240000
mydestination = ldap:mydestination
myhostname = user.domain.net
mynetworks = 192.168.0.0/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
receive_override_options = no_address_mappings
relay_domains = domain.net domain1.net
relayhost = user2.domain.net
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (ne skazhy)
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
и ещё подвисает при отправке письмаmiha@miha:~$ telnet user 25
Trying 192.168.0.13...
Connected to user.domain.net.
Escape character is '^]'.
220 miha.its.by ESMTP Postfix (2.2.4) (ne skazhy)
HELO user
250 user.domain.net
MAIL FROM: user@user.domain.net
d;lkfgje;lkfjgad;lgj
dsafgasdfgasdfg
asdfgasdfgasfdg
asdfgasfgasgsg
asdfgasdfgasd
sdfsfgafsnjне врубаюсь....
разобрался...
там была ошибка в строке запроса
надо правильно cn, dc и т.д. прописывать....
Спасибо друг