A null client is a client machine that runs a local mail server which forwards all emails to an outbound mail relay server for delivery. A null client does not accept local delivery for any messages, it can only send them to the outbound mail relay server. Users may run mail clients on the null client to read and send emails.
In Red Hat Enterprise Linux (RHEL) 7, default mail server is postfix (a powerful but easy-to-configure mail server). In this article, we will configure a null client using postfix mail server.
System Specification:
There is no special requirement for null client. Therefore, we are using a virtual machine with following specification.
- Operating System - Red Hat Enterprise Linux (RHEL) 7
- Hostname - server1.example.com
- IP Address - 192.168.116.12/24
- Email Relay Host - 192.168.116.5
Installing Postfix on RHEL 7:
Connect to server1.example.com using ssh, and install postfix using yum command.
# yum install -y postfix
Configure postfix using postconf command.
# postconf -e 'relayhost=[192.168.116.5]' # postconf -e 'inet_interfaces=loopback-only' # postconf -e 'myorigin=server1.example.com' # postconf -e 'mydestination=' # postconf -e 'local_transport=error: local delivery disabled' # postconf -e 'mynetworks=127.0.0.0/8,[::1]/128' # systemctl start postfix.service ; systemctl enable postfix.service
Our null client mail server on RHEL 7 has been configured successfully.