postfix problem

Karl Auer kauer at biplane.com.au
Mon Jul 6 01:57:38 UTC 2020


I'm trying to send email from scripts. I have mailx and postfix
installed. Sending email works, but not quite properly.

Specifically, the mail arrives showing a sender of "
kauer at kt1.biplane.com.au", where "kt1" is the name of the laptop and
"kt1.biplane.com.au" is the hostname (and the value in /etc/hostname).

I have tried putting various things in /etc/mailname and changing the
value of myorigin in /etc/postfix/main.cf, to no avail. As far as I can
tell, postfix always uses the value in /etc/hostname. If /etc/hostname
doesn't have a domain (i.e., is just "kt1", it will append the correct
domain to it, but I can't seem to get rid of that pesky hostname!

Is there a way to tell postfix to just send all from "biplane.com.au"?

I found this:

http://www.postfix.org/ADDRESS_REWRITING_README.html#generic


But that looks like I'd need a set of generics for every sending
account. I just want one global override on outbound emails.

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