On 3/2/2015 1:24 PM, Dave M wrote: > How do we stop qmail " local " delivery? na d force out other servers > > Thanks > Dave M > Remove your domain from this file /var/qmail/control/rcpthosts
* *rcpthosts* (qmail-smtpd) Default: every domain. The list of domains for which this host accepts SMTP mail. It is extremely important that this file exist. If it doesn't, qmail will accept mail destined for anywhere and will be an "open relay," and a magnet for spammers. Add the relay to this file /var/qmail/control/smtproutes * *smtproutes* (qmail-remote) Default: none. Explicit routes to use to deliver outgoing mail, overriding MX data. Each line is of one of these forms: (Domain):(IP Address) domain:relay domain:relay:port anydomain.com:xxx.xxx.xxx.xxx //IP address Domain is the domain in the destination email address, relay is the name of the host to which to deliver the mail, and the optional port is the port number if not the standard port 25. The domain can use wildcards; if it starts with a dot, it matches any target domain that ends with that domain. If the domain is empty, it matches all addresses, providing "smarthost" routing to send all mail to a single smarthost for delivery. If relay is empty, qmail uses the standard MX lookup, letting you override a broader wildcard or smarthost route. Most systems can get by without smtproutes, but there are three situations where it can come in handy. The first is a smarthost, mentioned previously, if your computer is on a dialup, DSL, or cable modem, and the smarthost is your ISP's outgoing mail server. The second is to temporarily patch around broken MX records or mail relays. The third is to route mail for private domains within your network. Eric
