Hi,I recently started using Dspam in combination with Dovecot and Postfix. Postfix delivers mail perfectly, and when I insert Dspam into the chain the mail gets delivered also, but without any Dspam headers.
I run Dspam as a daemon, and Postfix delivers to it correctly, syslog and debug logs however tell me that dspam cannot find out for which user it should proces the mail for. In the end it reinjects the mail back into Postfix without Dspam headers (and Postfix has no trouble delivering the message to the correct user).
Mail goes into Dspam from Postfix using a content filter, and comes back from Dspam on another port:
==== /etc/postfix/master.cf =========
smtp inet n - n - - smtpd
-o content_filter=lmtp:unix:/var/run/dspam/dspam.sock
localhost:10026 inet n - n - - smtpd
-o content_filter=
-o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8 ===================================== When Dspam receives the message, it logs to syslog: May 1 23:58:43 meredith-mail dspam[7620]: bailing on error -2May 1 23:58:43 meredith-mail dspam[7620]: received invalid result (! DSR_ISSPAM || DSR_INNOCENT) : -2 May 1 23:58:43 meredith-mail dspam[7620]: process_message returned error -2. delivering.
And after turning on debug in Dspam, it seems that it can't find the valid user to proces the mail for, debug file says:
7620: [05/01/2008 23:58:43] _ds_pref_load: unable to _mysql_drv_getpwnam([EMAIL PROTECTED])
I manually put in some prefs in the mysql backend, to test this. Further down the line other queries to the DB (f.i. _mysql_drv_get_spamtotals) also fail for the same reason. The user 'tomhendr' is a valid system user with uid 1000 however (I'm not using virtual users).
Any ideas on what is wrong with my setup? This is on a Gentoo linux host, using Postfix 2.4.6 and Dspam 3.8.0.
--
Regards,
Tom
signature.asc
Description: OpenPGP digital signature
