There may well be a bus from Nampula to Mandimba (border town) and into Malawi, then onward via Zomba to Lilongwe. But you will need to check the route between Nampula and Mandimba as I am not sure of the current road condition across there.
Phil J
moderator