Re: my postfix ignores myhostname parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



David Hláčik a écrit :
> Hello guys,
>  
> I do not know how it is posible :
>  
> *vi /etc/postfix/main.cf <http://main.cf>*
>  
>  
> # INTERNET HOST AND DOMAIN NAMES
> #
> # The myhostname parameter specifies the internet hostname of this
> # mail system. The default is to use the fully-qualified domain name
> # from gethostname(). $myhostname is used as a default value for many
> # other configuration parameters.
> #
> #myhostname = host.domain.tld
> myhostname = mail.hlacik.eu
>  
> *service postfix restart*
>  

I know you're testing. but once you get a "stable" config, restart is
often unnecessary. in most cases a 'postfix reload' is enough (and even
that isn't necessary in general, as most postfix services are relatively
short lived and will reread the conf at some time). of course, if you
change an IP:port, ..., you need to restart.

> [root@sx1 postfix]# postconf -d myhostname
> *myhostname = sx1.labs.hlacik.eu*
>  

the 'd' in "-d" stands for "default". Use

# postconf myhostname
or
# postconf -n myhostname
or
# postconf -h myhostname

instead.

>  
> What is wrong??

nothing, except that you forgot to RTFM ;-p




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux