YOON, Joo-Yung writes:
> Can anynone explain me about the difference between
> rcpthosts and locals?
The difference is subtle and confusing. Many qmail users have
identical contents in both. rcpthosts lists the hostnames you will
accept via smtp. locals are the hosts by which your machine is known
to email users. In order for your users to receive mail via smtp
addresses to that host, it must be listed in rcpthosts and locals.
If a host is in locals but not rcpthosts, then only users who send
email while logged into the machine will be able to send mail to that
host.
If a host is in rcpthosts but not locals, then qmail will go looking
for a better machine to deliver the mail to. If there is no better
machine, then qmail will bounce the mail with the infamous
"Sorry. Although I'm listed as a best-preference MX or A for that
host,\n\ it isn't in my control/locals file, so I don't treat it as
local. (#5.4.6)\n". Qmail will go looking for an MX record, or A
record, or entry in control/smtproutes. If it finds none, it gives
up as above. If it finds no MX record with a lower cost, it gives up
as above.
If a host in neither rcpthosts nor locals, then qmail will not accept
mail via smtp, nor deliver any mail to that host locally.
--
-russ nelson <[EMAIL PROTECTED]> http://russnelson.com
Crynwr sells support for free software | PGPok |
521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude <windows.h>
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |