Setting Up Postfix On Ubuntu Server Is An Easy Task
Content Management System and blogging platforms tend to send emails for notifications, account confirmation, etc. For example, WordPress, is widely used blogging platform that sends emails to Admin when a comment is posted, new user registered or messages submitted. If your server is already online and ready to host your website files and database, you should install a Content Management System of your preference, like we used WordPress as an example. It is additional feature if you also have Postfix installed. Your site’s visitors should be able to send you message via contact form, you should also be able to know each time new comment is posted or something is waiting your moderation, etc.
- An Ubuntu OS (or smilar like Debian; we have used Ubuntu 12.04.);
- Installed Apache or Nginx web server;
- Installed MySQL server;
- The usual application to access your server via SSH (we have used Putty).
Setting Up Postfix
Step 1: Login to your server via SSH. You should maybe use Ubuntu setup, if root login has been disabled. If you do so, when you are logged in, just type su and Enter, then type your root password.
Step 2: Type the following command to get Postfix installation:
apt-get install postfix.
For the question: “Do you want to continue” answer with yes by typing Y and Enter.
Step 3: The installer script will display information about available configurations. Select “OK”.
Step 4: Then it will ask you which Postfix configuration you want to use. Select “Internet Site“. Use Up and Down, Right and Left arrow to navigate and select “OK”.
Step 5: Choose your server’s fully qualified domain name (FQDN). You could use something like mail.yourserver.com, host.yourservercom, server.yourserver.com or similar.
Step 6: After all those steps are done, all you have to do is wait the process to finish. You should get a confirmation message.
Step 7: Make sure all configurations are loaded, and restart Postfix service with the following command:
That is all you need to do. It is a smart move to try it out by sending a test email!