Almost there with Sieve

Danny Horne danny at trisect.uk
Tue Jul 31 13:51:24 EEST 2018


Hi all,

Dovecot - 2.2.35
Pigeonhole - 0.4.23

I've recently moved mail filtering from local filtering (using
Thunderbird) to Sieve.  I've got filtering into folders and flagging
emails working fine, but for possibly one tiny glitch.

When specifying folders to filter into I have to use the format
'INBOX/Folder name' instead of just 'Folder name'.  Can this be
corrected?  No real biggie but would be nice if it could.

[root at kepler ~]# dovecot -n
# 2.2.35 (b1cb664): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.23 (b2e41927)
# OS: Linux 4.17.3-200.fc28.x86_64 x86_64 Fedora release 28 (Twenty
Eight) xfs
# Hostname: kepler.trisect.uk
auth_mechanisms = cram-md5
base_dir = /var/run/dovecot/
mail_access_groups = mail
mail_home = /var/spool/vhosts/homedir/%d/%n
mail_location = mbox:/var/spool/vhosts/%d/%n:INBOX=/var/spool/mail/%d/%n
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date index ihave duplicate mime foreverypart extracttext
mbox_write_locks = fcntl
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  args = scheme=cram-md5 /etc/cram-md5.pwd
  driver = passwd-file
}
passdb {
  driver = pam
}
plugin {
  sieve =
file:/var/spool/vhosts/sieve-scripts;active=/var/spool/vhosts/sieve-scripts/%u.sieve
  sieve_user_email = postmaster at trisect.uk
}
protocols = imap lmtp sieve sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service imap-login {
  inet_listener imap {
    port = 0
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  process_min_avail = 0
  service_count = 0
  vsz_limit = 256 M
}
service managesieve {
  process_limit = 1024
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key =  # hidden, use -P to show it
userdb {
  args = uid=vmail gid=vmail
  driver = static
}
userdb {
  driver = passwd
}
protocol lmtp {
  mail_plugins = " sieve"
}
protocol lda {
  mail_plugins = " sieve"
}
protocol imap {
  mail_max_userip_connections = 200
}
protocol sieve {
  mail_max_userip_connections = 25
  managesieve_implementation_string = Dovecot Pigeonhole
  managesieve_max_compile_errors = 5
  managesieve_max_line_length = 65536
}

Thanks for looking




More information about the dovecot mailing list