does lda_save_to_detail_mailbox exist?
Hello,
there is a nice feature in lmtp to save messages to user+foo@domain in
INBOX/foo
Looks like that doesn't work as good if lda is used.
I have dovecot-2.2.13 mail_location = maildir:%h/ lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes *lmtp*_save_to_detail_mailbox = yes
messages to user+foo generate an error and are saved to INBOX not
matter if INBOX/foo exist or not:
Dec 4 09:40:59 mail dovecot: lda(user@example.org): Debug: Effective
uid=10020, gid=10020, home=/var/mail/user@example.org/
Dec 4 09:40:59 mail dovecot: lda(user@example.org): Debug:
Destination address: user@example.org (source: user@hostname)
Dec 4 09:40:59 mail dovecot: lda(user@example.org):
msgid=3jtWlm3FCHz52KG@localhost: save failed to open mailbox foo:
Mailbox can't be created
Dec 4 09:40:59 mail dovecot: lda(user@example.org):
msgid=3jtWlm3FCHz52KG@localhost: saved mail to INBOX
# doveadm user -u user@example.org userdb: user@example.org home : /var/mail/user@example.org/ quota_rule: *:bytes=1000000 master_user: user@example.org
# doveadm mailbox list -u user@example.org INBOX INBOX/bar
Possible, that *lda*_save_to_detail_mailbox is simply not implemented?
Thanks, Andreas
A. Schulze:
there is a nice feature in lmtp to save messages to user+foo@domain
in INBOX/foo Looks like that doesn't work as good if lda is used.
It works!
for some reasons I don't follow the suggestion on
http://wiki2.dovecot.org/LDA/Qmail
I use '/var/qmail/bin/preline -f /usr/lib/dovecot/dovecot-lda -f
"${SENDER}" -d ${LOCAL%+*}@${HOST} ${EXT:+ -m INBOX/$EXT}'
do let qmail support the '+' as recipient delimiter.
And here last variable must expand to "INBOX/$EXT".
That's all. Andreas
Il 04/12/2014 10:36, A. Schulze ha scritto:
Hello,
there is a nice feature in lmtp to save messages to user+foo@domain in INBOX/foo Looks like that doesn't work as good if lda is used. Yes, its possibile to delivery email in "foo" but with dovecot-lda you must specify the option "-m FOLDER" to dovecot-lda, for example, if you use postfix:
argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient} -m{extension}
From man dovecot-lda:
-m mailbox
Destination mailbox (default is INBOX). If the mailbox
doesn't exist, it will not be created (unless the lda_mailbox_autocreate setting is set to yes). If a message couldn't be saved to the mailbox for any reason, it's delivered to INBOX instead.
Ciao
participants (2)
-
A. Schulze
-
Alessio Cecchi