The Chipolopolo will face the winners of Group A that includes Zimbabwe, Swaziland, Seychelles and Madagascar in the last eight of the Cosafa Castle Cup tournament to be staged in Nambia in June.
Zambia last year were booted out at the quarter final stage by Namibia in the same competition.
The full draw:
Group A
Zimbabwe
Swaziland
Sychelles
Madagascar
Group B
Malawi
Angola
Lesotho
Mauritius
Quarter-finals:
South Africa vs Winner B
Botswana vs Namibia
Zambia vs Winner A
DR Congo vs Mozambique