Smith received his commission as first lieutenant on 3 October 1795. He was promoted to captain lieutenant in 1802, to second captain in 1804, and to captain in 1806. He was present at the capture of Minorca in 1798, and at the siege of Malta in 1800, the defence of Porto Ferrajo in 1802, and in the expedition to Walcheren and siege of Flushing.