Deliver to different namespace with address detail
Hello,
with this settings:
Dovecot 2.3.7.2 (3c910f64b)
namespace {
list = yes
type = private
inbox = yes
prefix = INBOX/
separator = /
}
namespace Archive {
list = yes
type = private
inbox = no
prefix = Archive/
separator = /
mailbox Incoming {
auto = create
}
}
lmtp_save_to_detail_mailbox = yes recipient_delimiter = +
userdb_query = SELECT accounts.username AS user, accounts.home AS home, CONCAT('mdbox:', accounts.home, '/mdbox') AS mail, CONCAT('mdbox:', accounts.home, '/archive') AS 'namespace/Archive/location', 'vmail' AS uid, 'vmail' as gid FROM accounts WHERE accounts.username = '%u'
it is possible to deliver an email to Archive namespace instead of inbox with address detail (email+Archive/Incoming@domain)?
If i try i see that the lmtp service search the path from the inbox namespace (so INBOX/Archive/Incoming).
Thanks
On 21 Jan 2021, at 04:37, Tobia Grosselle [ Terralink ] tobia.grosselle@terralink.it wrote:
Dovecot 2.3.7.2 (3c910f64b)
namespace {
list = yes type = private inbox = yes prefix = INBOX/ separator = /
}
namespace Archive {
list = yes type = private inbox = no prefix = Archive/ separator = / mailbox Incoming { auto = create }
}
This is what I have:
namespace inbox { inbox = yes location =
mailbox Drafts { special_use = \Drafts } mailbox Junk { autoexpunge = 14 days auto = subscribe special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox Trash { autoexpunge = 31 days special_use = \Trash } mailbox Archive { auto = subscribe special_use = \Archive } prefix = }
Note that all the special_use mailboxes are under the main unlabeled namespace.
Does that make a difference?
it is possible to deliver an email to Archive namespace instead of inbox with address detail (email+Archive/Incoming@domain)?
It is possible for me to deliver mail to archived via, for example, kremels+Archive@kreme.com, yes. I have some alias emails on my admin accounts that deliver to +Archive (cron) and some to +Junk (web verification garbage that I only need for a minute at most).
If i try i see that the lmtp service search the path from the inbox namespace (so INBOX/Archive/Incoming).
-- 7-Up? What happened to Ups 1-6?
I know that it works with a mailbox in the inbox namespace, but I am trying with different namespace for mail location purpose and to avoid conflict with the users's own folders. Of course if is not possible I will revert to the same configuration you have.
Thanks anyway for your response.
Dovecot 2.3.7.2 (3c910f64b)
namespace {
list = yes type = private inbox = yes prefix = INBOX/ separator = /
}
namespace Archive {
list = yes type = private inbox = no prefix = Archive/ separator = / mailbox Incoming { auto = create }
}
This is what I have:
namespace inbox { inbox = yes location =
mailbox Drafts { special_use = \Drafts } mailbox Junk { autoexpunge = 14 days auto = subscribe special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox Trash { autoexpunge = 31 days special_use = \Trash } mailbox Archive { auto = subscribe special_use = \Archive } prefix = }
Note that all the special_use mailboxes are under the main unlabeled namespace.
Does that make a difference?
it is possible to deliver an email to Archive namespace instead of inbox with address detail (email+Archive/Incoming@domain)?
It is possible for me to deliver mail to archived via, for example, kremels+Archive@kreme.com, yes. I have some alias emails on my admin accounts that deliver to +Archive (cron) and some to +Junk (web verification garbage that I only need for a minute at most).
If i try i see that the lmtp service search the path from the inbox namespace (so INBOX/Archive/Incoming).
-- 7-Up? What happened to Ups 1-6?
participants (2)
-
@lbutlr
-
Tobia Grosselle [ Terralink ]