# Postfix setup for remote discourse configuration?

**URL:** https://meta.discourse.org/t/postfix-setup-for-remote-discourse-configuration/214957
**Category:** Self-hosting
**Created:** [January 15, 2022, 3:00pm UTC](https://meta.discourse.org/t/postfix-setup-for-remote-discourse-configuration/214957 "2022-01-15T15:00:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![f1r4s](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/f1r4s/32/245347_2.png) [@f1r4s](https://meta.discourse.org/u/f1r4s)
#### Post date: [January 15, 2022, 3:00pm UTC](https://meta.discourse.org/t/postfix-setup-for-remote-discourse-configuration/214957/1 "2022-01-15T15:00:45Z")

</div>

Hello,

I have setup Postfix with mailgun on seperated VPS for sending mails using this topic;

> **[How to Set Up a Mail Relay with Postfix and Mailgun on Ubuntu 16.04 |...](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-mail-relay-with-postfix-and-mailgun-on-ubuntu-16-04)**
>
> Use Postfix and Mailgun to create a closed mail relay for bulk emails or your internal communications.

after finish i still cannot find how or what information i should update the app.yml file for the setting to connect there for sending emails ?

Should i use same username and password and smtp (mailgun smtp ? or my new FQDN smtp mail) with same mailgun and password ? or just comment out the username and password and put my new smtp witch i follow above ?

My idea from this installation with mailgun is that mailgun exposed the server IP and i have setup mailgun with Postfix in seprated server for this reason; so any ddos happen there it wont affect the discourse server;

Waiting any recommendations or support…  
Thank you for your time reading my topic.
