[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pysieved] Authentication problem
- From: Koen Vermeer <koen at vermeer dot tv>
- Subject: [pysieved] Authentication problem
- Date: Thu, 19 Apr 2007 10:48:09 +0200
Hi,
I'm trying to get pysieved to work, but I'm having some trouble. After
log in in Squirrelmail and clicking on 'Filters' (avelsieve plugin), I
get an error in pysieved as shown below:
black:/usr/local/lib/pysieved# python ./pysieved.py -d -d -d -c
pysieved.ini
1176971740.02 == Connect from ('127.0.0.1', 2408)
1176971740.02 S: '"IMPLEMENTATION" "pysieved 0.9+DEV"\r\n'
1176971740.03 S: '"SASL" "PLAIN"\r\n'
1176971740.03 S: '"SIEVE" "fileinto reject envelope vacation imapflags
notify subaddress relational comparator-i;ascii-numeric"\r\n'
1176971740.04 C: 'OK\r\n'
1176971740.04 C: 'AUTHENTICATE "PLAIN" {48+}'
1176971740.04 C: '[===removed===]'
1176971740.04 C: ''
AUTH: Auth returns 'CH\tPLAIN\tplaintext\nVERSION\t1\t0\nSPID\t2395
\nCUID\t6769\nDONE\n'
1176971740.08 C: 'NO "Bad username or password"\r\n'
1176971740.32 == done
I login with my full email address in squirrelmail, which I also use in
dovecot. I have attached my pysieved.ini. Can anyone give me a clue on
why it fails?
Thanks!
Koen
[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
mux = /var/spool/postfix/private/auth
[PAM]
# How do we identify ourself to PAM?
service = pysieved
[Virtual]
# Append username to this for home directories
#base = /usr/local/virtual/
# base = /var/mail/vhosts/vermeer.tv/homes/
base = /var/mail/vhosts/
# What UID and GID should own all files? -1 to not bother
uid = 1002
gid = 1002
# Switch user at host dot name to host.name/user?
hostdirs = False
[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")
[htpasswd]
passfile = /etc/exim/virtual/passwd
[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