[REF] mail: migrate to new API

The old version used `SUPERUSER_ID`, so this might be missing a sudo.

Also the bracket can probably be moved to the previous line.