The word 'duty,' in this context implies that the person that wrote the letter is suggesting that they are loyal to the person that received the letter. So they are assuring the person that received the letter of their loyalty to them.
The expression, as a whole is, indeed, like "warm regards."