[Postfixbuch-users] cyrus sasl - sqlite auth backend - ERLEDIGT

Trevor Ochmonek ochmonek at gmx.de
Fr Feb 15 17:33:29 CET 2008


>
> Hallo!
>
> Hurra!!! Einen Schritt weiter gekommen, chroot war ein guter Tipp!  :-) 
>
> Ich habe den smtpd mit chroot n aus dem Jail befreit und siehe da: 
> Funktioniert!
>
> Folgendes Log ist dabei entstanden:
>
> Feb 15 16:03:24 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql auxprop 
> plugin using sqlite engine
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin Parse 
> the username trevor at ochmonek.xx
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin try 
> and connect to a host
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin trying 
> to open db '/etc/sasl.db' on host ''
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin Parse 
> the username trevor at ochmonek.xx
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin try 
> and connect to a host
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin trying 
> to open db '/etc/sasl.db' on host ''
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: begin transaction
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin: 
> unable to open database file
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: Unable to begin 
> transaction
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin create 
> statement from userPassword trevor ochmonek.xx
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin doing 
> query SELECT clear FROM passwd WHERE id='trevor at ochmonek.xx';
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin create 
> statement from cmusaslsecretPLAIN trevor ochmonek.xx
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin doing 
> query SELECT clear FROM passwd WHERE id='trevor at ochmonek.xx';
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: commit transaction
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin Parse 
> the username trevor at ochmonek.xx
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin try 
> and connect to a host
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin trying 
> to open db '/etc/sasl.db' on host ''
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin Parse 
> the username trevor at ochmonek.xx
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin try 
> and connect to a host
> Feb 15 16:03:38 lvpsxx-xxx-xx-xxx postfix/smtpd[9665]: sql plugin trying 
> to open db '/etc/sasl.db' on host ''
>
> Große Freude! Also die Datei /etc/sasl.db (root/postfix 660) nach 
> /var/spool/postfix/etc/sasl.db (root/postfix 660) kopiert und das Jail 
> wieder eingeschaltet.
>
> Und? Funktioniert nicht ... wäre ja auch zu schön gewesen!  :-( 
>
> Dabei kommt dieses Log zustande:
>
> Feb 15 16:12:03 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql auxprop 
> plugin using sqlite engine
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin Parse 
> the username trevor at ochmonek.xx
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin try 
> and connect to a host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin 
> trying to open db '/etc/sasl.db' on host ''
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin: 
> malformed database schema - unable to open a temporary database file for 
> storing temporary tables
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin could 
> not connect to host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin 
> couldn't connect to any host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin Parse 
> the username trevor at ochmonek.xx
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin try 
> and connect to a host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin 
> trying to open db '/etc/sasl.db' on host ''
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin: 
> malformed database schema - unable to open a temporary database file for 
> storing temporary tables
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin could 
> not connect to host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin 
> couldn't connect to any host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin Parse 
> the username trevor at ochmonek.xx
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin try 
> and connect to a host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin 
> trying to open db '/etc/sasl.db' on host ''
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin: 
> malformed database schema - unable to open a temporary database file for 
> storing temporary tables
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin could 
> not connect to host
> Feb 15 16:12:34 lvpsxx-xxx-xx-xxx postfix/smtpd[18328]: sql plugin 
> couldn't connect to any host
>
> Noch eine gute Idee und die Sache läuft . . .
>
> Wo ist das Problem? Wieder Zugriffrechte oder fehlender Ordner? Hmm.
>
> MfG
> Trevor
Problem gelöst!!!

mkdir /var/spool/postfix/var/tmp
und
chmod a+rwx,o+t /var/spool/postfix/var/tmp

haben das Kind zum Laufen gebracht . . . :-) :-) :-) Das temporäre 
Verzeichnis im chroot fehlte.

Falls ich wahnsinnig genug bin, versuche ich jetzt das sql-plugin von 
cyrus sasl auf sqlite3 zu portieren.

Vielen Dank für die Hilfe!!! (Dafür bin ich auch im Besitz des Buches 
mit der ISDN 3-89864-350-6)


;-)
T.O.














Mehr Informationen über die Mailingliste Postfixbuch-users