On Sun, Jan 17, 2021 at 09:07:41PM +0100, Yvan Masson wrote:
> I finally found it! There was no issue with the OpenSMTPD
> configuration, but I had a file, /etc/mailname, which contained only
> the string "debian".I don't know how it came on my system.

When you install the opensmtpd package for the first time, debconf
prompts you for your system mailname and writes it to /etc/mailname.
You can change it by:

    sudo dpkg-reconfigure opensmtpd

Details:
https://salsa.debian.org/debian/opensmtpd/-/blob/debian/sid/debian/postinst#L96

See also Debian Policy ยง11.6:
https://www.debian.org/doc/debian-policy/ch-customized-programs.html#mail-transport-delivery-and-user-agents

Best,
Ryan

-- 
|)|/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac     |      BD95 8F7B F8FC 4A11 C97A

Reply via email to