Postfix Null Client Configuration in Linux 7

Share on Social Media

In this tutorial, you will learn about Postfix Null Client configuration in Linux 7. #centlinux #linux #mailserver

What is a Null Client Mail Server? :

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 perform Postfix Null Client Configuration in Linux.

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

Install Postfix on RHEL 7:

Connect to server1.example.com using ssh, and install postfix using yum command.

# yum install -y postfix

Configure Postfix Null Client:

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.

Conclusion:

In this tutorial, you have learned about Postfix Null Client configuration in Linux 7.