ubuntu smtp settings code example Example 1: how to configure the smtp server in ubuntu sudo apt install bind9 Example 2: how to configure the smtp server in ubuntu apt-get update