Команда
Код: Выделить всё
usr/local/bin/dspam --debug --deliver=innocent --user local_part@domain.com -- %u < spam.txt
Для обучения фильтра пользователями создал почтовый ящик spam-user@modernglass.ru , куда они пересылают спамовые письма.
Однако не понятно работает он или нет, в логах dspam пишет:
Код: Выделить всё
79310: [05/21/2008 11:12:26] DSPAM Instance Startup
79310: [05/21/2008 11:12:26] input args: /usr/local/bin/dspam --user user@modernglass.ru --class=spam --source=error
79310: [05/21/2008 11:12:26] pass-thru args:
79310: [05/21/2008 11:12:26] processing user user@modernglass.ru
79310: [05/21/2008 11:12:26] uid = 1981, euid = 0, gid = 1981, egid = 1981
79310: [05/21/2008 11:12:26] loading preferences for user user@modernglass.ru
79310: [05/21/2008 11:12:26] default preferences empty. reverting to dspam.conf preferences.
79310: [05/21/2008 11:12:26] Loading preferences from dspam.conf
79310: [05/21/2008 11:12:26] using /var/db/dspam/opt-in/user@modernglass.ru.dspam as path
79310: [05/21/2008 11:12:26] using /var/db/dspam/opt-out/user@modernglass.ru.nodspam as path
79310: [05/21/2008 11:12:26] sedation level set to: 0
79310: [05/21/2008 11:12:26] _mysql_drv_get_spamtotals: unable to _mysql_drv_getpwnam(user@modernglass.ru)
79310: [05/21/2008 11:12:26] unable to load totals. using zero values.
79310: [05/21/2008 11:12:26] message is signed. retaining original text for reassembly
79310: [05/21/2008 11:12:26] found signature '482995a5782771900511963'
79310: [05/21/2008 11:12:26] message is signed. retaining original text for reassembly
79310: [05/21/2008 11:12:26] message is signed. retaining original text for reassembly
79310: [05/21/2008 11:12:26] _ds_get_signature: unable to _mysql_drv_getpwnam(user@modernglass.ru)
79310: [05/21/2008 11:12:26] _mysql_drv_get_spamtotals: unable to _mysql_drv_getpwnam(user@modernglass.ru)
79310: [05/21/2008 11:12:26] DSPAM Instance Shutdown. Exit Code: 0
79337: [05/21/2008 11:13:15] No QuarantineAgent option found. Using standard quarantine.
Код: Выделить всё
2008-05-21 11:20:43 Delay 0s for dan.mglass [192.168.5.9] with HELO=dan.mglass. Mail from ххх@modernglass.ru to spam-
user@modernglass.ru.
2008-05-21 11:20:43 1Jygkl-000LB4-35 <= ххх@modernglass.ru H=dan.mglass [192.168.5.9] I=[192.168.5.145]:25 P=esmtp S=
36207 id=849369369.20080521112043@modernglass.ru from <ххх@modernglass.ru> for spam-user@modernglass.ru
2008-05-21 11:20:43 1Jygkl-000LB4-35 <spam-user@modernglass.ru>: dspam_addspam_transport transport output: 81413: [05/21
/2008 11:20:43] Signature retrieval for '4829f363980266886717757' failed
2008-05-21 11:20:43 1Jygkl-000LB4-35 => user <spam-user@modernglass.ru> R=dspam_addspam_router T=dspam_addspam_transport
2008-05-21 11:20:43 1Jygkl-000LB4-35 Completed