3

I recently switched from using msmtp to Postfix as MTA on one of my servers. unattended-upgrades used to send notifications with the content of /etc/hostname (webserver.example.org), but now it uses the base domain for which the machine serves a website (example.org).

Postfix itself is configured to use the full hostname (myhostname = webserver.example.org), which is reflected in the headers, and /etc/mailname also contains the full hostname.

Where does unattended-upgrades pick up the base domain, and why does it do so suddenly after changing to a different MTA?

1 Answer 1

2

Found the answer after reading this answer to a similar question: I recently created reverse DNS entries for the server, which contained the base domain, and Python's socket.getfqdn() function used these instead of the hostname configured locally.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.