Father John B. McMahon (abt 1805-), ordained in Ireland, arrived in Boston in 1840 and was assigned to the mission at Eastport, Maine, from about 1841-1843, where he also provided medical services, at no cost, to his parishioners.
Because Father McMahon spoke Gaelic, he was much in demand to hear confession from the newly arrived immigrants from Ireland and was recalled to Boston by Bishop John Fitzpatrick.
http://www.thebostonpilot.com/opinion/article.asp?ID=193962
Another source mentions that Father McMahon, or another Father McMahon was in Eastport in 1838 [the article says 1828 but 1838 seems more fitting] when Brevet-Brigadier General Brady, colonel of the 2 regiment of Infantry of the U.S. requested the presence of Father McMahon of Eastport to administer the Sacred Sacraments to the soldiers at Hancock barracks in Houlton.
Father John B. McMahon is mentioned several times in The Catholic Church in Maine, written by William Leo Lucey and published in 1957 - particularly on pages 78 and 79
If you have information on Father John B. McMahon, please leave a comment for the benefit of others.