# Mattermost send email notification problems

**URL:** <https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529>\
**Category:** Troubleshooting\
**Created:** [October 8, 2020, 3:25pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529 "2020-10-08T15:25:19Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 3, 2020, 2:02pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/41 "2020-12-03T14:02:48Z")

</div>

That you for the information!

Can I ask

- What web server you are using, since you’re not using Apache or Nginx?
- Why are you unable to use port 80, and can we use port 443 with HTTPS?

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 4, 2020, 2:48am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/42 "2020-12-04T02:48:30Z")

</div>

Dear @XxLilBoPeepsxX,  
I would like to answer you following questions:

1. Our company does not use any web server. For site URL, [invisiblenotes.com](http://invisiblenotes.com) is applied from online host domain site. Then, the staff uses router to set port number to point site URL.

2. Port 80 is already used for other software. You can port 443 with HTTPS.  
Thank you.

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 4, 2020, 3:09am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/43 "2020-12-04T03:09:00Z")

</div>

Thank you for your response, I can definitely set up port 443 with HTTPS, that is more than doable! We will need to install either Apache or Nginx web server, which shouldn’t be an issue at all, and will greatly improve the security and stability of your Mattermost installation.  
What specifically is the domain name that you want to have your Mattermost instance running on? (Ex. [mydomain.com](http://mydomain.com), or [subdomain.mydomain.com](http://subdomain.mydomain.com), etc)  
I just want to double-check to make sure that we both are on the same page 🙂

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 4, 2020, 3:32am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/44 "2020-12-04T03:32:10Z")

</div>

Dear @XxLilBoPeepsxX,  
I would like to inform you that there is no specifically domain name that I want to have your Mattermost instance running on. Thank you.

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 5, 2020, 1:22am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/45 "2020-12-05T01:22:27Z")

</div>

Alright, thats no issue. Do you have access to your domain’s DNS records, if we were to add an entry for a new subdomain?

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 5, 2020, 1:51pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/46 "2020-12-05T13:51:55Z")

</div>

Dear @XxLilBoPeepsxX,  
I just have the DNS records on CentOS 8 operation system. Please refer to below image. Thank you.  
 ![Screenshot from 2020-11-26 10-21-48](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/e/eec483e6d6e43b1485531242f18bbdf5fc526f1b.png)

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 5, 2020, 6:08pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/47 "2020-12-05T18:08:05Z")

</div>

Yes, and that is correct, that is the Google DNS Server. Who is your domain registrar, if I can ask?

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 6, 2020, 7:58am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/48 "2020-12-06T07:58:53Z")

</div>

Dear @XxLilBoPeepsxX,  
I would like to replay you that the domain registrar is my boss. Thank you.

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 8, 2020, 8:57pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/49 "2020-12-08T20:57:24Z")

</div>

Okay so if we wanted to, for example, use the domain name [chat.example.com](http://chat.example.com), would your boss be able to setup that domain to point to the IP address of the server for us?

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 9, 2020, 2:30am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/50 "2020-12-09T02:30:39Z")

</div>

Dear @XxLilBoPeepsxX,  
Yes, my boss will be able to setup that domain to point to the IP address of the server for you. Thank you.

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 9, 2020, 10:46pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/51 "2020-12-09T22:46:53Z")

</div>

That’s great, thank you for checking!  
Last question:

Do you have snapd installed on your server, or should I include steps for how to install that?

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 10, 2020, 2:39am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/52 "2020-12-10T02:39:01Z")

</div>

Dear @XxLilBoPeepsxX,  
I would like to reply you that I do not have snapd installed on my server. Please include steps for how to install that. Thank you.

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 10, 2020, 3:47pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/53 "2020-12-10T15:47:00Z")

</div>

Alright, sounds good.

Run these commands to install snapd to your CentOS 8 OS.

FIrst we are going to add the CentOS 8 snapd repository to your package manager, and then install CertBot and the python dependencies to run CertBot, using the following commands:

```php
sudo dnf install epel-release

```

```auto
sudo dnf install certbot python3-certbot-apache mod_ssl

```

Next, we want to install the Apache web server, which will allow us to set our VHOST as well as configure our reverse proxy, and apply our HTTPS certificate that will be generated for the domain name that you choose to use.  
You can install Apache with the following command:

```auto
sudo dnf install httpd

```

Since we are going to be serving your Mattermost instance over HTTPS, we need to change the firewall to allow traffic on port 443. To do this, run the following command:

```auto
sudo firewall-cmd --permanent --add-service=https

```

Now that we have made the change, reload the firewall to apply the change:

```auto
sudo firewall-cmd --reload

```

  
  
Apache does not automatically start on CentOS once the installation completes, so you will need to start the Apache process manually:

```auto
sudo systemctl enable httpd && sudo systemctl start httpd

```

Verify that the service is running with the following command:

```auto
sudo systemctl status httpd

```

You will receive an `active` status when the service is running:

```auto
Output● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disa>
   Active: active (running) since Thu 2020-04-23 22:25:33 UTC; 11s ago
     Docs: man:httpd.service(8)
 Main PID: 14219 (httpd)
   Status: "Running, listening on: port 80"
    Tasks: 213 (limit: 5059)
   Memory: 24.9M
   CGroup: /system.slice/httpd.service
           ├─14219 /usr/sbin/httpd -DFOREGROUND
           ├─14220 /usr/sbin/httpd -DFOREGROUND
           ├─14221 /usr/sbin/httpd -DFOREGROUND
           ├─14222 /usr/sbin/httpd -DFOREGROUND
           └─14223 /usr/sbin/httpd -DFOREGROUND

...

```

Let me know if you have any issues with this step, if there are, we will figure them out, and then continue onwards to get everything set up!

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 11, 2020, 3:00am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/54 "2020-12-11T03:00:51Z")

</div>

Dear @XxLilBoPeepsxX,  
I followed the steps, but when I typed `sudo systemctl enable httpd && sudo systemctl start httpd` , it show below problem:

 ![Screenshot from 2020-12-11 10-34-34](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/1/109a7b6486937ec8dc07177634dfb4a60fcb2453.png)  
While I run `journalctl -xe` command, it showed:  
 ![Screenshot from 2020-12-11 10-38-48](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/1/126a4b61e44e1cf73578860cd94f722184085185.png)  
When I run `systemctl status httpd.service`, it displayed  
 ![Screenshot from 2020-12-11 10-41-35](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/1/1753e369a620210b0f48dc565db0a2f6e11875d0.png)  
Please help me to solve the problems. Thank you.

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 11, 2020, 3:36am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/55 "2020-12-11T03:36:31Z")

</div>

Ahh my bad, I see where the issue was. It auto-enabled httpd on install, so we did not need to enable the httpd package ourselves once we installed it, as it was already done for us.

Try

```auto
sudo systemctl restart httpd

```

And then running

```auto
sudo systemctl status httpd

```

Does this work?

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 11, 2020, 3:59am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/56 "2020-12-11T03:59:50Z")

</div>

Dear @XxLilBoPeepsxX,  
I would like to reply you that it doesn’t work. Please refer to below image. Thank you.

 ![Screenshot from 2020-12-11 11-56-15](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/4/4c16118dd4a368d5d2b6672d3b3a4265d5e54ea7.png)

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 12, 2020, 12:58am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/57 "2020-12-12T00:58:17Z")

</div>

Alright, it seems to be a syntax error with the `BackupPC.conf` file in the httpd server’s configuration files. Would you provide the contents of this file by running the command here, and then pasting the output in code format in your reply so we can fix the error and continue with the setup? The command is: `cat /etc/httpd/conf.d/BackupPC.conf`

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 14, 2020, 2:12am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/58 "2020-12-14T02:12:51Z")

</div>

Dear @XxLilBoPeepsxX,  
Below is the contents of BackupPC.conf file. Thank you.

```auto
# BackupPC requires valid authentication in order for the web interface to
# function properly. One can view the web interface without authentication
# though all functionality is disabled.
# 
# htpasswd -c /etc/BackupPC/apache.users yourusername
  

AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "ada BackupPC"

<IfModule mod_authz_core.c>
  # Apache 2.4
  <RequireAll>
    Require valid-user
    <RequireAny>
      #Require local
    </RequireAny>
  </RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
  # Apache 2.2
  order deny,allow
  deny from all
  allow from 127.0.0.1
  allow from ::1
  require valid-user
</IfModule>

</DirectoryMatch>

Alias /BackupPC/images /usr/share/BackupPC/html/
ScriptAlias /BackupPC /usr/libexec/BackupPC/BackupPC_Admin
ScriptAlias /backuppc /usr/libexec/BackupPC/BackupPC_Admin
```

---

<div class="post-metadata">

**Author:** ![XxLilBoPeepsxX](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/xxlilbopeepsxx/32/4993_2.png) [@XxLilBoPeepsxX](https://forum.mattermost.com/u/XxLilBoPeepsxX)\
**Post date:** [December 14, 2020, 5:19pm UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/59 "2020-12-14T17:19:11Z")

</div>

Hello! Thank you for providing that, I see that line 17 is

> [@Ada](#):
>
> ` #Require local`

so I believe that if you uncomment the line, by removing the `#`, to end with `Require local` and then attempt to restart the server, that it hopefully will work. Let me know!

---

<div class="post-metadata">

**Author:** ![Ada](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ada](https://forum.mattermost.com/u/Ada)\
**Post date:** [December 15, 2020, 2:28am UTC](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529/60 "2020-12-15T02:28:19Z")

</div>

Dear @XxLilBoPeepsxX,  
I would like to inform you that it work. Please refer to below image. Thank you.

 ![Screenshot from 2020-12-15 10-20-38](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/4/45e2fcc2d9e57af2fa15cd2baf2e4efea54b16e7.png)

[Previous page](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529.md?page=2)

[Next page](https://forum.mattermost.com/t/mattermost-send-email-notification-problems/10529.md?page=4)
