Problems with anvil-auth-penalty and login_trusted_networks

2021-08-20 Thread Ricardo Machini Barbosa
Hello, On my environment I have: 1 cluster of webmail servers 1 cluster of dovecot proxy dovecot servers n dovecot backend servers On my dovecot backend servers, I use the login_trusted_networks option with the IP range of my servers in the dovecot proxy cluster. But and I'm having p

Re: AW: Problem with copy e-mails via doveadm

2021-08-20 Thread Christian Küppers
That doesn't work / has no visible effect. mail/location/mail_location gets overwritten by "-o mail_location=imapc:" in doveadm command. Is it possible to "bind" options/values to users in doveadm command, like "doveadm -o target_mail_location=imapc: -o source_mail_location=mbox:~/mail:INBOX=/

handling public namespace (under mdbox/sdbox)

2021-08-20 Thread Michal Soltys
Besides of course a "dummy" user that has admin rights to all subfloders - and handles delivery via Public/ prefix. For example using: public-dummy+Public/path/to/subfloder. But - with maildir I've been using a dedicated user that sees public namespace as its own mailbox - so all the alises/re

Re: AW: Problem with copy e-mails via doveadm

2021-08-20 Thread Aki Tuomi
Run the command on the target host, and change user_query = SELECT '/vmail/%Ld/%Ln' AS home, 'mbox:~/mail:INBOX=/var/mail/%u' AS mail, 1 AS uid, 1 AS gid FROM users WHERE email = '%Lu' Aki > On 20/08/2021 13:39 Christian Küppers wrote: > > > Please explain in more detail how I can d

Re: AW: Problem with copy e-mails via doveadm

2021-08-20 Thread Christian Küppers
Please explain in more detail how I can do this. > Try targeting your director instead. in cmd of director /usr/bin/doveadm -Dv -o mail_location=imapc: -o imapc_host= -o imapc_user="source_user_shard1" -o imapc_password="source_user_shard1_password" copy -u "dest_user_shard2" "dest_folder" user

Re: AW: Problem with copy e-mails via doveadm

2021-08-20 Thread Aki Tuomi
The problem actually is that you are now targeting the source user into the source user as well. You need to, somehow, make dovecot return mail=imapc: for the target user. Or you can try to do the copying on the target backend instead, so that you can return `mail=whatever your mail location is`

Re: AW: Problem with copy e-mails via doveadm

2021-08-20 Thread Aki Tuomi
Try targeting your director instead. Aki > On 20/08/2021 12:45 Christian Küppers wrote: > > > Okay, i need some further help.  > > What i've tried with your hint: > > Executing on cmd of director&proxy server: > /usr/bin/doveadm -Dv -o mail_location=imapc: copy -u "dest_user_shard2" > "des

dovecot flags lost after move/copy

2021-08-20 Thread ciuga
Dear Community, I have a issue with our dovecot server ( 2.3.4.1 (f79e8e7e4) ) with maildir Flags are lost after a copy (or move), as you can see on this exemple : * Before doing anything, list detail of a mail : doveadm fetch -u XXX flags mailbox-guid f303160f6df58c5b67040200bc34b0e6 uid 4612

Re: AW: Problem with copy e-mails via doveadm

2021-08-20 Thread Christian Küppers
Okay, i need some further help.  What i've tried with your hint: Executing on cmd of director&proxy server: /usr/bin/doveadm -Dv -o mail_location=imapc: copy -u "dest_user_shard2" "dest_folder" user "source_user_shard1" mailbox "source_folder" ALL /usr/bin/doveadm -Dv -o mail_location=imapc: -o

Re: AW: Problem with copy e-mails via doveadm

2021-08-20 Thread Aki Tuomi
The copy command gets proxied to the remote server because you used proxy=y. To do this kind of copying, you need to specify mail_location=imapc: and target to the director. Aki > On 20/08/2021 09:53 Christian Küppers wrote: > > > Maybe i missunderstood this message. For me this indicates