Re: Virtual folder auto creation

2019-11-21 Thread Sami Ketola via dovecot



> On 21 Nov 2019, at 4.32, sergio via dovecot  wrote:
> 
> 
> After switching on Virtual Plugin and configuring it as specified on
> https://doc.dovecot.org/configuration_manual/virtual_plugin/
> 
> the virtual folder is created for each user.
> 
> Is it possible do not creater virtual folder automatically, only
> manually, for specific users?
> 
> lda_mailbox_autocreate set to yes, but hope it's not related.


Return the virtual folder settings from userdb for only the selected users. 
Or return hidden = yes variable for those that you wish not to see it.
Virtual folder really does not exist. It is memory only and is generated on
each login.

Sami



[Sieve] Multiple email recipients, how?

2019-11-21 Thread Robert via dovecot

Hi,

First, I am very new to using Pigeonhole/Sieve with Dovecot and I am 
struggling with a problem which could be easy to solve but is just a 
lack of understanding on my end...


We use a simple system for routing emails to different email users by 
postfixing the addresses with the actual user: xxxJohn@domain; 
yyyJohn@domain etc all will be delivered to user John.
(This way John can invent a new email address on-the-fly and that will 
be delivered to his email box.)
Delivering these emails to the right mailbox is easy:  if address 
:contains "to" "John" ...

All mail not matched will go to the general (catchall) mail box.

The problem occurs when the email is sent to more addresses at the same 
domain.  Eg. if an email is sent to xxxJohn@domain, zzzAlex@domain and 
info@domain
Either, all emails also end up in the catch-all, or the email is 
delivered to the first matching rule only.


I do not understand how to use the different TO addresses in the match 
rules. How can I determine that there are recipients other than xxxJohn 
or zzzAlex?


Any help in pointing me in the right direction is appreciated!

Robert



Cert for ip range?

2019-11-21 Thread Marc Roos via dovecot


Is it possible to configure a network for a cert instead of an ip?

Something like this:

local 192.0.2.0 {
ssl_cert = https://wiki.dovecot.org/SSL/DovecotConfiguration





Re: Virtual folder auto creation

2019-11-21 Thread sergio via dovecot
On 21/11/2019 10:59, Sami Ketola via dovecot wrote:


> Return the virtual folder settings from userdb for only the selected users.
> Or return hidden = yes variable for those that you wish not to see it.

Could you give more details how to do this?


> Virtual folder really does not exist. It is memory only and is generated on
> each login.

It is not true. Virtual folder really exists (for all users):
# ls -d /var/mail/user/mailboxes/virtual
/var/mail/user/mailboxes/virtual/

While some MUAs (k9, tb, roundcube) don't show it (may be as empty)
some other (apple ios, com.android.mail) shows it. And it annoys that users.


-- 
sergio.


Re: Virtual folder auto creation

2019-11-21 Thread Sami Ketola via dovecot



> On 22 Nov 2019, at 0.03, sergio via dovecot  wrote:
> 
> On 21/11/2019 10:59, Sami Ketola via dovecot wrote:
> 
> 
>> Return the virtual folder settings from userdb for only the selected users.
>> Or return hidden = yes variable for those that you wish not to see it.
> 
> Could you give more details how to do this?

doveconf -S | grep namespace

and then return the chosen settings from userdb.

> 
> 
>> Virtual folder really does not exist. It is memory only and is generated on
>> each login.
> 
> It is not true. Virtual folder really exists (for all users):
> # ls -d /var/mail/user/mailboxes/virtual
> /var/mail/user/mailboxes/virtual/
> 
> While some MUAs (k9, tb, roundcube) don't show it (may be as empty)
> some other (apple ios, com.android.mail) shows it. And it annoys that users.

It is true. You only have chosen to put your virtual folder settings in the 
users mail directory for some reason.

Sami