On Thursday 27 August 2009 13:07:32 Diogo Sperb Schneider wrote:
> Greetings!
Diogo, old friend, long time no see!
> I've just installed postfix on CentOS 4.7 but I can't get it to
> deliver local mail.
>
> If I try:
>
> mail user
"user" is an unqualified address. By default it is routed to
"u...@$myorigin". See:
http://www.postfix.org/postconf.5.html#append_at_myorigin
http://www.postfix.org/BASIC_CONFIGURATION_README.html
> 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)
In your case, $myorigin is not recognized as a domain for which you
should be the final destination.
> 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:
Correct. Mail routing is done by means of DNS lookups.
> If I stop postfix and start sendmail, it just works.
Perhaps sendmail has a different means of knowing what domains to
handle as final destination. Or, sendmail has been configured to
accept this domain.
> 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.
You might also find these of interest:
http://www.postfix.org/VIRTUAL_README.html
http://www.postfix.org/ADDRESS_CLASS_README.html
You probably have all these HTML links on your own system, which in
the case of CentOS, you might find easier to follow, because there
have been a great many changes in Postfix since your version. The
documentation always mentions version-specific behavior, but it's
probably better to avoid the problem. The documentation that came
with your version was up-to-date for your version.
> Thanks for reading.
Good to "see" you again!
--
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header