... related to a previous question about trouble running postfix on Centos 5.2(Final)
Looks like postfix relies on aliases.db
which is built by newaliases.postfix
command
When I run newaliases.postfix
it just hangs indefinitely.
I have found some tips, but they weren't helpful (I've changed /etc/hosts and /etc/sysconfig/network accordingly to no effect)
Running strace newaliases.postfix
shows this
...
close(4) = 0
munmap(0x2b9bb210c000, 4096) = 0
read(0, <unfinished ...>
Apparently it's trying to read from standard input but never gets any input.
Am I supposed to feed something to newaliases?
When I try newaliases.postfix < /etc/aliases
I get
newaliases.postfix: fatal: Recipient addresses must be specified on \
the command line or via the -t option
you have to put this on console and choose the right MTA (postfix in this case)
then run
this worked for me
You shouldn't have to specify newaliases.postfix, it should just be
newaliases
- but then again, you didn't tell me if you are on FreeBSD, Linux, OS X, or ? What are you running?Just the command by itself should digest the file. If it's hanging on the digest then something is horked.
EDIT:
Ok, you have
/etc/aliases.db
now, but postfix is failing to start on CentOS.Try this (as root):
When postfix fails to start, it should dump out an error message at the end of the log, and the
tail
command will show that message for you.