Table of Contents

How to create a Postfix relay Server

To create a Postfix relay Server ensure you have the appropriate Linux distribution installed on a Virtual Server.

Install postfix

Type the following command to install postfix:

sudo apt install postfix

You need to select mail server type:

Fig.01: Postfix config during installation on an Ubuntu or Debian server

Select Internet Site:

Fig: Select internet site as type of mail configuration

Type fully qualified name of your domain such as flakie.org

Fig.03: Type FQDN

Configure myhostname

Edit /etc/postfix/main.cf, enter:

sudo nano /etc/postfix/main.cf

Set myhostname to FQDN as configured earlier

myhostname = bash.cyberciti.biz

Save and close the file.