Valera V.Harseko wrote:
> cgpsa.conf
>
> # A flag that determines whether debugging output is turned on. If you're
> # concerned about speed, it may be (minimally) advantageous to turn
> # debugging output off.
> #
> # debug = true
>
> # The debugging level of the filter. This determines how verbose its output
> # is, which in turn determines (in concert with CommuniGate's log level) how
> # large your CommuniGate logs will be. The valid range is 0-9, where 0 means
> # to output as little as possible and 9 means to output as much as possible.
> # The default of 8 provides sufficient debugging output for most purposes.
> #
> # debug_level = 9
>
> # A flag that determines whether SpamAssassin will output debugging
> # information to standard error. Turning this on generates a very large
> # amount of output, so it should only be done to gather information when
> # problems arise with message processing.
> #
> # sa_debug = true
>
> # A flag that determines whether or not CGPSA will direct messages that
> # would normally be output on the standard error stream to a file instead.
> # This prevents CGPSA from hanging on certain operating systems. Note that
> # CGPSA error messages appear in the CommuniGate Pro log (if the filter
> # log level is high enough) in addition to this error file, but SpamAssassin
>
> # error messages never appear in the CommuniGate Pro log. The output appears
>
> # in the file "cgpsa.err", in the default home directory. The default is to
> # direct error messages to the file (and not standard error).
> #
> # Note that currently there is no log rotation or other mechanism to keep
> # this file from growing without bound.
> #
> redirect_stderr = true
>
>
Поменял уровень дебага с debug_level = 8 на debug_level = 9
и включил sa_debug = true
В итоге в файле /var/CommuniGate/Settings/cgpsa.err вижу весь дебаг
работы спамассассина с его тестами и добавлением заголовков.
Но вопрос то так и остался: "Почему в /var/log/maillog не пишется
результат проверки письма спамассассином".
Если не сложно, то может кто-нибудь поделится кусками конфига
spamassassin (local.cf) и конфига cgpsa.conf.
Чую что где-то не хватает какой-то одной мелкой опции, но так и не могу
понять где указать чтобы в файле /var/log/maillog при проверке письма
у меня появлялись строки вида:
Nov 11 15:46:32 mail spamd[2117]: spamd: connection from
localhost.domain.ru [127.0.0.1] at port 51153
Nov 11 15:46:32 mail spamd[2117]: spamd: processing message
<089287725.93678897280243@yahoo.es> for root:58
Nov 11 15:46:36 mail spamd[2117]: spamd: clean message (2.8/5.0) for
root:58 in 3.7 seconds, 4656 bytes.
Nov 11 15:46:36 mail spamd[2117]: spamd: result: . 2 -
AWL,DNS_FROM_RFC_ABUSE,HTML_FONT_BIG,HTML_MESSAGE,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_R
ANGE_E4_51_100,RAZOR2_CHECK
scantime=3.7,size=4656,user=root,uid=58,required_score=5.0,rhost=localhost.domain.ru,raddr=127.0.0.1,rport=5115
3,mid=<089287725.93678897280243@yahoo.es>,autolearn=no
(приведенный выше лог записался в /var/log/maillog после исполнения в консоли spamc -d 127.0.0.1 -p 783 < message.test) Получено Tue Nov 11 11:50:16 2008
Этот архив был сгенерирован hypermail 2.1.8 : Fri 24 Apr 2015 - 16:16:13 MSK