Q. (Re – question 2382.)  Are the above intentions essential? If someone did not have kavana on the ananei kavod, did he not comply with the mitzva and has to repeat eating with a new bracha?
A. Mishna Berura (625: 1) rules that one should intent while performing the mitzva of sukka that we exited the slavery of Mitzraim and merited the Ananei Kavod. However, these kavonos are only for performing the mitzva properly and correctly. Nonetheless, if one did not have those intentions in his mind, he still complies after the fact with the mitzva, as long that he intended to perform one.
Other Poskim disagree and maintain that without the added intention required by the posuk “lemaan Yedu,” one does not comply with the mitzva and should repeat it. (Bach 625 and 8, Bikurei Yaakov 625: 3, Beis Yitzchok Y.D. 2: 168, Moed Lekol Chai 20, and others).
Horav Shlomo Miller’s Shlit’a opinion is similar to the Mishna Berura.
Rabbi A. Bartfeld as revised by Horav Shlomo Miller Shlit’a