Ajouter README avec instructions d'installation
This commit is contained in:
parent
4a989bad17
commit
4f7b9322ad
5 changed files with 76 additions and 7 deletions
63
README.md
Normal file
63
README.md
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
# Mailstack - Serveur Mail Postfix + Dovecot
|
||||
|
||||
## Installation sur Debian
|
||||
|
||||
### 1. Installer les dépendances
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
sudo apt install -y podman podman-compose swaks git
|
||||
```
|
||||
|
||||
### 2. Se connecter en tant qu'utilisateur non-root
|
||||
|
||||
```bash
|
||||
su - ayo
|
||||
```
|
||||
|
||||
### 3. Cloner le projet
|
||||
|
||||
```bash
|
||||
git clone https://git.ayo.tokyo/jalwan/mail-files.git
|
||||
cd mail-files
|
||||
```
|
||||
|
||||
### 4. Créer le fichier hosts local
|
||||
|
||||
```bash
|
||||
cat > hosts << 'EOF'
|
||||
127.0.0.1 localhost
|
||||
127.0.0.1 mail.ayoinc.test ayoinc.test
|
||||
::1 localhost
|
||||
EOF
|
||||
```
|
||||
|
||||
### 5. Lancer les conteneurs
|
||||
|
||||
```bash
|
||||
podman-compose up -d
|
||||
```
|
||||
|
||||
### 6. Vérifier que tout tourne
|
||||
|
||||
```bash
|
||||
podman-compose ps
|
||||
```
|
||||
|
||||
Devrait afficher :
|
||||
mailstack-dovecot Up
|
||||
|
||||
mailstack-postfix Up
|
||||
|
||||
## 📧 Tester l'envoi de mail
|
||||
|
||||
```bash
|
||||
swaks --server localhost --port 1025 \
|
||||
--from alice@ayoinc.test \
|
||||
--to bob@ayoinc.test \
|
||||
--header "Subject: Test Mailstack" \
|
||||
--body "Bonjour, ceci est un test"
|
||||
```
|
||||
|
||||
---
|
||||
Loading…
Add table
Add a link
Reference in a new issue