Current time: 12-04-2024, 03:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
Avelsieve - Squirrelmail/Roundcube Problem
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #11
RE: Avelsieve - Squirrelmail/Roundcube Problem
Quote:Roundcube läuft bei mir über managesieve problemlos...

Ich habe es noch mit SquirrelMail am laufen will aber weg von und auch zu RoundCube. RoundCube selber habe ich schon gepacht so das Serverseitige Filter gesetzt werden und in der GUI zu managen sind, funktioniert aber noch nicht wirklich. pysieved ist am laufen und sollte doch damit gehen ?!

Wie hast Du es gelößt ?

Greez BeNe
(This post was last modified: 03-05-2009 01:43 AM by BeNe.)
03-05-2009 01:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #12
RE: Avelsieve - Squirrelmail/Roundcube Problem
(03-05-2009 01:33 AM)BeNe Wrote:  Wie hast Du es gelößt ?

Roundcube Installation mit SieveRules patch (http://www.tehinterweb.co.uk/roundcube/#ptsieverules)

Dovecot src build mit ManageSieve (http://wiki.dovecot.org/ManageSieve) Patch und Dovecot-Sieve plugin

Ich kann hier kurz eine Anleitung posten, aber habe die meisten Infos zu hause, wird also ca. 23:00 werden...
03-05-2009 05:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #13
RE: Avelsieve - Squirrelmail/Roundcube Problem
Ich gehe davon aus dass roundcube bereits gepacht ist... Ansonsten patch von obengenanntem Link einspielen...

Hier das Dovecot from Source Setup (für CentOS):
Code:
yum install sqlite-devel pam-devel mysql-devel ldap-devel openssl-devel make gcc binutils patch (in CentOS)

cd /usr/local/src
wget http://dovecot.org/releases/1.1/dovecot-1.1.11.tar.gz
wget http://dovecot.org/releases/sieve/dovecot-sieve-1.1.6.tar.gz
wget http://www.rename-it.nl/dovecot/1.1/dovecot-1.1.11-managesieve-0.10.5.diff.gz
wget http://www.rename-it.nl/dovecot/1.1/dovecot-1.1-managesieve-0.10.5.tar.gz
tar -xvzf http://dovecot.org/releases/1.1/dovecot-1.1.11.tar.gz
tar -xvzf http://dovecot.org/releases/sieve/dovecot-sieve-1.1.6.tar.gz
tar -xvzf http://www.rename-it.nl/dovecot/1.1/dovecot-1.1-managesieve-0.10.5.tar.gz

cd dovecot-1.1.11
gzip -dc ../dovecot-1.1.11-managesieve-0.10.5.diff.gz | patch -p1
./configure --enable-ipv6 --with-pop3d --with-deliver --with-mysql --with-sqlite --with-passwd --with-passwd-file --with-shadow --with-pam --with-checkpassword --with-static-userdb --with-prefetch-userdb --with-sql --with-ldap
make
make install

cd ../dovecot-sieve-1.1.6
./configure --with-dovecot=../dovecot-1.1.11
make
make install

cd ../dovecot-1.1-managesieve-0.10.5
./configure --with-dovecot=../dovecot-1.1.11 --with-dovecot-sieve=../dovecot-sieve-1.1.6
make
make install

ln -s /usr/sbin/sendmail /usr/lib/sendmail

/usr/local/etc/dovecot.conf anpassen:
...
protocols = ... managesieve
...
protocol_lda {
mail_plugins = ... cmusieve
...
protocol managesieve {
    sieve = ~/.dovecot.sieve
    sieve_storage=~/sieve
}
...

/etc/postfix/master.cf anpassen:
...
dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}

/etc/postfix/main.cf anpassen:
virtual_transport                    = dovecot
dovecot_destination_recipient_limit  = 1

Falls in der dovecot config cram-md5 oder digest-md5 aktiviert sind, in der datei <rcdir>/plugins/sieverules/Net_Sieve.php:
Code:
var $supportedAuthMethods=array('DIGEST-MD5', 'CRAM-MD5', 'PLAIN' , 'LOGIN');
ersetzen durch
Code:
var $supportedAuthMethods=array( 'PLAIN' , 'LOGIN');
(This post was last modified: 03-05-2009 08:21 AM by rbtux.)
03-05-2009 08:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #14
RE: Avelsieve - Squirrelmail/Roundcube Problem
(03-05-2009 12:30 AM)rbtux Wrote:  in der /var/log/mail.info

Ich hab mal nen Ausschnitt rausgeholt.

Quote:Mar 4 14:19:16 alpha dovecot: auth(default): checkpassword(info@DOMAIN.de,127.0.0.1): exit_status=0
Mar 4 14:19:16 alpha dovecot: auth(default): client out: OK^I1^Iuser=info@DOMAIN.de
Mar 4 14:19:16 alpha dovecot: auth(default): master in: REQUEST^I3^I19973^I1
Mar 4 14:19:16 alpha dovecot: auth(default): master out: USER^I3^Iinfo@DOMAIN.de^Iuser=info@DOMAIN.de^Ihome=/$
Mar 4 14:19:16 alpha dovecot: imap-login: Login: user=<info@DOMAIN.de>, method=PLAIN, rip=127.0.0.1, lip=127$
Mar 4 14:19:16 alpha dovecot: IMAP(info@DOMAIN.de): Disconnected: Logged out
Mar 4 14:19:17 alpha dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=IMAP^Isecured^Ilip=127.0.0.$
Mar 4 14:19:17 alpha dovecot: auth(default): checkpassword(info@DOMAIN.de,127.0.0.1): Executed: /var/www/isp$
Mar 4 14:19:18 alpha dovecot: auth(default): checkpassword(info@DOMAIN.de,127.0.0.1): Received input: userdb$
Mar 4 14:19:18 alpha dovecot: auth(default): checkpassword(info@DOMAIN.de,127.0.0.1): Received no input
Mar 4 14:19:18 alpha dovecot: auth(default): checkpassword(info@DOMAIN.de,127.0.0.1): exit_status=0
Mar 4 14:19:18 alpha dovecot: auth(default): client out: OK^I1^Iuser=info@DOMAIN.de
Mar 4 14:19:18 alpha dovecot: auth(default): master in: REQUEST^I4^I20045^I1
Mar 4 14:19:18 alpha dovecot: auth(default): master out: USER^I4^Iinfo@DOMAIN.de^Iuser=info@DOMAIN.de^Ihome=/$
Mar 4 14:19:18 alpha dovecot: imap-login: Login: user=<info@DOMAIN.de>, method=PLAIN, rip=127.0.0.1, lip=127$
Mar 4 14:19:18 alpha pysieved[19622]: Connect from ('127.0.0.1', 2713)
Mar 4 14:19:18 alpha dovecot: auth(pysieved): client in: AUTH^I1^IPLAIN^Iservice=pysieved^Iresp=<hidden>
Mar 4 14:19:18 alpha dovecot: auth-worker(pysieved): sql(info@DOMAIN.de): query: SELECT md5(mail_pass) AS pa$
Mar 4 14:19:18 alpha dovecot: auth-worker(pysieved): sql(info@DOMAIN.de): Password mismatch

Keine Ahnung warum da "Password mismatch" steht. Bin alle Dateien nochmal durchgegangen die im HowTo stehen. Hab nirgends ein Falsches Passwort gefunden.

Gruß
FISA4
03-05-2009 09:33 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #15
RE: Avelsieve - Squirrelmail/Roundcube Problem
du hast aber checkpassword auf dem default auth laufen, das heisst passwörter sind verschlüsselt in der db, und deine config liest die passwörter nicht verschlüsselt..

ändere in der dovecot.conf unter:
Code:
auth pysieved {
...
passdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}

passdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
...

zu

Code:
...
passdb checkpassword {
args = /var/www/ispcp/engine/ispcp-dovecot-mngr
}

userdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-aliasdomain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
...
(This post was last modified: 03-05-2009 09:46 AM by rbtux.)
03-05-2009 09:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #16
RE: Avelsieve - Squirrelmail/Roundcube Problem
(03-05-2009 09:45 AM)rbtux Wrote:  du hast aber checkpassword auf dem default auth laufen, das heisst passwörter sind verschlüsselt in der db, und deine config liest die passwörter nicht verschlüsselt..

ändere in der dovecot.conf unter:
Code:
auth pysieved {
...
passdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}

passdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
...

zu

Code:
...
passdb checkpassword {
args = /var/www/ispcp/engine/ispcp-dovecot-mngr
}

userdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-aliasdomain.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
...

Irgendwie sehe ich heute den Wald vor lauter Bäumen nicht.
Kannst Du mir meine dovecot.conf mal ändern?


Attached File(s)
.txt  dovecot.conf.txt (Size: 1.28 KB / Downloads: 11)
03-05-2009 06:55 PM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #17
RE: Avelsieve - Squirrelmail/Roundcube Problem
Du solltest dich in die Dovecot Materie einarbeiten wenn du Dovecot installierst...

Anyway, probier diese dovecot.conf für RC7 (bitte noch die postmaster adresse anpassen...):
Code:
base_dir = /var/run/dovecot/
protocols = imap pop3
disable_plaintext_auth = no
listen=*
syslog_facility = mail
login_greeting = Dovecot ready.
mail_location = maildir:/var/mail/virtual/%d/%n
mail_privileged_group = mail
auth_debug = yes
protocol imap {
}

namespace private {
prefix = INBOX.
inbox = yes
}

protocol pop3 {
pop3_uidl_format = %u-%v
}

protocol lda {
postmaster_address = postmaster@yourdomain.tld
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = cmusieve
}

auth default {
mechanisms = plain login
passdb checkpassword {
  args = /var/www/ispcp/engine/ispcp-dovecot-mngr
}
userdb sql {
  args = /etc/dovecot/dovecot-sql-domain.conf
}
userdb sql {
  args = /etc/dovecot/dovecot-sql-aliasdomain.conf
}
userdb sql {
  args = /etc/dovecot/dovecot-sql-subdomain.conf
}
socket listen {
  client {
   path = /var/spool/postfix/private/auth
   mode = 0660
   user = postfix
   group = postfix
  }

  master {
   path = /var/run/dovecot/auth-master
   mode = 0660
   user = vmail
   group = mail
  }
}

user = root
}

auth pysieved {
mechanisms = plain
passdb checkpassword {
  args = /var/www/ispcp/engine/ispcp-dovecot-mngr
}
userdb sql {
  args = /etc/dovecot/dovecot-sql-domain.conf
}
userdb sql {
  args = /etc/dovecot/dovecot-sql-aliasdomain.conf
}
userdb sql {
  args = /etc/dovecot/dovecot-sql-subdomain.conf
}

socket listen {
  client {
   path = /var/run/pysieved/auth
   mode = 0660
   user = vmail
   group = mail
  }

  master {
   path = /var/run/pysieved/auth-master
   mode = 0660
   user = vmail
   group = mail
  }
}

user = vmail
}

plugin {
}
03-05-2009 08:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #18
RE: Avelsieve - Squirrelmail/Roundcube Problem
Ich habe es jetzt ohne Patchen von DoveCot mit pysieved zum laufen gebracht. Soweit haben die ersten Regeln funktioniert. Natürlich muss da noch einiges getestet werden...aber sollte tun.

--> http://www.isp-control.net/documentation...g_optional

Greez BeNe
03-05-2009 09:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #19
RE: Avelsieve - Squirrelmail/Roundcube Problem
(03-05-2009 08:39 PM)rbtux Wrote:  Du solltest dich in die Dovecot Materie einarbeiten wenn du Dovecot installierst...

Ich weiss. Aber nach 6 Std. immer den selben Fehler hab ich angefangen, an meiner Arbeit zu zweifeln.

(03-05-2009 08:39 PM)rbtux Wrote:  Anyway, probier diese dovecot.conf für RC7 (bitte noch die postmaster adresse anpassen...):
Auch bei diese kommt der Fehler.
03-05-2009 10:10 PM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #20
RE: Avelsieve - Squirrelmail/Roundcube Problem
dienst neu gestartet?

wo sind die logs?
03-06-2009 03:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)