LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem in Configuring Spamassasin (https://www.linuxquestions.org/questions/linux-networking-3/problem-in-configuring-spamassasin-423206/)

talat 03-09-2006 11:29 AM

Problem in Configuring Spamassasin
 
Hi

I am trying to configure spamassasin with postfix ,i have fc4 .I found one manual which tells to simply install spamassain and then made following changes in your main.cf which i did is as follow

STEP 1


smtp inet n - n - - smtpd -o content_filter=spamassassin

STEP 2


spamassassin
unix - n n - - pipe
user=nobody argv=/usr/bin/spamc -e /path/to/postfix/sendmail.postfix -oi -f ${sender} ${recipient}

Then is simply restart postfix and try to send email from my mail server machine i receive following logs in the maillog


Mar 9 22:20:07 talat postfix/smtpd[3381]: disconnect from localhost.localdomain [127.0.0.1]
Mar 9 22:20:08 talat spamc[3386]: connect(AF_INET) to spamd at 127.0.0.1 failed , retrying (#1 of 3): Connection refused
Mar 9 22:20:09 talat spamc[3386]: connect(AF_INET) to spamd at 127.0.0.1 failed , retrying (#2 of 3): Connection refused
Mar 9 22:20:10 talat spamc[3386]: connect(AF_INET) to spamd at 127.0.0.1 failed , retrying (#3 of 3): Connection refused
Mar 9 22:20:11 talat spamc[3386]: connection attempt to spamd aborted after 3 r etries
Mar 9 22:20:11 talat spamc[3386]: exec failed: No such file or directory
Mar 9 22:20:11 talat postfix/pipe[3385]: E3C2F30FA86: to=<talat@gmail.com>, relay=spamassassin, delay=4, status=deferred (system resource proble m)



Can some one tell me what to do

Regard
Talat

Berhanie 03-09-2006 12:33 PM

Quote:

Can some one tell me what to do.
Tell spamc where spamd is listening (spamc -U /path/to/socket).
This should match the path specified when starting spamd (spamd --socketpath=/path/to/socket).

talat 03-09-2006 01:00 PM

Hi Berhanie

From where can i found the socket path specified by spamd

I simply started the service of spamassain without doing any changes in its configuration.Do i manually have to specify the socketpath by spamd command ,if yes then what path should i specify by considering that i am using fc4


Regard
Talat

Berhanie 03-09-2006 01:50 PM

According to the spamd/spamc man page, they both connect to port 783 by default, so it looks like we don't have to worry about matching sockets. If spamd is listening on port 783 (do a 'netstat -ant' and see if there's anything on 783), then we have to think a little harder.

talat 03-09-2006 02:19 PM

yes it give me following result

[root@talat skel]# netstat -ant |grep 783
tcp 0 0 127.0.0.1:783 0.0.0.0:* LIST EN


Regard
Talat

Berhanie 03-09-2006 04:55 PM

I ran put your config on a CentOS-4.2 (similar to FC) running postfix 2.2.8, and it ran ok.


All times are GMT -5. The time now is 11:44 PM.