CentLinux | Learn How to Install CentOS/Rocky Linux Servers

Monday, December 3, 2018

Configure a Null Client Mail Server on RHEL/CentOS 7

Configure a Null Client Mail Server in RHEL

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 -
  • Email Relay Host -

Configure a Null Client Mail Server in RHEL

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=[]'
# 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=,[::1]/128'
# systemctl start postfix.service ; systemctl enable postfix.service

Our null client mail server on RHEL 7 has been configured successfully.

If you find this article useful? Consider supporting us by Buy Me A Coffee

No comments:

Post a Comment

© 2023 CentLinux. All Rights Reserved.