On Mon, Sep 09, 2002 at 04:10:56PM +0800, Martin Chung wrote:
> I have a big problem to add a new domain name.
> After I added a new domain name and then added a new user. I tried to
> send email to that user but I always received this message:
> Hi. This is the qmail-send program at mail.server.com.
> I'm afraid I wasn't able to deliver your message to the following addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> <[EMAIL PROTECTED]>:
> Sorry. Although I'm listed as a best-preference MX or A for that host,
> it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
> I have checked that the domain name is existed in morercpthosts but
> qmail-send always said not in control files. Although I use
> qmail-newmrh again and again, the problem didn't solve.
Notice that the error message doesn't say anything about rcpthosts or
SMTP. rcpthosts and morercpthosts are relevant only to qmail-smtpd (and
qmail-qmtpd), which has already accepted the message and put it into
the queue for qmail-send to deliver: see the diagram in
qmail-send can't work out how to deliver the message:
* the domain's not in control/locals or control/virtualdomains,
so it's not meant to be delivered to a user on the system
("it isn't in my control/locals file, so I don't treat it as local");
* therefore it must be intended for some other server...
but the DNS records (MX or A) point back to this server!
("I'm listed as a best-preference MX or A for that host")
vadddomain normally adds the necessary entries in files automatically;
did you use it? If so, what commands did you give, *exactly*, and did
you change any of the files by hand? If so, which and how?