Emails

Sending emails is important for a server. It allows it to notify you of various events (update pending, task failure, breach attempt…).

This guide will show you two different configuration options:
 * Send only: Simple configuration. The server uses an external SMTP server to send emails. Use this if you want to just receive notification emails from a server.
 * Complete: A complete email infrastructure with your own SMTP and IMAP server. Plus a webmail and the much needed spam filter.

Configure
Edit file  Edit file   and add a line like Note: if   is a CNAME, you must use the destination of the CNAME in the   file. here you see on the first line that  is a CNAME (alias) to. In that case you can put  in the password file.

Finally, activate the new configuration using

Test
You should receive the email in your mailbox

Complete
Want to get rid of Google and have your private emails be really private? Building your own mail server is the solution.

Getting your own mail server is rewarding and fun, however it's harder and more time consuming than typical sysadmin tasks like installing a webserver. If done incorrectly you risk loosing emails, being submerged by spams or being considered as spammer by others and not be able to send emails. That being said, I've been running my own mail server for almost a decade without any major issue.

To get a fully functional web server, you will need to go through these guides:
 * IP address
 * Dovecot
 * Exim
 * Spamassassin
 * ClamAV
 * Roundcube