On Wed, Feb 10, 2021 at 10:37:15AM -0700, @lbutlr wrote: > On 10 Feb 2021, at 10:05, Chris Green <c...@isbd.net> wrote: > > but this doesn't seem to have worked. What am I doing wrong now? (I > > have run 'newaliases'). > > what does > > postconf -d myhostname mydomain myorigin > > Report? > > It should report: > > myhostname = isbdGandi.isbd.uk > mydomain = isbd.uk > myorigin = $myhostname > chris@isbdGandi$ postconf -d myhostname mydomain myorigin myhostname = isbdGandi.isbd.uk mydomain = isbd.uk myorigin = $myhostname
... and:- chris@isbdGandi$ hostname isbdGandi.isbd.uk chris@isbdGandi$ dnsdomainname isbd.uk chris@isbdGandi$ hostname -f isbdGandi.isbd.uk chris@isbdGandi$ With the system configure like this postfix sends mail for 'chris' to 'ch...@isbd.uk' which isn't very helpful, I need it to be sent to 'ch...@isbd.co.uk'. The above is with hostname set to the fqdn by running 'hostname isbdGandi.isbd.uk' as root. However this isn't persistent, rebooting sets hostname back to just isbdGandi. If I reboot and don't explicitly set hostname I see:- chris@isbdGandi$ hostname isbdGandi chris@isbdGandi$ hostname -f isbdGandi.isbd.uk chris@isbdGandi$ dnsdomainname isbd.uk chris@isbdGandi$ postconf -d myhostname mydomain myorigin myhostname = isbdGandi.localdomain mydomain = localdomain myorigin = $myhostname Obviously postfix uses localdomain as the domain and mail gets rejected. The configuration with just isbdGandi as the hostname seems to be the default/right way that Linux systems expect to be. -- Chris Green