Q: ONLY the content of the 'rcpthosts' and 'morercpthosts' (and any 
special cases in tcp.smtp) defines which domains' incoming mail will be 
accepted by SMTPd.  True or False?

FALSE: The contents of rcpthosts and morercpthosts define which domains mail is 
accepted by SMTP for [that part is right] however this is ONLY IF RELAYCLIENT 
is not set.  If relayclient is set, either by smtp authentication patch,, via 
the tcp.smtp file, or the environment of tcpserver, this file is completely 
ignored and everything is accepted.  If your 'special cases in tcp.smtp' meant 
that, then my answer is true.

Q: Domains that appear in 'locals' or 'virtualdomains' (for presumed 
delivery on the local box) but DO NOT appear in 
rcpthosts/morercpthosts/tcp.smtp (and have no smtphosts controls) CANNOT 
receive mail directly under normal circumstances.  True or False?

FALSE: rcpthosts/morercpthosts is a qmail-smtp file.  locals/virtualdomains is 
for qmail-send.  The sendmail program wrapper, qmail-inject, and qmail-queue, 
also allow mail into the queue (through local means) and will use these files 
to direct them mail once it is in the queue.  If your server doesn't use 
sendmail wrapper/qmail-queue/qmail-inject [such as for cron, local web server, 
local users], and never uses forwards as described in the next sentence, then 
smtp is the only entry point.  Another entry point is dot-qmail files and other 
settings that may forward mail once it is in the queue, injecting a new 
message.  While qmail-smtp may not accept mail for the destination of a 
forward, a forward will re-enter the queue since it's not going through 
qmail-smtpd, and the virtualhosts and locals files will be used to direct the 

In summary, domains that appear in local/virtualdomains but do not 
appear in rcpthosts/etc  have a VERY high probability of being 
misconfigured - with a likely root cause of improper/incomplete deletion 
of a domain from the system.  True or False?  (speculative answer, I 

FALSE: Assuming of course these weren't added manually, configuration settings 
for alias domains weren't lost in an upgrade or something weird like that, 
these domains are unlikely to cause many problems ... --- unless they are 
domains you actually send mail to --- ...  That being the key.  If hotmail.com 
is in the locals file, you won't be able to get mail to hotmail at all, as it 
will treat it as local.  Remember, some things are added to rcpthosts depending 
on the value used in the config of qmail itself (the final command you run to 
set up the control files with qmail).  If you added something strange there, or 
if it auto-detected something that could be incorrect or misconfigured, then 
you will likely have some extra things around.

The best practice is to clean up the control files and /var/qmail/users/assign 
to reflect your configuration in any case.  In general, I don't see why you're 
asking if it's a problem, rather than just fixing your control files anyway?


Reply via email to