@@ -4,21 +4,10 @@ This document will take you through the steps of setting up a basic Postfix mail
...
@@ -4,21 +4,10 @@ This document will take you through the steps of setting up a basic Postfix mail
The instructions make the assumption that you will be using the email address `replies@gitlab.example.com`, that is, username `replies` on host `gitlab.example.com`. Don't forget to change it to your actual host when executing the example code snippets.
The instructions make the assumption that you will be using the email address `replies@gitlab.example.com`, that is, username `replies` on host `gitlab.example.com`. Don't forget to change it to your actual host when executing the example code snippets.
## Configure your server DNS
## Configure your server firewall
1. Add an MX record pointing from `gitlab.example.com` to your server IP.
1. Open up port 25 on your server so that people can send email into the server over SMTP.
1. Add an A record pointing from `mail.gitlab.example.com` to your server IP.
2. If the mail server is different from the server running GitLab, open up port 143 on your server so that GitLab can read email from the server over IMAP.
1. Verify that the changes have propagated:
```sh
dig mx gitlab.example.com
```
```sh
dig a mail.gitlab.example.com
```
You should see an `ANSWER SECTION` with the expected result in the output for both.
## Install packages
## Install packages
...
@@ -183,7 +172,7 @@ Courier, which we will install later to add IMAP authentication, requiers mailbo
...
@@ -183,7 +172,7 @@ Courier, which we will install later to add IMAP authentication, requiers mailbo
1. Let Postfix know about the domains that it should consider local:
1. Let Postfix know about the domains that it should consider local: