Browse Source

slight modification to mail guide

pull/1/head
Craig Stewart 3 years ago
parent
commit
605f6c0eba
  1. 7
      guides/building-a-git-repo/installmail.html

7
guides/building-a-git-repo/installmail.html

@ -55,10 +55,9 @@ root: user@example.com
mailer-daemon: user@example.com
git: user@example.com
EOF
sudo newaliases</pre>
<p>This will empty the default aliases file, and then put some defaults that are needed into it and generates the alias database that postfix uses with those entries in. This assumes the email address "user@example.com" exists, you should use a valid email address in it's place. We will also need to ensure that emails generated for our user get forwarded to a valid email address.</p>
<pre>echo "user@example.com" > ~/.forward</pre>
<p>This is all we need to do to get our mail server working. However with the settings as they are now we will not use TLS encryption if it is available, fortunately this is easy to fix.</p>
sudo newaliases
echo "user@example.com" > ~/.forward</pre>
<p>This will empty the default aliases file, and then put some defaults that are needed into it and generates the alias database that postfix uses with those entries in, and then make sure our local user's emails will also get forwarded. This assumes the email address "user@example.com" exists, you should use a valid email address in it's place. We will also need to ensure that emails generated for our user get forwarded to a valid email address. This is all we need to do to get our mail server working. However with the settings as they are now we will not use TLS encryption to send emails if it is available, fortunately this is easy to fix.</p>
<pre>sudo postconf smtp_tls_security_level=may</pre>
<p>Our mail server is now set up for use. Note that what we are using here is overkill for what we want, but is also terribly poor for an actual mail server that accepts and delivers emails. However as we have blocked incoming connections to port 25 using iptables in <a href="/guides/building-a-git-repo/secure-start.html" title="Starting With a Secure Base">Starting With a Secure Base</a> this shouldn't be a problem for us.</p>
<p style="text-align:center;"><a href="/guides/building-a-git-repo/installweb.html" title="Installing a Webserver">Installing a Webserver</a>|<a href="/guides/building-a-git-repo/" title="Building A git Repository Server">Main Page</a>|<a href="/guides/building-a-git-repo/installdb.html" title="Installing a Database">Installing a Database</a></p>

Loading…
Cancel
Save