Fixed scope of mail server variable