I think you have to leave two texels between uv and the outline with 3ds max
Example uv in 254x254 for 256x256 lightmap resolution