In the state of Maine, you may buy a hunting license online or in person at the Maine Department of Inland Fisheries and Wildlife. In addition, there are also agents throughout the state-sporting goods stores, convenience stores, etc., that are certified to sell hunting licenses.
Check out these Surry, ME Hunting resources: