dma: change field order of mail.cgi and fix required fields