Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
server_configuration:email [2021/01/13 20:33] – david | server_configuration:email [2025/03/27 15:42] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
[[https:// | [[https:// | ||
+ | |||
+ | All I want (right now) is to be able to send emails (from applications), | ||
+ | |||
+ | ===== Prerequisite(s) ===== | ||
+ | |||
+ | ==== DNS ==== | ||
+ | Having already configured an email server previously (see some extra notes below), I'd already setup DNS records, similar to in this guide: | ||
+ | * See sections " | ||
+ | * Note for TXT records: | ||
+ | * TXT records are a type of Domain Name System (DNS) record that contains text information for sources outside of your domain. You add these records to your domain settings. You can use TXT records for various purposes. Google uses them to verify domain ownership and to ensure email security. | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | Start off following instructions from the DigitalOcean Community Documentation [[https:// | ||
+ | |||
+ | Note, postfix was already installed, so I needed to run: | ||
+ | <code bash> | ||
+ | sudo dpkg-reconfigure postfix | ||
+ | </ | ||
+ | |||
+ | I followed the instructions up to the point of installing '' | ||
+ | <code bash> | ||
+ | sudo apt-get install mutt | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | ===== Testing & Checking ===== | ||
+ | |||
+ | Sent a test email to: [[http:// | ||
+ | |||
+ | < | ||
+ | <html lang=" | ||
+ | < | ||
+ | <meta http-equiv=" | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====== Useful Tricks ====== | ||
+ | |||
+ | ===== Migrate Mailbox ===== | ||
+ | |||
+ | <code bash> | ||
+ | # Change to home directory | ||
+ | cd ~ | ||
+ | |||
+ | # Copy mailbox data from backup | ||
+ | sudo cp -r / | ||
+ | |||
+ | # Fix file and directory ownership | ||
+ | sudo chown -R david:david Maildir | ||
+ | </ | ||
+ | |||
+ | ===== bounce (forward) email ===== | ||
+ | |||
+ | In '' | ||
+ | |||
+ | ===== Requirements for Gmail to receive emails ===== | ||
+ | |||
+ | ==== MX Records ==== | ||
+ | |||
+ | ==== Google Domain TXT record ==== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ==== PTR Records ==== | ||
+ | |||
+ | > Mail servers must meet a number of requirements to prevent their messages from being blocked, e.g. have a PTR record. The use of authentication methods such as SPF, DKIM or DMARC minimize the chance that messages are marked as spam. | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * Digital Ocean: https:// | ||
====== Mixed Links ====== | ====== Mixed Links ====== |