Greetings! I've just installed postfix on CentOS 4.7 but I can't get it to deliver local mail.
If I try: mail user Subject: Test Just testing... . I get from "tail -f /var/log/maillog": Aug 27 14:56:24 host postfix/smtp[6906]: AAB33140C054: to=<[email protected]>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=host.domain type=A: Host not found) Aug 27 14:56:24 host postfix/cleanup[6905]: CF53F140C059: message-id=<20090827175624.cf53f140c...@host> Aug 27 14:56:24 host postfix/qmgr[6811]: CF53F140C059: from=<>, size=2362, nrcpt=1 (queue active) Aug 27 14:56:24 host postfix/qmgr[6811]: AAB33140C054: removed Aug 27 14:56:24 host postfix/smtp[6906]: CF53F140C059: to=<[email protected]>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=host.domain type=A: Host not found) Aug 27 14:56:24 host postfix/qmgr[6811]: CF53F140C059: removed It looks like postfix is trying to lookup host.domain through DNS instead of reading my /etc/hosts file, which looks like: # Do not remove the following line, or various programs # that require network functionality will fail. 10.11.66.1 host.domain host 127.0.0.1 localhost.localdomain localhost Also, /etc/host.conf looks like: order hosts,bind If I stop postfix and start sendmail, it just works. I have installed postfix through the instructions from HowToForge's The Perfect Server: http://www.howtoforge.com/perfect-server-centos-4.7-p5 I'm sure I'm missing something trivial, but I have read the documentation and I couldn't find any help on this behavior. Thanks for reading. Regards, Diogo
