This is a discussion on mydomain and myorigin value not recognized in 2.2.2 within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I have been running Postfix 1.1.12 on a Redhat 9 system for years. No probs. I upgraded one ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have been running Postfix 1.1.12 on a Redhat 9 system for years. No
probs. I upgraded one of my servers to Fedora Core 4 and Postfix 2.2.2. >From the rpm: Version : 2.2.2 Vendor: Red Hat, Inc. Release : 2 Build Date: Wed 20 Apr 2005 08:31:32 AM PDT --------------------------------------------------- For some reason, the variables myorigin and mydomain are not being used on outgoing email messages. I have postfix setup and running. For test purposes, I have hard set myorigin and mydomain to values different than those returned by gethostname. So: gethostname -> foo.bar.com mydomain -> mytest.com myorigin -> testme.com Confirm settings using postconf. Confirm that this is the config file being read, and not some other. Stop and start postfix to insure a clean reload. When I send an email from the root account to a user account on the same machine (local), using the Unix mail command, the mail gets received as: >From root@foo.bar.com Mon Jan 30 16:22:23 2006 .... From: root <root@foo.bar.com> .... To: localuser@foo.bar.com .... ------------------------------------ Given the values of mydomain and myorigin, I would expect: From: root <root@testme.com> To: localuser@mytest.com ------------------------------------ For whatever reason, the values that I set with mydomain and myorigin are being ignored and replaced by the value of gethostbyname. This config has worked well for me on the older version. This config is a vanilla, default config, as provided by Postfix 2.2.2, modified only to reflect the desired mydomain and myorigin. ------------------------------------- Can anyone help? Is there a flag that needs to be set somewhere? Is this functionality moved to another config area? Did redhat screwup this release? Any help would be appreciated, and the results will be documented here for future reference! |
|
|||
|
SOLUTION.....
I guess it comes as no surprise... The Postfix in the Fedora Core 4 release appears to be broken. I erased the postfix rpm ... rpm -e postfix Then downloaded the source and recompiled and installed. Now it works as expected. I shoulda done that a few days ago... Hope this helps somebody else, and saves some grief... NOTE... Maybe the broken postfix isn't a bad thing... at least broken in this way... Unless you know what you are doing, and are capable of compiling and installing a recent version of postfix, at least you get a working MTA. The catch is you cannot easily forge the From: addresses, which allows spam to be traced back to your host. Maybe not a bad thing. |