thanks mouss but in my mains.cf there is
mailbox_transport=lmtp:unix:/var/run/cyrus/socket/lmtp
virtual_transport=$mailbox_transport
so virtual transport is used for cyrus
in the lmtp log in verbose mode there is
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: send attr diag_type =
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: send attr diag_text =
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: send attr mta_type =
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: send attr mta_mname =
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: send attr action =
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: send attr reason =
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: send attr status = 0
Sep 6 10:55:03 pc-touzeau postfix/qmgr[17821]: ED9339009CC: removed
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: master_notify: status 1
Sep 6 10:55:03 pc-touzeau postfix/lmtp[19755]: connection closed
Sep 6 10:55:12 pc-touzeau postfix/smtpd[19647]: connect from
localhost[127.0.0.1]
Sep 6 10:55:12 pc-touzeau postfix/smtpd[19647]: 7E3489009CC:
client=localhost[127.0.0.1]
Sep 6 10:55:12 pc-touzeau postfix/cleanup[21672]: 7E3489009CC:
message-id=<[EMAIL PROTECTED]>
Sep 6 10:55:18 pc-touzeau postfix/qmgr[17821]: 7E3489009CC:
from=<[EMAIL PROTECTED]>, size=614, nrcpt=1 (queue active)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: connection established
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: master_notify: status 0
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: deliver_request_initial:
send initial status
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: send attr status = 0
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: flags
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: flags
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 3
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: queue_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
queue_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
active
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: queue_id
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
queue_id
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
7E3489009CC
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: offset
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: offset
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 597
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: size
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: size
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 614
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: nexthop
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
nexthop
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
unix:/var/run/cyrus/socket/lmtp
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: encoding
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
encoding
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: (end)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: sender
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: sender
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
[EMAIL PROTECTED]
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: envelope_id
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
envelope_id
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: (end)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: ret_flags
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
ret_flags
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 0
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: time
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: time
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
cEXCSBS3BwB2RcJIedYJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: log_client_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
log_client_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
localhost
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: log_client_address
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
log_client_address
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
127.0.0.1
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: log_client_port
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
log_client_port
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 50331
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: log_protocol_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
log_protocol_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: ESMTP
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: log_helo_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
log_helo_name
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
pc-touzeau.klf.fr
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: sasl_method
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
sasl_method
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: (end)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: sasl_username
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
sasl_username
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: (end)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: sasl_sender
Sep 6 10:55:18 pc-touzeau postfix/smtpd[19647]: disconnect from
localhost[127.0.0.1]
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
sasl_sender
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: (end)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: rewrite_context
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
rewrite_context
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: local
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: recipient_count
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
recipient_count
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 1
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: (list terminator)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: (end)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: original_recipient
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
original_recipient
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
[EMAIL PROTECTED]
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: recipient
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
recipient
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
[EMAIL PROTECTED]
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: offset
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: offset
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 562
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: dsn_orig_rcpt
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
dsn_orig_rcpt
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value:
rfc822;[EMAIL PROTECTED]
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: notify_flags
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name:
notify_flags
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute value: 0
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: lmtp socket: wanted
attribute: (list terminator)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: input attribute name: (end)
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: deliver_request_get:
file active/7E3489009CC
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: deliver_message: from
[EMAIL PROTECTED]
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: smtp_connect_unix:
trying: /var/run/cyrus/socket/lmtp...
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: global TLS level: none
Sep 6 10:55:18 pc-touzeau cyrus/lmtpunix[19756]: accepted connection
Sep 6 10:55:18 pc-touzeau cyrus/lmtpunix[19756]: lmtp connection
preauth'd as postman
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 220 pc-touzeau.klf.fr
LMTP Cyrus v2.2.13-Debian-2.2.13-13ubuntu3 ready
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: >
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: LHLO pc-touzeau.klf.fr
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250-pc-touzeau.klf.fr
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250-8BITMIME
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250-ENHANCEDSTATUSCODES
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250-PIPELINING
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250-SIZE
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250-AUTH EXTERNAL
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250 IGNOREQUOTA
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: server features: 0xf size 0
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: Using LMTP PIPELINING,
TCP send buffer size is 4096
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: >
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: MAIL
FROM:<[EMAIL PROTECTED]> SIZE=614
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: >
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: RCPT TO:<[EMAIL PROTECTED]>
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: >
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: DATA
Sep 6 10:55:18 pc-touzeau cyrus/lmtpunix[19756]:
verify_user(user.david^t) failed: Mailbox does not exist
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 250 2.1.0 ok
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 550-Mailbox unknown.
Either there is no mailbox associated with this
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 550-name or you do not
have authorization to see it.
Sep 6 10:55:18 pc-touzeau postfix/lmtp[19755]: <
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp]: 550 5.1.1 User unknown
mouss a écrit :
TOUZEAU DAVID wrote:
Dear
I have a problem with postfix understanding and
"virtual_mailbox_maps" parameter :
in my example i would like to send email to a local mailbox created
has "dtouzeau" from email [EMAIL PROTECTED]
currently, postfix want to send email to user.david^t instead dtouzeau
prove it ;-p just because cyrus says so isn't enough. postfx says
"to=<[EMAIL PROTECTED]>".
If i undertsand the virtual_mailbox_maps is in charge to specify
postfix where is the right mailbox name.
But in my case, it's not working.
the mailbox in virtual_mailbox_maps is only used when delivery is done
by virtual. you use cyrus for delivery, so the value is irrelevant.
the "virtual_mailbox_maps" LDAP filter is correct for me
"(&(objectClass=userAccount)(mail=%s))" it return the "uid" attribute
has the real cyrus-imap mailbox name.
so for my example : [EMAIL PROTECTED] ldap query return dtouzeau not
david^t
what i missing ???
best regards
here is the error:
Sep 6 00:22:20 pc-touzeau postfix/smtpd[19859]: disconnect from
localhost[127.0.0.1]
Sep 6 00:22:20 pc-touzeau cyrus/master[20011]: about to exec
/usr/lib/cyrus/bin/lmtpd
Sep 6 00:22:20 pc-touzeau cyrus/lmtpunix[20011]: executed
Sep 6 00:22:20 pc-touzeau cyrus/lmtpunix[20011]: accepted connection
Sep 6 00:22:20 pc-touzeau cyrus/lmtpunix[20011]: lmtp connection
preauth'd as postman
Sep 6 00:22:20 pc-touzeau cyrus/lmtpunix[20011]:
verify_user(user.david^t) failed: Mailbox does not exist
Sep 6 00:22:20 pc-touzeau postfix/lmtp[20010]: 10E4C9009CC:
to=<[EMAIL PROTECTED]>,
relay=pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp], delay=6.5,
delays=6.5/0.01/0.01/0.02, dsn=5.1.1, status=bounced (host
pc-touzeau.klf.fr[/var/run/cyrus/socket/lmtp] said: 550-Mailbox
unknown. Either there is no mailbox associated with this 550-name or
you do not have authorization to see it. 550 5.1.1 User unknown (in
reply to RCPT TO command))
here it is my settings.
--
David Touzeau -------------------------- Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,delphi,php artica for postfix management console
(http://www.artica.fr) icq:160018849