set maildir, cleanup