setup mail-sender and mail-listener