postfix problem
Karl Auer
kauer at biplane.com.au
Tue Jul 7 11:00:00 UTC 2020
On Tue, 2020-07-07 at 11:37 +0100, David Howes wrote:
> Hi, $myorigin defaults to the $myhostname, that's localhostname as
> you know, but have you tried changing the $myhostname value in the
> main.cf?
I've tried all sorts of combinations of myorigin, myhostname.
/etc/mailname and /etc/hostname :-) The ONLY thing that works is
changing /etc/hostname to the desired domain. The system behaves as if
it is straight-out ignoring any changes in main.cf. I had to introduce
errors just to convince myself it was actually being used.
Chris (who contacted me off-list so I will leave him/her anonymous
apart from their first name) very kindly sent me some working configs.
They did not help directly, but they DID lead me to read this again:
http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
... and that led me to read the man page for generic(5):
http://www.postfix.org/generic.5.html
... and that led me to the idea that it should be possible to use an
entry something like this:
@kt1.biplane.com.au @biplane.com.au
... to override the hostname with just the domain name.
However, I have not yet tested it.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389
GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D
More information about the ubuntu-users
mailing list