Who was recognized as caliph outside of Syria