You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2008/02/28 23:36:41 UTC

[Bug 5840] New: unable to use ldap+sql

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5840

           Summary: unable to use ldap+sql
           Product: Spamassassin
           Version: 3.2.4
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: spamc/spamd
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: gennady.marchenko@gmail.com


Hello guys!

When I use ldap for user's scores & sql for bayes store I got following error (&
nothing work at all, but there exists bug for this):

config: failed to load user (user@domain.ltd) scores from SQL database: Can't
connect to data source
ldap://localhost:389/dc=domain,dc=ltd?spamassassin?sub?(|(mailalternateAddress=__USERNAME__)(mail=__USERNAME__)(mailForwardingAddress=__USERNAME__)),
no database driver specified and DBI_DSN env var not set at
/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Conf/SQL.pm line 125
spamd: service unavailable: Error fetching user preferences via SQL at
/usr/local/bin/spamd line 2006, <GEN99> line 2.

my config looks like:

user_scores_dsn
ldap://localhost:389/dc=domain,dc=ltd?spamassassin?sub?(|(mailalternateAddress=__USERNAME__)(mail=__USERNAME__)(mailForwardingAddress=__USERNAME__))
user_scores_ldap_username       uid=spamd,ou=daemon,dc=domain,dc=ltd
user_scores_ldap_password       pass
bayes_store_module Mail::SpamAssassin::BayesStore::SQL
bayes_sql_dsn DBI:mysql:spamassassin:localhost:3306
bayes_sql_username spamd
bayes_sql_password pass

But I need to get scores from ldap (where stored all information about users) &
store bayes/awl in sql. 

What I'm doing wrong? Why it's not possible? Can it be fixed?

Thanks.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5840] unable to use ldap+sql

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5840





------- Additional Comments From gennady.marchenko@gmail.com  2008-02-28 14:45 -------
my run options:

spamd_flags="-d -q --ldap-config -c -x -m 20 -u spamd"




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.