Re: Virtual question
Sorry, the correct path is: # cat /usr/local/etc/dovecot/virtual/month/dovecot-vitual # ~/Maildir/virtual/month/dovecot-virtual * all younger 2678400 > # cat /usr/local/etc/virtual/month/dovecot-vitual -- My main job is trying to come up with new and innovative and effective ways to reject even more mail. I'm up to about 97% now.
Re: Virtual question
On Mar 2, 2018, at 14:56, List wrote: > > namespace { > prefix = @virtual. > separator = . > location = > virtual:/usr/local/etc/dovecot/virtual:INDEX=˜/Maildir/virtual:CONTROL:˜/Maildir/virtual > } # cat /usr/local/etc/virtual/month/dovecot-vitual # ~/Maildir/virtual/month/dovecot-virtual * all younger 2678400 -- My main job is trying to come up with new and innovative and effective ways to reject even more mail. I'm up to about 97% now.
Re: Virtual question
Sorry, different email client on the road. I created the folders under my dovecot install /usr/local/etc/dovecot/virtual/ and then created month and day folders with dovecot-virtaul files in each folder. The folders how up on the mail clients, but either are inaccessible, or empty. namespace { prefix = @virtual. separator = . location = virtual:/usr/local/etc/dovecot/virtual:INDEX=˜/Maildir/virtual:CONTROL:˜/Maildir/virtual} On Mar 1, 2018, at 22:35, Aki Tuomi wrote:/etc/dovecot/virtual/month/dovecot-virtual Then in dovecot.conf you put namespace virtual { location = virtual:/etc/dovecot/virtual:INDEX=~/virtual:CONTROL=~/virtual
Re: Virtual question
On Mar 1, 2018, at 22:35, Aki Tuomi wrote: > > Under /etc/dovecot/virtual > > you create the virtual folder structure you want, and put the dovecot-virtual > files under those folders. > > such as > > /etc/dovecot/virtual/month/dovecot-virtual > > Then in dovecot.conf you put > > namespace virtual { > location = virtual:/etc/dovecot/virtual:INDEX=~/virtual:CONTROL=~/virtual Ah, that is nifty. I did try setting up a sample monthly box under my list accounts, but when I loaded up my mail client (I tried three) it only showed "virtual”and "month”as empty mailboxes (Mail.app in iOS/macOS, Thunderbird, Roundcube webmail). However, this is more in line with what I would like to create, a single configuration for ALL users, so I will give that a shot before I start trouble-shooting. One quick note, ISBN;'t the default separator for Maildir '.’ and not '/'? I'd guess most everyone will need to specify prefix=virtual. separator=. Yes? (At least when I tried '/‘as the separator dovecot complained) -- My main job is trying to come up with new and innovative and effective ways to reject even more mail. I'm up to about 97% now. >
Re: Virtual question
So. Under /etc/dovecot/virtual you create the virtual folder structure you want, and put the dovecot-virtual files under those folders. such as /etc/dovecot/virtual/month/dovecot-virtual Then in dovecot.conf you put namespace virtual { location = virtual:/etc/dovecot/virtual:INDEX=~/virtual:CONTROL=~/virtual # change these to match your setup prefix=virtual/ separator=/ } and then all your users will have the same virtual folder structure. Aki > On 02 March 2018 at 04:10 David Mehler wrote: > > > Hello, > > Can you elaborate? > > Thanks. > Dave. > > > On 3/1/18, Aki Tuomi wrote: > > You can also use > > namespace virtual > > { > > location=virtual:/etc/dovecot/virtual:INDEX=~/virtual/:CONTROL=~/virtual/} > > so you put the folder definitions under /etc and per-user indexes end up > > under user home. ---Aki TuomiDovecot oy > > Original message From: LuKreme Date: > > 01/03/2018 20:40 (GMT+02:00) To: dovecot@dovecot.org Subject: Virtual > > question > > “For each virtual directory you need to create a dovecot-virtual file. Its > > syntax is like:” > > OK, where does this file get created? > > Say I want the users to have a virtual mailbox that is messages received in > > the last month, does that file go into each user' > > s Maildir path? > > It sounds like I have to create a virtual folder for each user, then any > > folders inside that folders, and then the config files in each of the sub > > folders. > > user1/Maildir/virtual/month/dovecot-virtualuser1/Maildir/virtual/week/dovecot-virtualuser1/Maildir/virtual/flagged/dovecot-virtualuser1/Maildir/virtual/Amazon/dovecot-virtualuser2/Maildir/virtual/month/dovecot-virtualuser2/Maildir/virtual/week/dovecot-virtualuser2/Maildir/virtual/flagged/dovecot-virtualuser2/Maildir/virtual/Amazon/dovecot-virtual > > Yes? > > If so, is there anyway to have a "global”virtual that applies to all users > > (but not that unifies the mail between users or anything like that). > > Also, will virtual mailboxes show up automatically for the user in the > > folder list or will they have to specifically subscribe to them? (Assuming > > they use a client that allows subscribing instead of auto showing all > > mailboxes like iOS). > > ˜kremels/ $ cat Maildir/virtual/month/dovecot-vitual # > > ~/Maildir/virtual/month/dovecot-virtualINBOXwork/* all younger 2678400 > > That should create a mailbox "month” in a folder named "virtual” that shows > > all the messages from the last 31d, yes? And I should be able to access that > > mailbox in a MUA like Roundcube or Thunderbird? > > -- My main job is trying to come up with new and innovative and effective > > ways to reject even more mail. I'm up to about 97% now.
Re: Virtual question
Hello, Can you elaborate? Thanks. Dave. On 3/1/18, Aki Tuomi wrote: > You can also use > namespace virtual > { > location=virtual:/etc/dovecot/virtual:INDEX=~/virtual/:CONTROL=~/virtual/} > so you put the folder definitions under /etc and per-user indexes end up > under user home. ---Aki TuomiDovecot oy > Original message From: LuKreme Date: > 01/03/2018 20:40 (GMT+02:00) To: dovecot@dovecot.org Subject: Virtual > question > “For each virtual directory you need to create a dovecot-virtual file. Its > syntax is like:” > OK, where does this file get created? > Say I want the users to have a virtual mailbox that is messages received in > the last month, does that file go into each user' > s Maildir path? > It sounds like I have to create a virtual folder for each user, then any > folders inside that folders, and then the config files in each of the sub > folders. > user1/Maildir/virtual/month/dovecot-virtualuser1/Maildir/virtual/week/dovecot-virtualuser1/Maildir/virtual/flagged/dovecot-virtualuser1/Maildir/virtual/Amazon/dovecot-virtualuser2/Maildir/virtual/month/dovecot-virtualuser2/Maildir/virtual/week/dovecot-virtualuser2/Maildir/virtual/flagged/dovecot-virtualuser2/Maildir/virtual/Amazon/dovecot-virtual > Yes? > If so, is there anyway to have a "global”virtual that applies to all users > (but not that unifies the mail between users or anything like that). > Also, will virtual mailboxes show up automatically for the user in the > folder list or will they have to specifically subscribe to them? (Assuming > they use a client that allows subscribing instead of auto showing all > mailboxes like iOS). > ˜kremels/ $ cat Maildir/virtual/month/dovecot-vitual # > ~/Maildir/virtual/month/dovecot-virtualINBOXwork/* all younger 2678400 > That should create a mailbox "month” in a folder named "virtual” that shows > all the messages from the last 31d, yes? And I should be able to access that > mailbox in a MUA like Roundcube or Thunderbird? > -- My main job is trying to come up with new and innovative and effective > ways to reject even more mail. I'm up to about 97% now.
Re: Virtual question
You can also use namespace virtual { location=virtual:/etc/dovecot/virtual:INDEX=~/virtual/:CONTROL=~/virtual/} so you put the folder definitions under /etc and per-user indexes end up under user home. ---Aki TuomiDovecot oy Original message From: LuKreme Date: 01/03/2018 20:40 (GMT+02:00) To: dovecot@dovecot.org Subject: Virtual question “For each virtual directory you need to create a dovecot-virtual file. Its syntax is like:” OK, where does this file get created? Say I want the users to have a virtual mailbox that is messages received in the last month, does that file go into each user' s Maildir path? It sounds like I have to create a virtual folder for each user, then any folders inside that folders, and then the config files in each of the sub folders. user1/Maildir/virtual/month/dovecot-virtualuser1/Maildir/virtual/week/dovecot-virtualuser1/Maildir/virtual/flagged/dovecot-virtualuser1/Maildir/virtual/Amazon/dovecot-virtualuser2/Maildir/virtual/month/dovecot-virtualuser2/Maildir/virtual/week/dovecot-virtualuser2/Maildir/virtual/flagged/dovecot-virtualuser2/Maildir/virtual/Amazon/dovecot-virtual Yes? If so, is there anyway to have a "global”virtual that applies to all users (but not that unifies the mail between users or anything like that). Also, will virtual mailboxes show up automatically for the user in the folder list or will they have to specifically subscribe to them? (Assuming they use a client that allows subscribing instead of auto showing all mailboxes like iOS). ˜kremels/ $ cat Maildir/virtual/month/dovecot-vitual # ~/Maildir/virtual/month/dovecot-virtualINBOXwork/* all younger 2678400 That should create a mailbox "month” in a folder named "virtual” that shows all the messages from the last 31d, yes? And I should be able to access that mailbox in a MUA like Roundcube or Thunderbird? -- My main job is trying to come up with new and innovative and effective ways to reject even more mail. I'm up to about 97% now.
Virtual question
“For each virtual directory you need to create a dovecot-virtual file. Its syntax is like:” OK, where does this file get created? Say I want the users to have a virtual mailbox that is messages received in the last month, does that file go into each user' s Maildir path? It sounds like I have to create a virtual folder for each user, then any folders inside that folders, and then the config files in each of the sub folders. user1/Maildir/virtual/month/dovecot-virtual user1/Maildir/virtual/week/dovecot-virtual user1/Maildir/virtual/flagged/dovecot-virtual user1/Maildir/virtual/Amazon/dovecot-virtual user2/Maildir/virtual/month/dovecot-virtual user2/Maildir/virtual/week/dovecot-virtual user2/Maildir/virtual/flagged/dovecot-virtual user2/Maildir/virtual/Amazon/dovecot-virtual Yes? If so, is there anyway to have a "global”virtual that applies to all users (but not that unifies the mail between users or anything like that). Also, will virtual mailboxes show up automatically for the user in the folder list or will they have to specifically subscribe to them? (Assuming they use a client that allows subscribing instead of auto showing all mailboxes like iOS). ˜kremels/ $ cat Maildir/virtual/month/dovecot-vitual # ~/Maildir/virtual/month/dovecot-virtual INBOX work/* all younger 2678400 That should create a mailbox "month” in a folder named "virtual” that shows all the messages from the last 31d, yes? And I should be able to access that mailbox in a MUA like Roundcube or Thunderbird? -- My main job is trying to come up with new and innovative and effective ways to reject even more mail. I'm up to about 97% now.
Re: [Dovecot] pop3 index virtual question
On Thu, 2011-02-10 at 00:32 +0100, Robert Schetterer wrote: > >> Debug: maildir++: root=/etc/dovecot/virtual, > >> index=/usr/local/virtual/domain.com/u...@domain.com//virtual, control=, > >> inbox= > >> > >> at my setup > >> > >> the double slash might not hurt , but how setup to avoid it? > > > > I guess your home directory ends with '/'. > > yes > its created by postfixadmin in mysql that way > didnt hurt with anything yet > for sure i could split away last slash in query > but for now it only looks like cosmetical > problem, would you agree or are you seeing any major problems in future > with that ? Yeah, no problems with it. Maybe I'll even some day bother to make Dovecot automatically drop it.
Re: [Dovecot] pop3 index virtual question
Am 10.02.2011 00:07, schrieb Timo Sirainen: > On Tue, 2011-02-08 at 21:30 +0100, Robert Schetterer wrote: > >> Debug: maildir++: root=/etc/dovecot/virtual, >> index=/usr/local/virtual/domain.com/u...@domain.com//virtual, control=, >> inbox= >> >> at my setup >> >> the double slash might not hurt , but how setup to avoid it? > > I guess your home directory ends with '/'. yes its created by postfixadmin in mysql that way didnt hurt with anything yet for sure i could split away last slash in query but for now it only looks like cosmetical problem, would you agree or are you seeing any major problems in future with that ? > >> it would work really badly >> >> ??? didnt understand this please explain > > If you put a virtual mailbox's INDEX file into a directory shared by all > users, then first user fills it with the user's own mailbox data. The > second user who accesses it notices that it's all wrong and replaces > with that user's own mailbox data. And so on. > > ok thats what i thought -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] pop3 index virtual question
On Tue, 2011-02-08 at 21:30 +0100, Robert Schetterer wrote: > Debug: maildir++: root=/etc/dovecot/virtual, > index=/usr/local/virtual/domain.com/u...@domain.com//virtual, control=, > inbox= > > at my setup > > the double slash might not hurt , but how setup to avoid it? I guess your home directory ends with '/'. > it would work really badly > > ??? didnt understand this please explain If you put a virtual mailbox's INDEX file into a directory shared by all users, then first user fills it with the user's own mailbox data. The second user who accesses it notices that it's all wrong and replaces with that user's own mailbox data. And so on.
Re: [Dovecot] pop3 index virtual question
Am 08.02.2011 18:30, schrieb Timo Sirainen: > On 8.2.2011, at 15.49, Robert Schetterer wrote: > >> pop3_uidl_format = %08Xu%08Xv >> location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++:INDEX=~/virtual >> is a good setting >> but i have no feedback yet if the problem "pop3 leaving mails on the >> server" is solved with that > > > Yes, the INDEX= path had to be put into a per-user directory ok, then INDEX=~/virtual is ok ? this result in Debug: maildir++: root=/etc/dovecot/virtual, index=/usr/local/virtual/domain.com/u...@domain.com//virtual, control=, inbox= at my setup the double slash might not hurt , but how setup to avoid it? it would work really badly ??? didnt understand this please explain . But still, I'd suggest using pop3_uidl_format=%f instead (or %g is the same thing). In virtual mailboxes the UIDs are a bit more likely to accidentally change, while %f/%g is based on the backend maildir filename which will never change even if you delete the virtual index files. > ok i change back to pop3_uidl_format = %g Debug: maildir++: root=/etc/dovecot/virtual, index=/usr/local/virtual/domain.com/u...@domain.com//virtual, control=, inbox= -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] pop3 index virtual question
On 8.2.2011, at 15.49, Robert Schetterer wrote: > pop3_uidl_format = %08Xu%08Xv > location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++:INDEX=~/virtual > is a good setting > but i have no feedback yet if the problem "pop3 leaving mails on the > server" is solved with that Yes, the INDEX= path had to be put into a per-user directory it would work really badly. But still, I'd suggest using pop3_uidl_format=%f instead (or %g is the same thing). In virtual mailboxes the UIDs are a bit more likely to accidentally change, while %f/%g is based on the backend maildir filename which will never change even if you delete the virtual index files.
Re: [Dovecot] pop3 index virtual question
Am 08.02.2011 13:31, schrieb Robert Schetterer: > Hi @ll, Timo, on 2.0.9 > i have a user reporting pop3 leaving mails on the server does not work > as desired > > i have > > namespace default { > # type = private > separator = / > prefix = "" > list = yes > # hidden = no > subscriptions = yes > } > > namespace virtual { > # type = private > prefix = "virtual/" > separator = / > location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ > #location = virtual:/etc/dovecot/virtual > > hidden = yes > list = no > subscriptions= no > } > > namespace real { > # type = private > prefix = "RealMails/" > separator = / > list = no > hidden = yes > } > > and > > pop3_uidl_format = %08Xu%08Xv > > before it was pop3_uidl_format = %g ( not sure what best ) > > > # Permanently save UIDLs sent to POP3 clients, so pop3_uidl_format changes > # won't change those UIDLs. Currently this works only with Maildir. > #pop3_save_uidl = no > > > my guess is that > location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ > isnt enough > > should be > location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++:INDEX=~/ > > to store/use indexes in the local maildir which is physical under > /usr/local/virtual/domain/user@domain > > any meanings to this hm seems pop3_uidl_format = %08Xu%08Xv location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++:INDEX=~/virtual is a good setting but i have no feedback yet if the problem "pop3 leaving mails on the server" is solved with that -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
[Dovecot] pop3 index virtual question
Hi @ll, Timo, on 2.0.9 i have a user reporting pop3 leaving mails on the server does not work as desired i have namespace default { # type = private separator = / prefix = "" list = yes # hidden = no subscriptions = yes } namespace virtual { # type = private prefix = "virtual/" separator = / location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ #location = virtual:/etc/dovecot/virtual hidden = yes list = no subscriptions= no } namespace real { # type = private prefix = "RealMails/" separator = / list = no hidden = yes } and pop3_uidl_format = %08Xu%08Xv before it was pop3_uidl_format = %g ( not sure what best ) # Permanently save UIDLs sent to POP3 clients, so pop3_uidl_format changes # won't change those UIDLs. Currently this works only with Maildir. #pop3_save_uidl = no my guess is that location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ isnt enough should be location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++:INDEX=~/ to store/use indexes in the local maildir which is physical under /usr/local/virtual/domain/user@domain any meanings to this -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria