stdevPavelmc / mailad

Software to provision a mail server with users from a Windows or Samba 4 Active Directory
GNU General Public License v3.0
33 stars 11 forks source link

[BUG] check for stalled mailboxes fails when using multiple DCs #181

Closed stdevPavelmc closed 2 years ago

stdevPavelmc commented 2 years ago

Describe the bug When you use multiples DCs for LDAP, the monthly check for stalled mailboxes fails as the functions to craft the LDAP URI with support for multiple DCs was not updated when this feature was introduced.

My mistake, sorry.

The solution is simple, will draft & test it tonight and commit with the fix ASAP.

Self note: bug is here: https://github.com/stdevPavelmc/mailad/blob/cbb029139d1458a2e83d56ef673a945f8a77eae6/scripts/check_maildirs.sh#L19-L26 the fix is to embed or link the get_ldap_uri function here: https://github.com/stdevPavelmc/mailad/blob/cbb029139d1458a2e83d56ef673a945f8a77eae6/common.conf#L320

stdevPavelmc commented 2 years ago

WARNING!

If you are using the multiple DCs option and have mailboxes with more than 1 year of age, please check your /etc/mailad/mailad.conf file and set the variable MAILDIRREMOVAL to no as a safe measure, just in case.

stdevPavelmc commented 2 years ago

@stdevPavelmc 👆🏻

Joe1962 commented 2 years ago

Please remember to commit the fix to this issue... ;)