Skip to content

Commit

Permalink
Merge pull request #6165 from mailcow/fix/mbox-rename-cluster
Browse files Browse the repository at this point in the history
[Web] broadcast maildir move to dovecot containers on mailbox_rename
  • Loading branch information
FreddleSpl0it authored Nov 13, 2024
2 parents 5026d67 + 1819b6e commit 8677c18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/web/inc/functions.mailbox.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3351,7 +3351,12 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
'old_maildir' => $domain . '/' . $old_local_part,
'new_maildir' => $domain . '/' . $new_local_part
);
docker('post', 'dovecot-mailcow', 'exec', $exec_fields);
if (getenv("CLUSTERMODE") == "replication") {
// broadcast to each dovecot container
docker('broadcast', 'dovecot-mailcow', 'exec', $exec_fields);
} else {
docker('post', 'dovecot-mailcow', 'exec', $exec_fields);
}

// rename username in sogo
$exec_fields = array(
Expand Down

0 comments on commit 8677c18

Please sign in to comment.