# WordPress, Discourse and Local SMTP Server

**URL:** https://meta.discourse.org/t/wordpress-discourse-and-local-smtp-server/40929
**Category:** Self-hosting
**Created:** [2016年三月12日 11:12 UTC](https://meta.discourse.org/t/wordpress-discourse-and-local-smtp-server/40929 "2016-03-12T11:12:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DelphiKnight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/delphiknight/32/121910_2.png) [@DelphiKnight](https://meta.discourse.org/u/DelphiKnight)
#### Post date: [2016年三月12日 11:12 UTC](https://meta.discourse.org/t/wordpress-discourse-and-local-smtp-server/40929/1 "2016-03-12T11:12:13Z")

</div>

Hello,

Is it possible to install WordPress, Discourse and local SMTP server together?  
I need to use in this way:

WP site address: [www.example.com](http://www.example.com)  
Discourse: [www.example.com/community](http://www.example.com/community)  
SMTP server for Doscourse and WP needs: [smtp.example.com](http://smtp.example.com)

I will use DO Virtual Servers for this.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2016年三月12日 17:27 UTC](https://meta.discourse.org/t/wordpress-discourse-and-local-smtp-server/40929/2 "2016-03-12T17:27:17Z")

</div>

> [@DelphiKnight](#):
>
> WordPress, Discourse

This is well-tested and should work fine. The basic idea is to let nginx sort requests between Discourse and your other services. You can find more details here:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

The SMTP server is separate and should work, but please note that sending mails yourself is terribly painful. I’d highly recommend using a commercial mailing service for this, e.g. [SendGrid](https://sendgrid.com/free).

---

<div class="post-metadata">

### Author: ![DelphiKnight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/delphiknight/32/121910_2.png) [@DelphiKnight](https://meta.discourse.org/u/DelphiKnight)
#### Post date: [2016年三月14日 11:19 UTC](https://meta.discourse.org/t/wordpress-discourse-and-local-smtp-server/40929/3 "2016-03-14T11:19:18Z")

</div>

Tank you @fefrei! I’ll try!
