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:
nixcraft.com
cyberciti.org
cyberciti.biz
theos.in
gite.in
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:
.nixcraft.com
Envelope recipient addresses without @ signs are always allowed through.”
🐧 2 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
How do I allow receiving email from my own domain to particular user only? I am using Qmail mail server software under Fedora Core Linux.
my domain is abc.com and now my domain is zxc.com how do i change qmail default domain..? [qmail in 1 server]