Before the election, the Alaska Division of Elections violated explicit Alaska law by providing write-in lists of candidates not on the ballot. A judge ruled against them, but that was subsequently overruled by a higher court:
"Ruling against the Division of Elections (PDF), State Superior Court Judge Frank Pfiffner wrote that for the first time in Alaska's election history, the Division of Elections has provided a list of the names and party affiliations of write-in candidates to each polling place in the state. "The actions of the Division are in clear violation of an Alaska administrative regulation," he wrote."
This is the machine that Palin had to overcome in winning the governor's race. She defeated Frank Murkowski, Lisa's father, in the 2006 primary.