Re: [exim] SPAMASSASSIN UNIX socket

Startseite
Nachricht löschen
Nachricht beantworten
Autor: James Price
Datum:  
To: majid alavizadeh
CC: exim-users
Betreff: Re: [exim] SPAMASSASSIN UNIX socket

This may just be a spamd issue, you have SA listening via TCP not
local unix socket, so in that case you can specify the listening IP
(bind IP) as well as hosts allowed to connect to that IP. For example
in my SA installation which runs on its own dedicated machine, I have
to connect via TCP to the remote host, so I control access by
specifying what IP's are allowed to connect to the process by way of
switches in the SA startup script.
Example:
/usr/local/bin/spamd -i 123.123.123.1 -A 123.123.123.2
-i binds to 123.123.123.1
-A allows host 123.123.123.2 to connect to it
If you're running this on localhost and specifying either one of those
flags w/o the other might be a problem.
Maybe -i 127.0.0.1 -A 127.0.0.1 will fix your issue, assuming the -i
is being specified in your spamd startup script. In this case make
sure you connect to 127.0.0.1 783 in your exim config.
If this doesn't solve your problem, I'd start looking at the SA logs
and see what errors it might be throwing.
Thanks,
James
majid alavizadeh wrote:

firewall is of and i can telnet via 783


I type "spamc -d localhost -p 783 < TEST" (Test contains 'X') and
some random text in ssh command with this result:


spamc -d localhost -p 783 < TEST

sdasda
sdas
dasd
asdasdads

X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farahost.biz
X-Spam-Level: ********
X-Spam-Status: Yes, score=8.9 required=5.0 tests=EMPTY_MESSAGE,MISSING_DATE,
        MISSING_HB_SEP,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_HEADERS_M
ESSAGE,
        NO_RECEIVED,NO_RELAYS,TVD_SPACE_RATIO autolearn=no version=3.2.5
X-Spam-Report:
        *  0.0 MISSING_MID Missing Message-Id: header
        *  0.0 MISSING_DATE Missing Date: header
        * -0.0 NO_RELAYS Informational: message was not relayed via SMTP
        *  2.5 MISSING_HB_SEP Missing blank line between message header and bod
y
        *  1.6 MISSING_HEADERS Missing To: header
        *  2.9 TVD_SPACE_RATIO BODY: TVD_SPACE_RATIO
        *  1.3 MISSING_SUBJECT Missing Subject: header
        *  0.6 EMPTY_MESSAGE Message appears to have no textual parts and no
        *      Subject: text
        * -0.0 NO_RECEIVED Informational: message has no Received headers
        *  0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
        *      headers


Subject: [SPAM]
X-Spam-Prev-Subject: (nonexistent)










spamc -d localhost -p 783 < some_file

or type something at the terminal (and random garbage will do, all
you're testing is the connection to spamd):

spamc -d localhost -p 783

enter some random text and press ctrl-d to give EOF.