Monthly Archives: April 2020

Install and Configure Postfix with Gmail SMTP for Perfect Mailing System

Changing the Hostname on Ubuntu Server

Before we configure Postfix MTA, let’s adjust our hostname to reflect the correct domain name in our outgoing internal email.

Setting up a hostname is really important if you’re using a custom domain for emailing. The hostname helps in proper mailing address.

One of the easiest and reliable solutions that I recommend is using G Suite to have a business email address, for example: team@restorebin.com. You can also get a 20% discount on sign up using this G Suite coupon code.

About Hostname, you can check your current hostname using the below command line in SSH:

hostname -f

The hostname command can also be used for changing the Ubuntu Server hostname throughout.

hostname example.com

I will be changing the hostname to demo.restorebin.com using below command. Continue reading

Install FreeRADIUS 3 and FreeRADIUS modules Ubuntu 18.04

Start by updating your system packages to the latest version:

sudo apt update
sudo apt -y upgrade

Reboot system after doing an upgrade

sudo reboot

Once the system is up, begin the installation FreeRADIUS and Daloradius on your Ubuntu 18.04 / Ubuntu 16.04 system.

Step 1: Install Apache Web Server and PHP

Daloradius will require php and Apache web server to be installed on the host system.

Installing Apache on Ubuntu:

Install Apache web server by running: Continue reading

Set Up vsftpd for a User’s Directory on Ubuntu 18.04

Step 1 — Installing vsftpd

Let’s start by updating our package list and installing the vsftpd daemon:

  • sudo apt update
  • sudo apt install vsftpd

When the installation is complete, let’s copy the configuration file so we can start with a blank configuration, saving the original as a backup:

  • sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig

With a backup of the configuration in place, we’re ready to configure the firewall.

Step 2 — Opening the Firewall

Let’s check the firewall status to see if it’s enabled. If it is, we’ll ensure that FTP traffic is permitted so firewall rules don’t block our tests.

Check the firewall status:

  • sudo ufw status

Continue reading