The meaning of the word "quack" in this sentence from Poe's "The Cask of Amontillado" most likely means: "a person who dishonestly pretends to have skills or knowledge."
He seems to be using it as a synonym of <em>"charlatan,"</em> since he contrast Fortunato's true knowledge of wines with his pretended expertise on painting and gemmary.