Q. How do I allow receiving email from my own domain only? I am using Qmail mail server software under Fedora Core Linux.
A. You can change the behavior of the qmail system by modifying qmail's control files. This is essential as you do not want to become a source of open mail relay. By default qmail will not relay. However every persons need is different. You can force qmail to accept domain listed rcphosts file only.
Open file /var/qmail/control/rcpthosts
# vi /var/qmail/control/rcpthosts
And append your domain name to accept email. Here is my sample file from my own box:
Save the file. And restart qmail.
From the qmail man page, "Allowed RCPT domains. If rcpthosts is supplied, qmail-smtpd will reject any envelope recipient address with a domain not listed in rcpthosts. Exception: If the environment variable RELAYCLIENT is set, qmail-smtpd will ignore rcpthosts, and will append the value of RELAYCLIENT to each incoming recipient address. rcpthosts may include wildcards:
Envelope recipient addresses without @ signs are always allowed through."Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?
- 30 Cool Open Source Software I Discovered in 2013
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012
- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop