mail-files/README.md

52 lines
802 B
Markdown

# 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. Lancer les conteneurs
```bash
podman-compose up -d
```
### 5. Vérifier que tout tourne
```bash
podman-compose ps
```
Devrait afficher :
mailstack-dovecot Up
mailstack-postfix Up
## 6. 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"
```
---