Sending email via PHP - hostname.localdomain problem

subjectx

Member
Nov 4, 2020
36
3
8
113
Greetings,

I have PVE6.3 with LXC, running Ubuntu 20.04. I have wordpress installed on this LXC.

Whenever I send email through the wordpress, sender is set to Sitename via hostname.localdomain (eg. Digital via digital.localdomain). I cannot find where this .localdomain comes into play.

I have checked hosts and hostnames on both node and LXC and they dont include word localdomain.
/etc/resolv.conf has search set to digital.correct.domain

Where else should I check?

Do I need to restart whole node if I change hosts file?
There was entry in hosts:
127.0.0.1 localhost.localdomain localhost
which I changed to
127.0.0.1 localhost
but didnt restart node.