FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 10-13-2008, 04:47 PM
Robert Moskowitz
 
Default my postfix ignores myhostname parameter

David Hláčik wrote:

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*
[root@sx1 postfix]# postconf -d myhostname
*myhostname = sx1.labs.hlacik.eu*
What is wrong??


What is in:

/etc/hosts
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-ethn (where n is the interface number)

???


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-13-2008, 05:00 PM
Ralph Angenendt
 
Default my postfix ignores myhostname parameter

David Hláčik wrote:
> [root@sx1 postfix]# postconf -d myhostname
> *myhostname = sx1.labs.hlacik.eu*
>
>
> What is wrong??

postconf -d does not do what you think it does. I guess the machine is called
sx1.labs.hlacik.eu.

Try postconf -n myhostname

Cheers,

Ralph_____________________________________________ __
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-13-2008, 05:31 PM
Kai Schaetzl
 
Default my postfix ignores myhostname parameter

David Hlik wrote on Mon, 13 Oct 2008 18:17:57 +0200:

> *myhostname = sx1.labs.hlacik.eu*

Is that the name a gethostname() would show? (a gethostname would either
return the same as the hostname command or a host command on the IP, I
think). Then it makes sense.
mail.hlacik.eu points to another machine. You do not want to send out any
mail from your machine with a name that is pointing somewhere else.

Kai

--
Kai Schtzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-13-2008, 07:16 PM
mouss
 
Default my postfix ignores myhostname parameter

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 IPort, ..., 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@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org