Qmail Configuration
Hosted Cloud
Qmail - TCPServer
When using Qmail using tcpserver to spawn the qmail-smtp process, add a rule to your /etc/tcp.smtp
file directing it to accept connections based on the reverse DNS of the connecting host:
=delivery.antispamcloud.com:allow,RELAYCLIENT=''
Qmail - Inetd
When using Qmail as an inetd service by using tcp-env, all SMTP access configuration is done from the following files:
- /etc/hosts.allow
- /etc/hosts.deny
- Add the following line to /etc/hosts.allow
tcp-env: .antispamcloud.com: setenv = RELAYCLIENT
- Add the following line to /etc/hosts.deny . This will deny access from all hosts except those in /etc/hosts.allow for the inetd service qmail
tcp-env: ALL
Local Cloud
Replace .antispamcloud.com with your servers root hostname.