Skip to main content
Version: Next (main)

Email

The server can send email through any mail server that takes SMTP submissions: your own, your mail provider's, or a sending service. Without it the server works as before; with it, people get password reset links and invites by email (coming next in PL-122), and admins can check the setup from the settings page.

Setting it up​

Set the email settings in the environment, or on the admin Settings page under Email (they apply at once). Then type an address under Send a test to and press Send test email: it says sent, or what the mail server answered.

SMTP_HOST: smtp.fastmail.com
SMTP_PASSWORD_FILE: /run/secrets/smtp_password
SMTP_FROM: PeckList <[email protected]>

Provider notes​

SMTP_HOST: smtp.gmail.com, your Gmail address as SMTP_USER, and an app password as SMTP_PASSWORD (it needs 2-step verification on the account). SMTP_FROM must be that address. Gmail limits a personal account to a few hundred emails a day, plenty for a household.

When it does not work​

Send test email shows the mail server's own answer:

  • refused the login: the user or password is wrong, or the provider wants an app password.
  • the TLS handshake failed: SMTP_TLS does not match the port (465 is tls, 587 is starttls).
  • could not reach: the host or port is wrong, or a firewall blocks the way out (some hosting providers block port 25 and sometimes 587; try 465).
  • said no: the mail server refused the message, often because SMTP_FROM is not an address the login may send from.