Scripts pour gérer les users automatiquement
This commit is contained in:
parent
24cf567d9a
commit
a6d7c44c4a
3 changed files with 16 additions and 0 deletions
6
share/dovecot.sh
Executable file
6
share/dovecot.sh
Executable 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
7
share/postfix.sh
Executable 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
3
share/users.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
alice@ayoinc.test
|
||||||
|
bob@ayoinc.test
|
||||||
|
charlie@ayoinc.test
|
||||||
Loading…
Add table
Add a link
Reference in a new issue