1) the height of the door box should be a few centimeters (about 10 cm) below the opening.
2) you can not nail the door frame to the log house.
These decisions allow the log house when shrinking calmly take its position and do not hang on the door box.