~control/rcpthosts
From Qmail-LDAP Wiki
rcpthosts - list of remote domains to which relay is permitted
Allowed remote RCPT domains. If rcpthosts is supplied, qmail-smtpd will reject any envelope recipient address
with a domain not listed in rcpthosts and in locals.
Exception:
- If the environment variable RELAYCLIENT is set, qmail-smtpd will ignore rcpthosts and locals, and will append the value of RELAYCLIENT to each incoming recipient address.
rcpthosts may include wildcards:
heaven.af.mil- .heaven.af.mil
Envelope recipient addresses without @ signs are always allowed through.
Notes:
- As noted above, qmail-smtpd also reads locals, so you only need to use rcpthosts when you want to relay for domains of remote mailservers.
- These remote mailservers are not members of your cluster.
- The domains of the cluster members are listed in locals and not in rcpthosts.
- rcpthosts can be used to create rcpthosts.cdb control file (cdb format).
- rcpthosts will be ignored if rcpthosts.cdb exists
