[main] # Authentication back-end to use auth = SASL # User DB back-end to use userdb = passwd # Storage back-end to use storage = Dovecot # Listen on what port? (Ignored with --stdin) port = 2000 # Write a pidfile here pidfile = /var/run/pysieved.pid [SASL] # How do we identify ourself to saslauthd? service = managesieve # Where's the magic mux file? mux = /var/run/saslauthd/mux [PAM] # How do we identify ourself to PAM? service = pysieved [Virtual] # Append username to this for home directories base = /usr/local/virtual/ # What UID and GID should own all files? uid = 1001 gid = 1001 [MySQL] dbhost = localhost dbuser = user dbpass = pass dbname = db auth_query = SELECT username FROM users WHERE username = "%(username)s" AND password = "%(password)s" AND (active = "1") user_query = SELECT homedir FROM users WHERE username = "%(username)s" AND (active = "1") [LDAP] host = localhost base_dn = ou=users,dc=example,dc=org search_template = (uid=%(username)s) [Dovecot] # Path to sievec sievec = /usr/lib/dovecot/sievec # Where in user directory to store scripts scripts = .pysieved [Dovecot Single] # What should your single script be called? scriptname = phpscript