Replying to @pwaring
Personally I ensure /etc/mailname is set right and/or remember to set MAILTO in my crontabs
1
If you're using a default Debian config though then /etc/hosts needs to be set up properly so that uname() followed by gethostbyname() returns the correct FQDN

Aug 24, 2021 ยท 7:23 AM UTC