====== 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: {{https://www.cyberciti.biz/media/new/faq/2016/08/1-1.jpg?nolink&599x434|Fig.01: Postfix config during installation on an Ubuntu or Debian server}} Select Internet Site: {{https://www.cyberciti.biz/media/new/faq/2016/08/2-1.jpg?nolink&599x438|Fig: Select internet site as type of mail configuration}} Type fully qualified name of your domain such as flakie.org {{https://www.cyberciti.biz/media/new/faq/2016/08/3-1.jpg?nolink&599x434|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.