Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
tutoriaux:install-email-server-part-1 [2022/08/02 10:23] – [Upgrading Postfix] frater | tutoriaux:install-email-server:install-email-server-part-1 [2023/01/06 18:10] (Version actuelle) – créée - modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 40: | Ligne 40: | ||
I assume you have a sudo user on your Debian server. | I assume you have a sudo user on your Debian server. | ||
- | < | + | <WRAP round important> |
By design, when installing Debian you're required to create an user, I do recommends to keep this user as " | By design, when installing Debian you're required to create an user, I do recommends to keep this user as " | ||
</ | </ | ||
Ligne 78: | Ligne 78: | ||
<code bash> | <code bash> | ||
- | < | + | <WRAP round tip> |
It's usually a good idea to reboot the server to ensure that the hostname change is effective | It's usually a good idea to reboot the server to ensure that the hostname change is effective | ||
</ | </ | ||
Ligne 122: | Ligne 122: | ||
| AAAA | mail | < | | AAAA | mail | < | ||
- | < | + | <WRAP round tip> |
If you use Cloudflare DNS service, you should not enable the CDN (proxy) feature when creating A and AAAA record for mail.example.com. Cloudflare does not support SMTP or IMAP proxy. | If you use Cloudflare DNS service, you should not enable the CDN (proxy) feature when creating A and AAAA record for mail.example.com. Cloudflare does not support SMTP or IMAP proxy. | ||
</ | </ | ||
Ligne 144: | Ligne 144: | ||
To edit the reverse DNS record for your VPS, log into the client area, then open a support ticket and tell them to add PTR record for your server IP addresss to point the IP address to mail.your-domain.com. It’s not convenient, you might think, but this is to keep spammers away from the platform, so legitimate email senders like us will have a great IP reputation. | To edit the reverse DNS record for your VPS, log into the client area, then open a support ticket and tell them to add PTR record for your server IP addresss to point the IP address to mail.your-domain.com. It’s not convenient, you might think, but this is to keep spammers away from the platform, so legitimate email senders like us will have a great IP reputation. | ||
- | < | + | <WRAP round info> |
Gmail will actually check the A record of the hostname specified in the PTR record. If the hostname resolves to the same IP address, Gmail will accept your email. Otherwise, it will reject your email. | Gmail will actually check the A record of the hostname specified in the PTR record. If the hostname resolves to the same IP address, Gmail will accept your email. Otherwise, it will reject your email. | ||
</ | </ | ||
Ligne 158: | Ligne 158: | ||
You will be asked to select a type for mail configuration. Normally, you will want to select the second type: '' | You will be asked to select a type for mail configuration. Normally, you will want to select the second type: '' | ||
- | {{ tutoriaux: | + | {{ tutoriaux: |
* **No configuration** means the installation process will not configure any parameters in the ''/ | * **No configuration** means the installation process will not configure any parameters in the ''/ | ||
Ligne 168: | Ligne 168: | ||
Next, enter your domain name for the system mail name, i.e. the domain name after @ symbol. For example, my email address is thierry@example.com, | Next, enter your domain name for the system mail name, i.e. the domain name after @ symbol. For example, my email address is thierry@example.com, | ||
- | {{ tutoriaux: | + | {{ tutoriaux: |
- | < | + | <WRAP round tip> |
Note that if you enter a sub-domain like '' | Note that if you enter a sub-domain like '' | ||
</ | </ | ||
Ligne 186: | Ligne 186: | ||
<code bash> | <code bash> | ||
- | {{ tutoriaux: | + | {{ tutoriaux: |
Postfix ships with many binaries under the ''/ | Postfix ships with many binaries under the ''/ | ||
Ligne 242: | Ligne 242: | ||
Then scan open ports on the mail server with an [[https:// | Then scan open ports on the mail server with an [[https:// | ||
- | {{ tutoriaux: | + | {{ tutoriaux: |
You can see from the above screenshot that TCP port 25 is open on my mail server. | You can see from the above screenshot that TCP port 25 is open on my mail server. | ||
Ligne 289: | Ligne 289: | ||
In this simple command, sendmail reads a message from standard input and make “test email” as the message body, then send this message to your Gmail account. You should be able to receive this test email in your Gmail inbox (or spam folder). You can see that although we didn’t specify the from address, Postfix automatically append a domain name for the from address. That’s because we added our domain name in **system mail name** when installing Postfix. | In this simple command, sendmail reads a message from standard input and make “test email” as the message body, then send this message to your Gmail account. You should be able to receive this test email in your Gmail inbox (or spam folder). You can see that although we didn’t specify the from address, Postfix automatically append a domain name for the from address. That’s because we added our domain name in **system mail name** when installing Postfix. | ||
- | < | + | <WRAP round tip> |
The From: domain name is determined by the myorigin parameter (aka system mail name) in Postfix, not by the myhostname parameter. | The From: domain name is determined by the myorigin parameter (aka system mail name) in Postfix, not by the myhostname parameter. | ||
</ | </ | ||
Ligne 460: | Ligne 460: | ||
</ | </ | ||
- | {{ tutoriaux: | + | {{ tutoriaux: |
This way, emails for // | This way, emails for // | ||
Ligne 466: | Ligne 466: | ||
<code bash> | <code bash> | ||
sudo newaliases | sudo newaliases | ||
- | /code> | + | </code> |
==== Using IPv4 Only ==== | ==== Using IPv4 Only ==== | ||
Ligne 505: | Ligne 505: | ||
If you run '' | If you run '' | ||
- | {{ tutoriaux: | + | {{ tutoriaux: |
{{page> | {{page> |