On 10 Feb 2021, at 10:41, Chris Green <c...@isbd.net> wrote:
>    chris$ postconf -d myorigin
>    myorigin = $myhostname
>    chris$ postconf -d myhostname
>    myhostname = t470.localdomain
>    chris$ dnsdomainname
>    zbmc.eu
>    chris$ hostname -f
>    t470.zbmc.eu
>    chris$ hostname
>    t470
> 
> So one can see why (at present) I need to set 'mydomain = zbmc.eu'
> explicitly in main.cf, however I don't quite see how to change things
> so that they work how I want.

Or, as was mentioned above, set your computer's name to a FQDN instead of a 
.localdomain and everything will work properly?

And

>    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'.

Again, if you set your computer's to FQDNs everything will work. Why are you 
using isbn.uk instead of isbn.co.uk which is the actual domain? Anyway, 
whatever the reason this seems to be the source of all your troubles. Set the 
domain names properly and then you can use a single unmodified main.cf.


-- 
Clarke's Law: Sufficiently advanced technology is indistinguishable from magic
Clark's Law: Sufficiently advanced cluelessness is indistinguishable from
malice
Clark Slaw: Anything that has been severely damaged or destroyed by application
of Clark's Law

Reply via email to