diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-31 07:40:52 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-31 07:40:52 +0900 |
| commit | b9de605e55908181d3b498bf3e3c8bb20d75d056 (patch) | |
| tree | 7128cb8b4e2fa42a918380b08d8cb692ff23a659 | |
| parent | 3c1d49c6a1cc1c8cdec059af4bda68052e2cec0b (diff) | |
modified emailwiz.sh
| -rw-r--r-- | emailwiz.sh | 47 |
1 files changed, 19 insertions, 28 deletions
diff --git a/emailwiz.sh b/emailwiz.sh index ce7d64c..5c5bd03 100644 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -239,6 +239,7 @@ protocols = \$protocols $allowed_protocols userdb { driver = passwd } + #Fallback: Use plain old PAM to find user passwords passdb { driver = pam @@ -250,38 +251,33 @@ mail_location = $mailbox_format:~/Mail:INBOX=~/Mail/Inbox:LAYOUT=fs namespace inbox { inbox = yes mailbox Drafts { - special_use = \\Drafts - auto = subscribe -} + special_use = \\Drafts + auto = subscribe + } mailbox Junk { - special_use = \\Junk - auto = subscribe - autoexpunge = 30d -} - mailbox Spam { - special_use = \\Spam - auto = subscribe - autoexpunge = 7d -} + special_use = \\Junk + auto = subscribe + autoexpunge = 30d + } mailbox Sent { - special_use = \\Sent - auto = subscribe -} + special_use = \\Sent + auto = subscribe + } mailbox Trash { - special_use = \\Trash -} + special_use = \\Trash + } mailbox Archive { - special_use = \\Archive -} + special_use = \\Archive + } } # Here we let Postfix use Dovecot's authentication system. service auth { unix_listener /var/spool/postfix/private/auth { - mode = 0660 - user = postfix - group = postfix -} + mode = 0660 + user = postfix + group = postfix + } } protocol lda { @@ -318,11 +314,6 @@ if header :contains \"X-Spam-Flag\" \"YES\" { fileinto \"Junk\"; }" >/var/lib/dovecot/sieve/default.sieve -echo "require [\"fileinto\", \"mailbox\"]; -if header :contains \"X-Spam-Level\" \"***************\" { - fileinto \"Spam\"; -}" >>/var/lib/dovecot/sieve/default.sieve - grep -q '^vmail:' /etc/passwd || useradd vmail chown -R vmail:vmail /var/lib/dovecot sievec /var/lib/dovecot/sieve/default.sieve |
