Rinse the dried mushrooms well in a sieve under cold running water and soak them in the Madeira for 1 hour, stirring occasionally.
Melt the butter in a large heavy pot over low heat. Add the onions and cook, covered, over low heat until they are tender and lightly colored, stirring occasionally, about 15 minutes.