Therefore, if the listener intended to fulfill his obligation, but the blower did not intend to discharge him—even though he intended to fulfill his own obligation—or if the blower intended to discharge him but the listener did not intend to fulfill the obligation with his blowing, he has not fulfilled his obligation, until both listener and blower intend. In what case are these matters stated? That the blower must intend to discharge this specific person, when he blows for one or two people. But one who blows for many, such as in a beit din, does not need to intend specifically for this person or that person; rather, he should intend to discharge anyone who hears and intends to fulfill the obligation, even if he does not know him at all. And even if he is not in the beit knesset, but is standing outside the beit knesset, for the shaliach tzibbur's intent is for everyone—for anyone who hears and intends to fulfill the obligation. Therefore, one who was walking on the way, or sitting inside his house, and heard shofar blasts from a shaliach tzibbur, has fulfilled his obligation if he intended to fulfill it, for the shaliach tzibbur intends to discharge the many of their obligation. (See Magen Avraham, subsection 5, who cited the Yerushalmi: Regarding one walking on the way, they only taught this regarding one who is passing by. But regarding one who is standing—it is a presumption that he intended; that is to say, if he forgot whether he intended or not, since for one passing by there is a presumption that he did not intend, and for one standing there is a presumption that he intended, see there.)
ולפיכך אם נתכוין השומע לצאת ידי חובתו, ולא נתכוין התוקע להוציאו, אף על פי שלעצמו נתכוין לצאת, או שנתכוין התוקע להוציאו והשומע לא נתכוין לצאת בתקיעתו – לא יצא ידי חובתו, עד שיתכוין שומע ומשמיע. במה דברים אמורים? שהמשמיע צריך לכוין להוציא לזה, כשתוקע לאחד או לשנים. אבל התוקע לרבים, כמו בבית הכנסת – אינו צריך לכוין ביחוד לפלוני ופלוני, אלא יכוין להוציא לכל מי שישמע, ויכוין לצאת, ואפילו אינו יודעו כלל. ואפילו אינו בבית הכנסת, אלא עומד מחוץ לבית הכנסת, דש"ץ דעתיה אכולי עלמא, לכל מי ששומע ומכוין לצאת. לפיכך, מי שהיה מהלך בדרך, או יושב בתוך ביתו, ושמע תקיעות משליח ציבור – יצא אם נתכוין לצאת, שהרי הש"ץ מתכוין להוציא את הרבים ידי חובתן. (עיין מגן אברהם סעיף קטן ה, שהביא ירושלמי: במהלך בדרך לא שנו, אלא בעובר. אבל בעומד – חזקה כיון, כלומר: אם שכח אם כיון אם לא, כיון דאז בעובר חזקה שלא כיון, ובעומד חזקה שכיון, עיין שם.)