[Postfixbuch-users] postfix, cyrus, mysql

FooBar foobar at web.de
Sa Mär 26 14:44:53 CET 2011


On 03/26/2011 02:08 PM, FooBar wrote:
> 
> ich versuche mich gerade an postfix, cyrus, mysql
> 
> ich hab folgendes:
> 
> $> cat /etc/sasl2/smtpd.conf
> pwcheck_method: auxprop
> mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
> log_level: 3
> #auxprop_plugin: sasldb
> auxprop_plugin: sql
> sql_engine: mysql
> sql_hostnames: localhost
> sql_usessl: no
> sql_database: authdb
> sql_user: postfix
> sql_password: XXXXXXXXX
> sql_select: select %p from mail_accounts where uid = '%u' and active = 1;
>
> $> cat /etc/imapd.conf
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> sievedir: /var/lib/sieve
> admins: cyrus
> allowanonymouslogin: no
> allowplaintext: no
> autocreatequota: 0
> reject8bit: no
> quotawarn: 90
> timeout: 30
> poptimeout: 10
> #-- auth stuff
> sasl_pwcheck_method: auxprop
> sasl_mech_list: LOGIN CRAM-MD5 DIGEST-MD5
> sasl_auxprop_plugin: sql
> sasl_sql_engine: mysql
> sasl_sql_hostnames: localhost
> sasl_sql_user: cyrus
> sasl_sql_password: XXXX
> sasl_sql_database: authdb
> sasl_sql_verbose: yes
> sasl_sql_usessl: 0
> sasl_sql_select: select password from mail_accounts where uid = '%u' and
> active = 1;
> #--
> lmtp_overquota_perm_failure: no
> lmtp_downcase_rcpt: yes
> virtdomains: yes
> defaultdomain: test01.de
> 
> 
> das setup mit der kombination auxprop/sasldb hat schon funktioniert,
> nun will ich aber nicht immer saslpasswd2 usw. benutzen sondern wollte
> alles in eine mysqldb packen
> 
> die db-selects mit den in imapd.conf und smtpd.conf eingetragen
> parametern funktionieren, ein
> 
> select password from mail_accounts where uid = 'user01 at test01.de' and
> active = 1;"
> 
> liefert mir das passwort im klartext ...
> 
> nur ein
> 
> imtest -a user01 at test01.de localhost
> 
> führt nur zu
> 
> Mar 26 13:54:18 m01 imap[31438]: badlogin: localhost [127.0.0.1]
> CRAM-MD5 [SASL(-13): user not found: no secret in database]
> 
> häää ... warum das ?

da cyrus "virtdomains: yes" hat und in meiner mysql (genau wie in der
vorherigen salsdb) "user01 at test01.de" als username steht hab ich die
sql-states mal angepasst

von:
  select password from mail_accounts where uid='%u' ...
auf
  select password from mail_accounts where uid='%u@%r' ...

leider bringt das garnix ;( .... ein

$> imtest -a user01 at test01.de localhost
oder
$> imtest -a user01 -r test01.de localhost

enden immernoch in "user not found: no secret in database"

...

hat irgendwer eine idee was hier schief läuft ... ?



cu
-- 
... bevor mich der teufel holt, trinkt er sich mut an ...



Mehr Informationen über die Mailingliste Postfixbuch-users