Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52686 - Postfix configuration does not work on system with certain hostnames?
Summary: Postfix configuration does not work on system with certain hostnames?
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Desktop Configuration Guide (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/desktop.xml
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-01 07:26 UTC by M. Creidieki Crouch
Modified: 2004-07-02 08:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M. Creidieki Crouch 2004-06-01 07:26:51 UTC
Hi. I'm having problems getting the Postfix installation instructions in the Desktop Installation Guide (URL above) to work. I believe this is because of the way that the hostname, etc. are set up on my system.

I have my hostname and dnsdomainname set up as described in the Gentoo Linux Handbook (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8):
"
#####] cat /etc/hostname
Malakai
#####] cat /etc/dnsdomainname
creidieki
"

I emerge'd postfix as described in the Desktop Configuration Guide (http://www.gentoo.org/doc/en/desktop.xml):
"
#####] emerge -pv postfix
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild   R   ] mail-mta/postfix-2.0.19  -ipv6 -ldap -maildir -mbox -mysql +pam -postgres -sasl +ssl  321 kB
"

I then installed postfix, as the guide instructs, but it didn't work on my system. I started without making the configuration changes recommended:

{immediately after emerge'ing}
"
#####] postfix check
postfix: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postsuper: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
#####] newaliases
newaliases: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postalias: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
#####] postfix start
postfix: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postsuper: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postfix/postfix-script: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postfix/postfix-script: starting the Postfix mail system
#####] mutt -x root
#####] mutt -x mcrouch@linux.andrew.cmu.edu
"

Neither of the two emails were sent, either locally or remotely. I then changed the /etc/postfix/main.cf file, as described in Code Listing 6.2, and tried again, but this didn't seem to fix the problem:

"
#####] nano -w /etc/postfix/main.cf
#####] postfix stop
postfix: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postfix/postfix-script: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postfix/postfix-script: stopping the Postfix mail system
#####] postfix check
postfix: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postsuper: warning: My hostname Malakai is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
"

I am using DHCP to connect to the internet. The output of "emerge info" follows:

"
#####] emerge info
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/home/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/home/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb cdr cjk crypt cups doc dvd emacs encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tetex tiff truetype unicode usb videos x86 xml2 xmms xv zlib"
"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-06-01 08:37:08 UTC
Have you tried something like this in your /etc/hosts ?
127.0.0.1     your_host_name.localhost.localdomain     your_host_name
Comment 2 M. Creidieki Crouch 2004-06-03 05:22:06 UTC
Lang,

That makes the error messages go away, but my mail still isn't able to get to outside hosts. I have my hostname set to "Malakai", because it sounds neat, but I don't actually have "malakai.dsl.telerama.com" from my ISP, I have something that DHCP gives me ("dsl-nnn-nnn.dsl.telerama.com"). This can change based on the IP address that I get from DHCP. I know I can't receive mail reliably at a changing email address, but can I set postfix up so that I can send mail without it getting bounced?
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-06-03 06:29:04 UTC
IMHO, it is might just a mis config. I suggest you post your qustion in here: http://forums.gentoo.org/viewforum.php?f=18 . It is easier to help you that way. When you get everything straighten out, come back and state what need to be change in the doc.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-02 08:39:06 UTC
bug timeout
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-02 08:39:44 UTC
err, not NEEDINFO but WORKSFORME
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-02 08:40:05 UTC
bugtimeout (2nd try)