fixes
This commit is contained in:
parent
4149655432
commit
68dc2ae779
|
|
@ -10,7 +10,8 @@ info_log_path = /var/log/dovecot-info.log
|
||||||
debug_log_path = /var/log/dovecot-debug.log
|
debug_log_path = /var/log/dovecot-debug.log
|
||||||
|
|
||||||
# Mail-Location
|
# Mail-Location
|
||||||
mail_location = maildir:/var/mail/%u
|
# Für Benutzer mit @ in der E-Mail-Adresse
|
||||||
|
mail_location = maildir:/var/mail/%d/%n
|
||||||
|
|
||||||
# Authentifizierung
|
# Authentifizierung
|
||||||
auth_mechanisms = plain login
|
auth_mechanisms = plain login
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
# Für Plaintext-Passwörter
|
# Für Plaintext-Passwörter
|
||||||
user1:{PLAIN}geheim:1000:1000::/var/mail/user1:/bin/false
|
user1:{PLAIN}geheim:1000:1000::/var/mail/user1:/bin/false
|
||||||
bizmatch.net:{PLAIN}passwort123:1001:1000::/var/mail/bizmatch.net:/bin/false
|
bizmatch.net:{PLAIN}passwort123:1001:1000::/var/mail/bizmatch.net:/bin/false
|
||||||
info@bizmatch.net:{PLAIN}passwort123:1001:1000::/var/mail/info@bizmatch.net:/bin/false
|
info\@bizmatch.net:{PLAIN}passwort123:1001:1000::/var/mail/bizmatch.net/info:/bin/false
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Dieses Skript richtet die Verzeichnisstruktur und Berechtigungen für Dovecot ein
|
||||||
|
|
||||||
|
# Erstellen der Verzeichnisstruktur
|
||||||
|
mkdir -p /var/mail/domains/bizmatch.net/info
|
||||||
|
mkdir -p /var/mail/user1
|
||||||
|
mkdir -p /var/mail/user2
|
||||||
|
|
||||||
|
# Festlegen der richtigen Besitzer und Berechtigungen
|
||||||
|
chown -R 1001:1000 /var/mail/domains/bizmatch.net/info
|
||||||
|
chown -R 1000:1000 /var/mail/user1
|
||||||
|
chown -R 1001:1000 /var/mail/user2
|
||||||
|
|
||||||
|
# Setzen der Berechtigungen (wichtig für den dovecot Zugriff)
|
||||||
|
chmod -R 0770 /var/mail
|
||||||
|
|
||||||
|
# Ausgabe zur Bestätigung
|
||||||
|
echo "Verzeichnisse und Berechtigungen wurden korrekt eingerichtet."
|
||||||
|
echo "Verzeichnisstruktur:"
|
||||||
|
ls -la /var/mail
|
||||||
|
ls -la /var/mail/domains/bizmatch.net
|
||||||
Loading…
Reference in New Issue