[Dovecot] address extension going into folder
Is it possible with a simple config change to make address extensions, e.g. alice+sales@example.com, go into a folder, e.g. .INBOX.sales, and do so ONLY if that folder already exists (and just go into INBOX if it does not exist)?
With Postfix, I use mailbox_command = DOVECOT_LDA -n -e -m "${EXTENSION}" where DOVECOT_LDA is the path do dovecot's deliver. The -n switch prevents creation of the IMAP folder. See http://wiki.dovecot.org/LDA
On Thu, Jul 1, 2010 at 08:47, Edgar Fuß ef@math.uni-bonn.de wrote:
With Postfix, I use mailbox_command = DOVECOT_LDA -n -e -m "${EXTENSION}" where DOVECOT_LDA is the path do dovecot's deliver. The -n switch prevents creation of the IMAP folder. See http://wiki.dovecot.org/LDA
But it (-n) will deliver (rather than reject) into the regular INBOX if the folder for the extension does not exist?
I'm using Postfix, but with dovecot as a transport.
main.cf has: virtual_transport = dovecot
master.cf has: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
dovecot.conf has: mail_location = maildir:/home/mail/%Ld/%Ln/mail
I wonder if that ${EXTENSION} works in master.cf. I guess I gotta go back to Postfix for reading. I assumed this would be a Dovecot problem.
On Thu, Jul 1, 2010 at 10:56, Edgar Fuß ef@math.uni-bonn.de wrote:
But it (-n) will deliver (rather than reject) into the regular INBOX if the folder for the extension does not exist? Yes, but isn't that what you were asking for?
Yes, but your statement was about what you did, and I wasn't sure if your needs matched my needs. I guess it does.
I wonder if that ${EXTENSION} works in master.cf. No. In master.cf, its ${extension}.
Time to give that a try.
participants (2)
-
Edgar Fuß
-
Phil Howard