postfix configuration
I'm trying to modify my postfix configuration so that it will modify the sending domain. I've done this on my red hat box by setting the following in /etc/postfix/main.cf: main.cf:myhostname = www.3times25.net main.cf:mydomain = 3times25.net When I do the same on my SuSE box, it does not work. I know that there is a /etc/sysconfig/postfix configuration file on SuSE that does not exist on red hat, but I can't figure out if something there is overriding my settings in /etc/postfix/main.cf Anyone have any suggestions/insight? -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin
Geoffrey wrote:
I'm trying to modify my postfix configuration so that it will modify the sending domain. I've done this on my red hat box by setting the following in /etc/postfix/main.cf:
main.cf:myhostname = www.3times25.net main.cf:mydomain = 3times25.net
When I do the same on my SuSE box, it does not work. I know that there is a /etc/sysconfig/postfix configuration file on SuSE that does not exist on red hat, but I can't figure out if something there is overriding my settings in /etc/postfix/main.cf
The only config file that might override, or rather modify a setting in Postfix is /etc/sysconfig/postfix. Once the postfix configuration has been manually changed SuSEconfig should not touch the Postfix configuration again. What exactly do you mean with "modify the sending domain"? Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
Sandy Drobic wrote:
Geoffrey wrote:
I'm trying to modify my postfix configuration so that it will modify the sending domain. I've done this on my red hat box by setting the following in /etc/postfix/main.cf:
main.cf:myhostname = www.3times25.net main.cf:mydomain = 3times25.net
When I do the same on my SuSE box, it does not work. I know that there is a /etc/sysconfig/postfix configuration file on SuSE that does not exist on red hat, but I can't figure out if something there is overriding my settings in /etc/postfix/main.cf
The only config file that might override, or rather modify a setting in Postfix is /etc/sysconfig/postfix. Once the postfix configuration has been manually changed SuSEconfig should not touch the Postfix configuration again.
What exactly do you mean with "modify the sending domain"?
My home network is named home.edu and the machine is named eiger, so it's fq name is eiger.home.edu. My public domain is 3times25.net, so email sent from that machine should show up as coming from esoteric@3times25.net, instead it's showing up as esoteric@eiger.home.edu. -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin
Geoffrey wrote:
My home network is named home.edu and the machine is named eiger, so it's fq name is eiger.home.edu. My public domain is 3times25.net, so email sent from that machine should show up as coming from esoteric@3times25.net, instead it's showing up as esoteric@eiger.home.edu.
You basically set up "3times25.net" as a virtual domain on your server. It's a standard postfix procedure. Per Jessen, Zurich -- http://www.spamchek.com/ - managed email security. Starting at SFr5/month/user.
Geoffrey wrote:
Sandy Drobic wrote:
Geoffrey wrote:
I'm trying to modify my postfix configuration so that it will modify the sending domain. I've done this on my red hat box by setting the following in /etc/postfix/main.cf:
main.cf:myhostname = www.3times25.net main.cf:mydomain = 3times25.net
When I do the same on my SuSE box, it does not work. I know that there is a /etc/sysconfig/postfix configuration file on SuSE that does not exist on red hat, but I can't figure out if something there is overriding my settings in /etc/postfix/main.cf
The only config file that might override, or rather modify a setting in Postfix is /etc/sysconfig/postfix. Once the postfix configuration has been manually changed SuSEconfig should not touch the Postfix configuration again.
What exactly do you mean with "modify the sending domain"?
My home network is named home.edu and the machine is named eiger, so it's fq name is eiger.home.edu. My public domain is 3times25.net, so email sent from that machine should show up as coming from esoteric@3times25.net, instead it's showing up as esoteric@eiger.home.edu.
That is more the job of the sending client. Only, if an email address is not fully qualified, Postfix will qualify the address with the value of $myorigin, which defaults to $mydomain. execute as root: postconf -e "mydomain = 3times25.net" postconf -e "myhostname = www.3times25.net" postconf -e "myorigin = $mydomain" postfix reload Then test again. If that doesn't solve your problem, please post the output of "postconf -n" and a part of the log lines where the trouble appears. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
Sandy Drobic wrote:
Geoffrey wrote:
My home network is named home.edu and the machine is named eiger, so it's fq name is eiger.home.edu. My public domain is 3times25.net, so email sent from that machine should show up as coming from esoteric@3times25.net, instead it's showing up as esoteric@eiger.home.edu.
That is more the job of the sending client. Only, if an email address is not fully qualified, Postfix will qualify the address with the value of $myorigin, which defaults to $mydomain.
execute as root: postconf -e "mydomain = 3times25.net" postconf -e "myhostname = www.3times25.net" postconf -e "myorigin = $mydomain" postfix reload
Then test again. If that doesn't solve your problem, please post the output of "postconf -n" and a part of the log lines where the trouble appears.
Thanks, this addressed the issue. I believe I attempted the same by editing the config file. Now I want to go back and figure out what I missed. Thanks again. -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin
Geoffrey wrote:
Sandy Drobic wrote:
Geoffrey wrote:
My home network is named home.edu and the machine is named eiger, so it's fq name is eiger.home.edu. My public domain is 3times25.net, so email sent from that machine should show up as coming from esoteric@3times25.net, instead it's showing up as esoteric@eiger.home.edu.
That is more the job of the sending client. Only, if an email address is not fully qualified, Postfix will qualify the address with the value of $myorigin, which defaults to $mydomain.
execute as root: postconf -e "mydomain = 3times25.net" postconf -e "myhostname = www.3times25.net" postconf -e "myorigin = $mydomain" postfix reload
Then test again. If that doesn't solve your problem, please post the output of "postconf -n" and a part of the log lines where the trouble appears.
Thanks, this addressed the issue. I believe I attempted the same by editing the config file. Now I want to go back and figure out what I missed.
"postconf -n" shows the configuration as Postfix will see it with all parameters that do not match the default. If a parameter does not appear here with the value you assigned, you need to check for spelling mistakes or later lines overriding previously defined values. The one exception is that restriction classes do not appear in this configuration view. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
participants (3)
-
Geoffrey
-
Per Jessen
-
Sandy Drobic