Portál AbcLinuxu, 31. října 2025 14:38
smtp      inet  n       -       -       -       -       smtpd          
          -o content_filter=spamassassin
spamassassin unix -     n       n       -       -       pipe
        user=spamassassin argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
ENABLED=1
OPTIONS="--max-children 5 --username spamassassin --helper-home-dir ${SAHOME} -s ${SAHOME}spamd.log -q -Q -x -D -d"
/etc/spamassassin/sql.cf
user_scores_dsn                  DBI:mysql:spamassassin:localhost:3306
user_scores_sql_password         XXXXX
user_scores_sql_username         spamassassin
user_scores_sql_custom_query     SELECT preference, value FROM _TABLE_ WHERE username = _USERNAME_ OR username = '$GLOBAL' OR username = CONCAT('%',_DOMAIN_) ORDER BY username ASC
Tue Feb 22 13:52:08 2011 [4993] dbg: config: Conf::SQL: executing SQL: SELECT preference, value FROM userpref WHERE username = 'spamassassin' OR username = '$GLOBAL' OR username = CONCAT('%',NULL) ORDER BY username ASC
Tue Feb 22 13:52:08 2011 [4993] dbg: config: retrieving prefs for spamassassin from SQL server
... How you get spamc to call -u with the proper information is up to you. In qmail-scanner, I do the following.. in the sub spamassassin function before it opens up the spamc call - ...Ovšem já používám postfix a tudíž nevím, jak se to dá řešit.
        Tiskni
            
                Sdílej:
                 
                 
                 
                 
                 
                 
            
    
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.