timmcmic / DLConversionV2

MIT License
43 stars 9 forks source link

Enable hybrid mail flow timing issue. #87

Closed timmcmic closed 1 year ago

timmcmic commented 1 year ago

When email address policies specify something like %g.%s they can be applied to distribution groups. This can lead to portions of the distribution groups names being selected to be used in this email address structure. When update-mail contact was called it caused a timing issue where the same email address was calculated for two objects. Logging shows the calls happened at the same time.

There is now code implemented to delay threads 2 - 5 allowing the first thread to run immediate and then the others wait thread number * delaySeconds (5 by default) when calling the enable mail routing contact.

This should handle the timing conditions.