Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I simply fail to set myhostname for postfix. I am running Debian 6.0.

I simply want to call:

postconf -e "myhostname = mail.mydomain.com"
service postfix restart

in order to prevent mails getting rejected by some servers for lacking fqdn hostname.

But it is simply ignored. My main.cf shows:

myhostname = mail.mydomain.com


postconf -d myhostname



just like before. As if I never changed anything.

What's the matter? ;) Any help appreciated.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Using postconf -d will show you the default value for the config parameter. Just remove the -d and use the following instead

$ postconf myhostname

and you should get the current value. See man postconf for more info.

share|improve this answer
Haha, thanks a lot. And sorry for my stupidity. Clear case of rtfm. –  phlebas Feb 5 '13 at 14:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.