סימן יא סעיף יא
אֵין הַפֶּתַח חַיָּב בִּמְזוּזָה אֶלָּא אִם יֵשׁ לוֹ שְׁתֵּי מְזוּזוֹת (פַפַאסְטֶען טִיר שְׁטָאק) גְּבוֹהוֹת לְכָל הַפָּחוֹת עֲשָׂרָה טְפָחִים וּמַשְׁקוֹף עַל גַּבֵּיהֶן. וַאֲפִלּוּ אֵין הַמְּזוּזוֹת מֵעֵצִים אוֹ מֵאֲבָנִים אֲחֵרִים רַק שֶׁכּוֹתְלֵי הַבִּנְיָן בְּעַצְמוֹ הֵם הַמְּזוּזוֹת וַעֲלֵיהֶן תִּקְרָה, גַּם כֵּן חַיָּב, וְאִם אֵין לַבַּיִת אֶלָּא מְזוּזָה אַחַת, כְּגוֹן שֶׁמִצַּד הָאֶחָד עוֹבֵר הַכֹּתֶל לְהַלָּן, כָּזֶה, אִם הִיא מִצַּד שְׂמֹאל, פְּטוּרָה. וְאִם הִיא מִצַּד יָמִין, יֵשׁ סָפֵק אִם חַיֶּבֶת אוֹ לֹא. וְיֵשׁ לְקָבְעָהּ בְּלֹא בְרָכָה, אוֹ שֶׁיִּקְבְּעֶהָ לְאַחַר שֶׁיִּקְבַּע בְּפֶתַח הַמְּחֻיָּב, וִיבָרֵךְ וְיִפְטֹר גַּם אֶת זֹאת. וְכֵן בְּכָל מָקוֹם שֶׁיֵּשׁ סָפֵק, יַעֲשֶׂה כֵּן.
A doorway does not require a mezuzah unless it has two doorposts which have the minimal height of ten tefachim and a lintel above them. Even if the doorposts were not of wood or stones, but rather the walls of the structure itself serve as the doorposts and there was a ceiling on top of them, a mezuzah is also required. If a house had only one doorpost, for instance where on one side a wall extends as a perpendicular from a side wall as illustrated in this diagram: If the extension is from the left side, a mezuzah is not required, but if the extension is from the right side, there is a question [if a mezuzah is required]; therefore the mezuzah should be put up without reciting a berachah, or put up after affixing another mezuzah on a doorway which definitely requires a mezuzah and the berachah will exempt the doubtful doorway. Similarly, in any case where the requirement of mezuzah is doubtful, this practice should be followed.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)