From b9de605e55908181d3b498bf3e3c8bb20d75d056 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 31 Jan 2025 07:40:52 +0900 Subject: modified emailwiz.sh --- emailwiz.sh | 47 +++++++++++++++++++---------------------------- 1 file changed, 19 insertions(+), 28 deletions(-) (limited to 'emailwiz.sh') 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 -- cgit v1.2.3