Scripts pour gérer les users automatiquement

This commit is contained in:
ayo 2026-06-16 09:08:44 +02:00
commit a6d7c44c4a
3 changed files with 16 additions and 0 deletions

6
share/dovecot.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
while IFS= read -r email; do
username="${email%@*}"
echo "${email}:{PLAIN}${username}"
done < users.txt

7
share/postfix.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
while IFS= read -r email; do
username="${email%@*}"
domain="${email#*@}"
echo "${email} ${domain}/${username}/"
done < users.txt

3
share/users.txt Normal file
View file

@ -0,0 +1,3 @@
alice@ayoinc.test
bob@ayoinc.test
charlie@ayoinc.test