Building a Docker Mail Server on a Sakura VPS with a Freenom Domain

MailServer(Postfix+Dovecot) on Docker by VPS

TL;DR I tried building a mail server with Docker on a Sakura VPS I will skip registering a domain on Freenom and how to use Cloudflare Linux(Debian10) Docker is assumed to be already installed A domain name has been obtained from Freenom and registered in a DNS such as Cloudflare Freenom : example.com (fictitious name) Sakura VPS: 11.22.33.44 (fictitious IP) For this server build I referred to the sites below [Read More]

Sending Mail Through Gmail's SMTP Server with msmtp

How to Configure Gmail SMTP in msmtp

I want to install msmtp on Debian10 and send mail through Gmail’s SMTP server msmtp On hosts that only send mail I used to use sSMTP a lot, but on Debian10 there is no ssmtp package. The replacement for it is msmtp Installing msmtp Copy # apt install msmtp msmtp-mta Configuration There is no configuration file in /etc, so copy the sample Copy # cp /usr/share/doc/msmtp/examples/msmtprc-system.example /etc/msmtprc Incidentally, for a per-user configuration it is [Read More]

Why Scripts in /etc/cron.weekly Do Not Run on Debian

Scripts placed in /etc/cron.weekly on Debian do not run

Running on debian10(Buster), I had placed a backup script (backup.sh) under /etc/cron.weekly/, but apparently it was not running. Of course I had given it execute permission, and I had confirmed it works when run manually. Checking my other machines, it turned out that it works without any problem on CentOS while none of them run on Debian. Looking into it, according to run-parts(8), it seems that extensions containing a dot, such as .sh or .pl, do not run [Read More]

Installing Ripgrep on Mac, CentOS and Debian

Installing ripgrep

Notes from installing Ripgrep(rg), which searches faster than grep, ack and silver_searcher, on several platforms Mac Install it straight from homebrew (if homebrew is already installed) Copy $ brew install ripgrep CentOS 7 On CentOS, ripgrep is not in the standard repositories or in epel, so install it as follows Copy $ sudo yum-config-manager --add-repo=https://copr.fedorainfracloud.org/coprs/carlwgeorge/ripgrep/repo/epel-7/carlwgeorge-ripgrep-epel-7.repo $ sudo yum install ripgrep Debian 10 Copy # apt install ripgrep If your version of Debian9 or Ubuntu is old and the package is not in apt, use the following [Read More]

Upgrading Debian 9 Stretch to Debian 10 Buster

Major and minor upgrade steps from Debian 9 to Debian 10

Debian Upgrade A major upgrade from Debian 9.x to 10.x Upgrade procedure Checking the version Copy $ cat /etc/debian_version 9.1 Updating Copy # apt-get update # apt-get upgrade # apt-get dist-upgrade Rewriting sources.list Copy # sed -i 's/stretch/buster/g' /etc/apt/sources.list Running the upgrade Copy # apt-get update # apt-get upgrade If any NFS-related daemons are running, stop them Copy # systemctl stop rpcbind The final upgrade [Read More]