Okay, I see now that use of the postconf -x myyadayada reveals the actual
changes.  Perhaps I am not understanding this properly.  My server hostname
is say mail.internal so right now any mail going out ends up with the from
field populated as

user@mail.internal

which will not fly with most relays.  So I want to use

mydomain = valid.com

then set the following

myhostname=$mydomain
myorigin=$mydomain

The postconf -x myhostname now reveals the proper 'myhostname = valid.com',
which is great.  But, outgoing mail is still reading from field as
'user@mail.internal'.  Is this correct behavior that I am just
misinterpreting as a problem?

Thanks,

A>AM

-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Adam Courville
Sent: Sunday, August 31, 2014 10:16 PM
To: 'postfix users'
Subject: RE: Postfix ignores main.cf changes

Understood and thanks, but that doesn't answer why it is not reading the
main.cf file.  Viewing the system journal created, I can see test emails
using the default system settings for hostname and domainname instead of
those specified in the main.cf file.  I will try the -o parameter next to
see if I can force the values.

Thanks again,

A>AM

-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Noel Jones
Sent: Sunday, August 31, 2014 8:37 PM
To: postfix-users@postfix.org
Subject: Re: Postfix ignores main.cf changes

On 8/31/2014 7:40 PM, Adam Courville wrote:
> I apologize if this problem has been reported before, but I am having 
> no luck determining a resolution through online searches.
> 
>  
> 
> Environment:  Fedora Core 20 on a NATted server (private, static LAN 
> IPs through a router to the Internet).  Postfix installed through yum 
> method and is latest available for FC20.
> 
>  
> 
> Problem:  Changes to mydomain, myhostname and/or myorigin are not 
> being picked up by postfix whether I use reload or stop/start nethods.
> 
>  
> 
> Check reveals no adverse syntax in the main.cf file before/after 
> editing.
> 
>  
> 
> I tried using postconf -e "myorigin = typical.com" and the parameter 
> is appended to the end of the main.cf file.  But, it is not used by 
> postix after a reload or stop/start toggle.
> 
>  
> 
> Likewise, I have renamed/moved the main.cf file to see that postfix is 
> indeed looking for it in the location it was found.  Confirmed that is 
> indeed /etc/postfix/ path.
> 
>  
> 
> The master.cf file shows no indication that any portion is chrooted.
> 
>  
> 
> I have changed setenforcement to Permissive with no change to the 
> behavior.
> 
>  
> 
> The only way I can alter the mydomain or myhostname is by changing the 
> actual hostname and domainname parameters in Fedora Core 20 
> temporarily.
> 
>  
> 
> So what gives?  It really looks as though postfix is ignoring 
> uncommented parameters in the main.cf file.  However, I have confirmed 
> it is looking at the correct file.  I even forced it with a postfix -c 
> /etc/postfix/main.cf start attempt.  The postconf -d myhostname still 
> reflects the system default rather than the values I am setting in the 
> main.cf file.
> 
>  
> 
> Purpose:  I want to masquerade my natted system as an actual site (to 
> which I have rights) simply for forwarding server diagnostics emails, 
> while I am away.  Relays won't accept the hostname I have used for the 
> server as a valid email suffix.
> 
>  
> 
> Any assistance would be appreciated.
> 
>  
> 
> Cheers,
> 
>  
> 
> A>AM
> 


Please review
http://www.postfix.org/postconf.1.html

Note the description for the -d flag:
  -d     Print  main.cf default parameter settings instead of actual
set-
              tings.  Specify -df to fold long  lines  for  human
readability
              (Postfix 2.9 and later).



  -- Noel Jones




Reply via email to