A cabinet communique seen by AFP marked the first official confirmation of the date of the poll, seen as essential to restoring democratic rule after a coup last year paved the way for Islamist rebels to seize control of the north.
"The campaign will open on Sunday, July 7 at midnight (0000 GMT) and close at midnight on July 26," the draft law read.
Acting president Dioncounda Traore has said that neither he nor his ministers will stand in the polls, which will go to a second round on August 11 if required.
They overwhelmed government troops, leading to a military coup in Bamako which opened the way for hardline Islamists to chase out their former Tuareg allies and seize key northern cities before moving on the south.
More From This Section
France, Mali's former colonial power, sent in troops in January to block an advance by the Al-Qaeda-linked rebels on the capital Bamako.
The French-led offensive has pushed the militants out of the main cities and into desert and mountain hideouts from where they are staging guerrilla attacks.
Paris has said about 1,000 soldiers will remain in Mali beyond this year to back up a UN force of 12,600 peacekeepers that is to replace MISMA gradually from July and will be responsible for stabilising the north.
Meanwhile the EU is training Mali's rag-tag armed forces to bring them up to standard on both their military role and responsibilities to civil society.
The international community hopes the July elections will produce an effective government but Mali's national electoral commission has voiced concerns about the tight timeframe.