Small typos

This commit is contained in:
ericgaspar 2020-12-31 17:24:16 +01:00
parent 0e28767870
commit 1aee52328a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,20 +1,20 @@
# Configure SMTP relay
If your ISP does block port 25, if you can't set a reverseDNS on your server, or if you have any other troubles using the built-in SMTP server on Yunohost, you may want to setup your Yunohost server to use a SMTP relay.
If your ISP blocks port 25, if you can't set a reverseDNS on your server, or if you have any other troubles using the built-in SMTP server on YunoHost, you may want to setup your YunoHost server to use a SMTP relay.
## What is a SMTP relay?
A SMTP relay is basically a third party hosted SMTP server that will send emails on behalf of your own SMTP server (Postfix service on Yunohost).
Once setup correctly on Yunohost, it will operate in a totally transparent manner, both for you and for your correspondents : they will see emails as coming from your Yunohost main url, but all the sending will be delegated to the SMTP relay you have chosen and configured.
A SMTP relay is basically a third party hosted SMTP server that will send emails on behalf of your own SMTP server (Postfix service on YunoHost).
Once setup correctly on YunoHost, it will operate in a totally transparent manner, both for you and for your correspondents: they will see emails as coming from your YunoHost main URL, but all the sending will be delegated to the SMTP relay you have chosen and configured.
<div class="alert alert-warning" markdown="1">
<span class="glyphicon glyphicon-warning-sign"></span>
It's important to note that using a SMTP relay has to be seen as a (big) compromise in the world of self-hosting. Indeed, when using a SMTP relay, you will not only let a third party send emails on your behalf, but also be able to access to the full content of all the emails you'll send. Be also aware that a SMTP relay is setup for your whole Yunohost server : you can't chose which emails or which users go through it because all future emails will.
It's important to note that using a SMTP relay has to be seen as a (big) compromise in the world of self-hosting. Indeed, when using a SMTP relay, you will not only let a third party send emails on your behalf, but also be able to access to the full content of all the emails you'll send. Be also aware that a SMTP relay is setup for your whole YunoHost server: you can't choose which emails or which users go through it because all future emails will.
</div>
## How to use a SMTP relay with Yunohost ?
## How to use a SMTP relay with YunoHost?
Yunohost has a built-in SMTP relay configuration, available from version 4.1. That configuration is not yet available from the admin web interface, though. You will have to use the command line interface.
YunoHost has a built-in SMTP relay configuration, available from version 4.1. That configuration is not yet available from the admin web interface, though. You will have to use the command line interface.
### Step 1: Register on a SMTP relay provider
@ -35,18 +35,19 @@ Please note that modifying your DNS records could sometimes take over 24h to tak
From now on, a non trusty SMTP relay provider could send emails from your main domain without telling you.
</div>
### Step 3 : Setup Yunohost correctly
### Step 3: Setup YunoHost correctly
In order to setup your Yunohost to use your SMTP relay, you will have to configure three things :
1. Your SMTP relay url (for this tutorial we will use `smtprelay.tld`)
In order to setup your YunoHost to use your SMTP relay, you will have to configure three things:
1. Your SMTP relay URL (for this tutorial we will use `smtprelay.tld`)
2. Your SMTP relay username (for this tutorial we will use `username`)
3. Your SMTP relay passwordd (for this tutorial we will use `password`)
3. Your SMTP relay password (for this tutorial we will use `password`)
Your SMTP relay will obviously provide you with these three things, that should be available in your control panel or whatsoever.
You can log into your Yunohost server using ssh :
You can log into your YunoHost server using SSH:
```bash
ssh admin@yourdomain.tld```
ssh admin@yourdomain.tld
```
Then you can update the three values as below:
@ -56,7 +57,7 @@ sudo yunohost settings set smtp.relay.user -v username
sudo yunohost settings set smtp.relay.password -v password
```
It may be a goood idea to double confirm your settings by doing :
It may be a good idea to double confirm your settings by doing:
```bash
sudo yunohost settings list
@ -74,4 +75,3 @@ From now on, a non trusty SMTP relay provider could read or use the data of all
You can check your setup by sending emails and try if everything works.
Some of the SMTP relay will give you insights about the emails you send so that can also be a good way to check that everythings works as needed.
Of course, you can always have a try with [mail-tester.com](mail-tester.com) to check for any problem or discrepancy.