First tryI've set up multiple servers running Postfix.To get a general grasp of the state of the machine I usually redirect e-mail for root to my normal adress.I recently installed SUSE and tried to do the same. Opened /etc/aliases, added a line like this root:    user@mailserver.domain.com and ran newaliases. But messages are still delivered locally.I've tried doing the same configuration using yast2. It seems to do the same thing, but it does not deliver the message to my other machine.While troubleshooting something else broke, so now messages are no longer delivered locally, but rather the server refuses to create them:# telnet localhost 25Trying ::1...Connected to localhost.Escape character is '^]'.220 localhost ESMTPHELO localhost250 localhostMAIL FROM: user@suse-server.domain.com250 2.1.0 OkRCPT TO: root451 4.3.0 <user@suse-server.domain.com>: Temporary lookup failurequit221 2.0.0 ByeConnection closed by foreign host.Second tryI've tried nuking the installation:# zypper rm postfixLoading repository data...Reading installed packages...Resolving package dependencies...The following package is going to be REMOVED:  postfix1 package to remove.After the operation, 4.8 MiB will be freed.Continue? [y/n/? shows all options] (y):(1/1) Removing postfix-2.11.4-2.1 ........................................[done]Additional rpm output:warning: /etc/postfix/virtual saved as /etc/postfix/virtual.rpmsavewarning: /etc/postfix/sender_canonical saved as /etc/postfix/sender_canonical.rpmsavewarning: /etc/postfix/master.cf saved as /etc/postfix/master.cf.rpmsavewarning: /etc/postfix/main.cf saved as /etc/postfix/main.cf.rpmsaveThere are some running programs that might use files deleted by recent upgrade. You may wish to check and restart some of them. Run 'zypper ps' to list these programs.# rm -rf /etc/postfix# rm -rf /etc/aliasesand starting over, using only yast2:# zypper in postfixLoading repository data...Reading installed packages...Resolving package dependencies...The following NEW package is going to be installed:  postfix1 new package to install.Overall download size: 1007.1 KiB. Already cached: 0 B  After the operation, additional 4.8 MiB will be used.Continue? [y/n/? shows all options] (y):Retrieving package postfix-2.11.4-2.1.x86_64                                                                                                   (1/1), 1007.1 KiB (  4.8 MiB unpacked)Retrieving: postfix-2.11.4-2.1.x86_64.rpm .......................................................................................................................[done (799.0 KiB/s)]Checking for file conflicts: ..................................................................................................................................................[done](1/1) Installing: postfix-2.11.4-2.1 ..........................................................................................................................................[done]# yast2 mailBut mail to root does not get sent to my other machine:# telnet localhost 25Trying ::1...Connected to localhost.Escape character is '^]'.220 suse-server.domain.com ESMTPHELO localhost250 suse-server.domain.comMAIL FROM: user@suse-server.domain.com250 2.1.0 OkRCPT TO: root451 4.3.0 <user@suse-server.domain.com>: Temporary lookup failurequit221 2.0.0 ByeConnection closed by foreign host.The same connection looks like this in the mail.logMar 23 21:12:56 suse-server postfix/smtpd[22842]: connect from unknown[::1]Mar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: error: open database /etc/postfix/virtual.db: No such file or directoryMar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: error: open database /etc/postfix/relay.db: No such file or directoryMar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: error: open database /etc/postfix/relocated.db: No such file or directoryMar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: error: open database /etc/postfix/transport.db: No such file or directoryMar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport is unavailable. open database /etc/postfix/transport.db: No such file or directory  Mar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport lookup error for * Mar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport is unavailable. open database /etc/postfix/transport.db: No such file or directory  Mar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport lookup error for *Mar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/virtual is unavailable. open database /etc/postfix/virtual.db: No such file or directoryMar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/virtual: table lookup problemMar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport is unavailable. open database /etc/postfix/transport.db: No such file or directory  Mar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport lookup error for user@suse-server.domain.comMar 23 21:13:22 suse-server postfix/trivial-rewrite[22844]: warning: transport_maps lookup failureMar 23 21:13:26 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/virtual is unavailable. open database /etc/postfix/virtual.db: No such file or directoryMar 23 21:13:26 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/virtual: table lookup problemMar 23 21:13:26 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport is unavailable. open database /etc/postfix/transport.db: No such file or directory  Mar 23 21:13:26 suse-server postfix/trivial-rewrite[22844]: warning: hash:/etc/postfix/transport lookup error for root@suse-server.domain.comMar 23 21:13:26 suse-server postfix/trivial-rewrite[22844]: warning: transport_maps lookup failureMar 23 21:13:26 suse-server postfix/smtpd[22842]: NOQUEUE: reject: RCPT from unknown[::1]: 451 4.3.0 <user@suse-server.domain.com>: Temporary lookup failure; from=<user@suse-server.domain.com> to=<root> proto=SMTP helo=<localhost>Mar 23 21:13:29 suse-server postfix/smtpd[22842]: disconnect from unknown[::1]Please help.Keep troubleshootingAbout my system# cat /etc/os-releaseNAME=openSUSEVERSION=20150319 (Tumbleweed)VERSION_ID=20150319PRETTY_NAME=openSUSE 20150319 (Tumbleweed) (x86_64)ID=opensuseANSI_COLOR=0;32CPE_NAME=cpe:/o:opensuse:opensuse:20150319BUG_REPORT_URL=https://bugs.opensuse.orgHOME_URL=https://opensuse.org/ID_LIKE=suseAnother errorLeft the machine in a broken state over night, log is filled with lines like the following:Mar 24 06:48:28 suse-server postfix/pickup[25006]: 6B0DE6FD: uid=0 from=<root>Mar 24 06:48:28 suse-server postfix/cleanup[25051]: warning: hash:/etc/postfix/sender_canonical is unavailable. open database /etc/postfix/sender_canonical.db: No such file or directoryMar 24 06:48:28 suse-server postfix/cleanup[25051]: warning: hash:/etc/postfix/sender_canonical lookup error for root@suse-server.domain.comMar 24 06:48:28 suse-server postfix/cleanup[25051]: warning: 6B0DE6FD: sender_canonical_maps map lookup problem for root@suse-server.domain.com -- message not accepted, try again laterMar 24 06:48:28 suse-server postfix/cleanup[25051]: warning: hash:/etc/postfix/canonical is unavailable. open database /etc/postfix/canonical.db: No such file or directoryMar 24 06:48:28 suse-server postfix/cleanup[25051]: warning: hash:/etc/postfix/canonical lookup error for root@suse-server.domain.comMar 24 06:48:28 suse-server postfix/cleanup[25051]: warning: 6B0DE6FD: canonical_maps map lookup problem for root@suse-server.domain.com -- message not accepted, try again laterMar 24 06:48:28 suse-server postfix/pickup[25006]: warning: maildrop/80E795FC: error writing 6B0DE6FD: queue file write errorCleaning up the logsThe numerous lookup errors can be silenced with postman (why yast2 mail does not run postmap is beyond me to understand):suse-server:~ # postmap /etc/postfix/transportsuse-server:~ # postmap /etc/postfix/sender_canonicalsuse-server:~ # postmap /etc/postfix/canonicalsuse-server:~ # postmap /etc/postfix/virtualsuse-server:~ # postmap /etc/postfix/relaysuse-server:~ # postmap /etc/postfix/relocatedsuse-server:~ # systemctl restart postfix.serviceNew errorsPostmapping is not the solution to the problem however:Mar 24 15:18:02 suse-server echo[27096]: Starting mail service (Postfix)Mar 24 15:18:02 suse-server postfix/postfix-script[27178]: starting the Postfix mail systemMar 24 15:18:02 suse-server postfix/master[27180]: daemon started -- version 2.11.4, configuration /etc/postfixMar 24 15:18:02 suse-server postfix/pickup[27182]: C9084931: uid=0 from=<root>Mar 24 15:18:02 suse-server postfix/cleanup[27187]: C9084931: message-id=<20150324141802.C9084931@suse-server.domain.com>Mar 24 15:18:02 suse-server postfix/qmgr[27183]: C9084931: from=<root@suse-server.domain.com>, size=785, nrcpt=1 (queue active)Mar 24 15:18:02 suse-server postfix/cleanup[27187]: D6A16932: message-id=<20150324141802.C9084931@suse-server.domain.com>Mar 24 15:18:02 suse-server postfix/qmgr[27183]: D6A16932: from=<root@suse-server.domain.com>, size=910, nrcpt=1 (queue active)Mar 24 15:18:02 suse-server postfix/local[27189]: C9084931: to=<root@suse-server.domain.com>, orig_to=<root>, relay=local, delay=45656, delays=45656/0.01/0/0.03, dsn=2.0.0, status=sent (forwarded as D6A16932)Mar 24 15:18:02 suse-server postfix/qmgr[27183]: C9084931: removedMar 24 15:18:02 suse-server postfix/smtp[27190]: fatal: valid hostname or network address required in server description: []Mar 24 15:18:03 suse-server postfix/qmgr[27183]: warning: private/smtp socket: malformed responseMar 24 15:18:03 suse-server postfix/qmgr[27183]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem descriptionMar 24 15:18:03 suse-server postfix/master[27180]: warning: process /usr/lib/postfix/smtp pid 27190 exit status 1Mar 24 15:18:03 suse-server postfix/master[27180]: warning: /usr/lib/postfix/smtp: bad command startup -- throttlingMar 24 15:18:03 suse-server postfix/error[27191]: D6A16932: to=<user@mail-server.domain.com>, orig_to=<root>, relay=none, delay=1.1, delays=0.03/1/0/0.04, dsn=4.3.0, status=deferred (unknown mail transport error)Mar 24 15:23:02 suse-server postfix/qmgr[27183]: D6A16932: from=<root@suse-server.domain.com>, size=910, nrcpt=1 (queue active)Mar 24 15:23:02 suse-server postfix/smtp[27196]: fatal: valid hostname or network address required in server description: []Mar 24 15:23:03 suse-server postfix/qmgr[27183]: warning: private/smtp socket: malformed responseMar 24 15:23:03 suse-server postfix/qmgr[27183]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem descriptionMar 24 15:23:03 suse-server postfix/master[27180]: warning: process /usr/lib/postfix/smtp pid 27196 exit status 1Mar 24 15:23:03 suse-server postfix/master[27180]: warning: /usr/lib/postfix/smtp: bad command startup -- throttlingMar 24 15:23:03 suse-server postfix/error[27198]: D6A16932: to=<user@mail-server.domain.com>, orig_to=<root>, relay=none, delay=300, delays=299/1/0/0.03, dsn=4.3.0, status=deferred (unknown mail transport error)Mar 24 15:23:48 suse-server postfix/smtpd[27202]: error: open database /etc/postfix/access.db: No such file or directoryMar 24 15:23:48 suse-server postfix/smtpd[27202]: connect from unknown[::1]Mar 24 15:24:11 suse-server postfix/smtpd[27202]: warning: hash:/etc/postfix/access is unavailable. open database /etc/postfix/access.db: No such file or directoryMar 24 15:24:11 suse-server postfix/smtpd[27202]: warning: hash:/etc/postfix/access: table lookup problemMar 24 15:24:11 suse-server postfix/smtpd[27202]: NOQUEUE: reject: RCPT from unknown[::1]: 451 4.3.5 <user>: Sender address rejected: Server configuration error; from=<user> to=<root> proto=SMTP helo=<localhost>Mar 24 15:24:18 suse-server postfix/smtpd[27202]: disconnect from unknown[::1]I do start to believe that postfix on suse is blessed with rather insane defaults, with the pile of logged errors not getting any smaller even though a lot of the errors has been removed.Mail accepted after another postmapFound another file to postmap, after which postfix accepts the message.suse-server:~ # postmap /etc/postfix/accesssuse-server:~ # systemctl restart postfix.servicesuse-server:~ # telnet localhost 25Trying ::1...Connected to localhost.Escape character is '^]'.220 suse-server.domain.com ESMTPHELO localhost250 suse-server.domain.comMAIL FROM: user250 2.1.0 OkRCPT TO: root250 2.1.5 OkDATA354 End data with <CR><LF>.<CR><LF>Subject: testasd.250 2.0.0 Ok: queued as 4797894Fquit221 2.0.0 ByeConnection closed by foreign host.Unfortunately it still tosses the message in the bin:suse-server:~ # journalctl | tail -18Mar 24 15:35:18 suse-server echo[27287]: Starting mail service (Postfix)Mar 24 15:35:19 suse-server postfix/postfix-script[27369]: starting the Postfix mail systemMar 24 15:35:19 suse-server postfix/master[27371]: daemon started -- version 2.11.4, configuration /etc/postfixMar 24 15:35:45 suse-server postfix/smtpd[27380]: connect from unknown[::1]Mar 24 15:35:59 suse-server postfix/smtpd[27380]: 4797894F: client=unknown[::1]Mar 24 15:36:12 suse-server postfix/cleanup[27383]: 4797894F: message-id=<20150324143559.4797894F@suse-server.domain.com>Mar 24 15:36:12 suse-server postfix/qmgr[27374]: 4797894F: from=<user@suse-server.domain.com>, size=299, nrcpt=1 (queue active)Mar 24 15:36:12 suse-server postfix/cleanup[27383]: E8C94950: message-id=<20150324143559.4797894F@suse-server.domain.com>Mar 24 15:36:12 suse-server postfix/qmgr[27374]: E8C94950: from=<user@suse-server.domain.com>, size=424, nrcpt=1 (queue active)Mar 24 15:36:12 suse-server postfix/local[27384]: 4797894F: to=<root@suse-server.domain.com>, orig_to=<root>, relay=local, delay=18, delays=18/0.01/0/0.03, dsn=2.0.0, status=sent (forwarded as E8C94950)Mar 24 15:36:12 suse-server postfix/qmgr[27374]: 4797894F: removedMar 24 15:36:12 suse-server postfix/smtp[27385]: fatal: valid hostname or network address required in server description: []Mar 24 15:36:14 suse-server postfix/qmgr[27374]: warning: private/smtp socket: malformed responseMar 24 15:36:14 suse-server postfix/qmgr[27374]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem descriptionMar 24 15:36:14 suse-server postfix/master[27371]: warning: process /usr/lib/postfix/smtp pid 27385 exit status 1Mar 24 15:36:14 suse-server postfix/master[27371]: warning: /usr/lib/postfix/smtp: bad command startup -- throttlingMar 24 15:36:14 suse-server postfix/error[27386]: E8C94950: to=<user@mail-server.domain.com>, orig_to=<root>, relay=none, delay=1.1, delays=0.03/1/0/0.03, dsn=4.3.0, status=deferred (unknown mail transport error)Mar 24 15:36:14 suse-server postfix/smtpd[27380]: disconnect from unknown[::1]valid hostnameyast2 sets relayhost = [] in /etc/postfix/main.cf, removing that line removes the error:fatal: valid hostname or network address required in server description: []fatal: unknown service: smtp/tcpThat gives way to the error:postfix/smtp[6108]: fatal: unknown service: smtp/tcpwhich can be solved by disabling chroot on smtp by changing master.cf from:# grep ^smtp master.cf smtp      inet  n       -       y       -       -       smtpdsmtp      unix  -       -       y       -       -       smtpto# grep ^smtp master.cf smtp      inet  n       -       n       -       -       smtpdsmtp      unix  -       -       n       -       -       smtpAfter disabling the chroot I do get root's e-mail to my expected mailbox.So the question now is probably why postfix is installed without a working chroot for smtp?
Postfix alias for root not working in SUSE
email;opensuse;postfix;suse