1234567891011121314151617181920212223242526 |
- <!DOCTYPE html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><meta name="keywords" content="GNU, Emacs, Libre Software, Hurd, Guile, Guix" /><meta name="description" content="GNUcode.me is a website focusing on libre software projects, especially the GNU project." /><link type="application/atom+xml" rel="alternate" title="GNUcode.me -- Feed" href="/feed.xml" /><a rel="me" href="https://fosstodon.org/@thegnuguy"></a><link type="text/css" href="css/footer.min.css" rel="stylesheet"></link><link type="text/css" href="css/header.min.css" rel="stylesheet"></link><link type="text/css" href="css/main.min.css" rel="stylesheet"></link><title>Hosting your Own Email Part 2 — GNUcode.me</title></head><body><header><nav><ul><li><a href="index.html">GNUcode.me</a></li><li><a href="services.html">Services</a></li><li><a href="about.html">About</a></li><li><a href="business-ideas.html">Business-ideas</a></li></ul></nav></header><h1>Hosting your Own Email Part 2</h1><main><section class="basic-section-padding"><article><h3>by Joshua Branson — June 15, 2021</h3><div><h1>PROJECT My current plans for hosting email accounts</h1><h2>There are three basic vocab to know for setting up an email server</h2><ul><li>a mail transfer agent (MTA) receives and sends email (opensmtpd)</li><li>a mail delivery agent (MDA), which gets the email from the MTA,
- and stores it for a user. The easiest way is to use opensmtpd as
- the MDA. BUT dovecot is a better MDA, because dovecot can set up
- mail filtering and maybe better spam filtering.</li><li>Remote users can access the emails via an MUA (mail user agent),
- via an IMAP server. (dovecot)</li></ul><h2>My current <em>simple</em> strategy for hosting a few email accounts</h2><p>I plan on offering paid email accounts on gnucode.me, or your own domain.
- So your next email could be "YourName@gnucode.me" or
- "wilycatperson@YourDomain.com". The following is an explanation of how it
- will all work together. It is intended for anyone else wanting to set up
- an email server for a <em>few email accounts.</em></p><p>Opensmtpd is my MTA (mail transfer agent), so it sends and receives email
- via smtp. Also, opensmtpd uses rspamd (or bogofilter) to limit spam.</p><p>Dovecot will serve my emails. For now I will set up emails in the maildir
- format, because this is easy to do. Eventually, I will store email in the
- <a href="https://doc.dovecot.org/admin_manual/mailbox_formats/dbox/">dbox format.</a></p><ul><li><code>imap.gnucode.me</code> will be where dovecot serves emails</li><li><code>smtp.gnucode.me</code> will be where opensmtp sends and receives email</li></ul><h3>The <em>simple</em> directory structure I will use to host <em>a few</em> email accounts</h3><p>I will have a few email accounts at gnucode.me <code><users>@gnucode.me</code>.
- postmaster AT gnucode.me will point to my main user AT gnucode.me.</p><p>My email will be hosted at: <code>/home/<user>/Maildir</code></p><p>I will tell dovecot to serve emails from the above
- <a href="https://doc.dovecot.org/settings/core/?highlight=mail_location#setting-mail-location">directory</a>
- via a <a href="https://doc.dovecot.org/configuration_manual/config_file/config_variables/#variables-mail-user">config
- variable:</a></p><pre><code>(dovecot-service #:config
- (dovecot-configuration (mail-location "maildir:~/%n/Maildir")))</code></pre><p>By default both opensmtpd and dovecot use regular login username
- authentication. So my username and password that I login via email is the
- same password that I use to login via ssh. So my email config for
- gnucode.me should look like this for gnus:</p><pre><code>(nnimap "gnucode.me"
- (nnimap-stream ssl)
- (nnimap-address "imap.gnucode.me")
- (nnimap-user "joshua"))</code></pre><h2>Some difficulties</h2><ul><li><p>I login via "joshua" and <password>. I would prefer to login via joshua AT
- gnucode.me. That way I can distinguish joshua AT gnucode.me and joshua AT
- propernaming.org</p></li><li><p>The above explanation strategy delivers all emails to /home/joshua/Maildir,
- which essentially limits my total email accounts to one.</p></li><li><p>The above has no spam filtering or email filtering.</p></li></ul></div></article></section></main><footer><p>© 2020 Joshua Branson. The text on this site is free culture under the Creative Commons Attribution Share-Alike 4.0 International license.</p><p>This website is build with Haunt, a static site generator written in Guile Scheme. Source code is <a href="https://notabug.org/jbranso/gnucode.me">available.</a></p><p>The color theme of this website is based off of the famous <a href="#3f3f3f" target="_blank">zenburn</a> theme.</p></footer></body>
|