How to send mail from a Linux server using Gmail

How to send mail from Linux server with Gmail SMTP and DMA featured image

Introduction

This Linux mail tutorial will show you how to send mail from your Linux server using Gmail. DMA (Dragonfly Mail Agent) will be used to setup outgoing mail from a Linux server using a Gmail account to provide great deliverability. By using DMA you won’t have to deal with having bigger software like Exim, Postfix, etc installed. DMA is a small mail transport agent that’s perfect for servers (or even desktop computers) that only need to send outgoing e-mail like log files, notifications, security notifications from fail2ban, etc and it doesn’t need to listen on network ports. I use DMA on almost all of my servers and I absolutely love it.

CONTINUE READING

How to change the hostname in Ubuntu

How to change the hostname in Ubuntu

What’s a hostname?

A hostname is a name that identifies your computer or server on a network and it can be a simple name consisting of just one word, for example: computer, or it can be a phrase like my-server-name, or it can be a FQDN (Fully Qualified Domain Name) such as mycomputer.linuxandcaffeine.com.

Note: This tutorial will also work with Debian too!

CONTINUE READING