On Fri, Jul 25, 2014 at 10:04:32PM +0200, Jirtme Le Gal wrote: > It works! And no need to create the mail folder, OpenSMPTd does it.
Are you sure? There was a discussion on this being a potential (security) issue and as I recall it ended with the "deliver in the mailfolder if it exist otherwise put it in the INBOX" solution. This is the behaviour on something fairly close to -current. > Is it possible to specify a prefix? My subfolders are all under INBOX: > .INBOX.sub1 > .INBOX.sub2 Reading the format specifiers section of smtpd.conf(5) it seems no. But it might be possible letting Dovecot handle the delivery with some obscure namespace config. > ? > > OpenSMTPd creates `.TAG? folder and not `.INBOX.TAG?. > > Many thanks Rune! > > > Le 25 juil. 2014 ` 21:35, Rune Pade <[email protected]> a icrit : > > > Hi Jirtme, > > > > On Fri, Jul 25, 2014 at 07:09:13PM +0200, Jirtme Le Gal wrote: > >> I'm trying some modifications on `smtpd.conf' in order to use > >> addresses with `user+tag?. I figured out the easy way is to use > >> Dovecot with LMTP : > >> Before: > >> accept from any for domain "domain.tld" alias <dalias> deliver > >> to maildir > > > > No need to let Dovecot handle this - address tags/plus addressing is > > supported if you create the mailfolder beforehand; otherwise > > [email protected] will be delivered to the INBOX. > > > >> After: > >> accept from any for domain "domain.tld" alias <dalias> deliver > >> to lmtp "/var/run/dovecot/lmtp" > >> > >> Alias <dalias>: > >> user: user-domain.tld > >> > >> When I send an email to [email protected], dovecot delivers the > >> mail without trouble, but it ignores the tag and place the mail in > >> INBOX/new instead of INBOX.tag/new. Of course, I updated dovecot's > >> configuration files with: > >> lda_mailbox_autocreate = yes > >> recipient_delimiter = + > >> > >> It?s like OpenSMTPd send [email protected] to Dovecot instead of > >> [email protected]. > >> > >> How do you guys are doing this? > >> > >> Thanks! -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
