I set up spamssasin in 2 steps.
1.) I call spamassassin through procmail to do the job. That works fine
2) Now I am trying to run spamassassin as a daemon.
In addition to config needed for step 1 (mailbox_command in main.cf and setup /etc/procmailrc) I made changes to master.cf as suggested in literature:
1) smtp inet n - n - - smtpd -o content_filter=spamd
2) spamd unix - n n - - pipe
user=spam argv=/usr/bin/spamc -f
-e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
Now and after starting spamassassin and restarting postfix the email enter a loop and never get to the final destination
This is the mail system at host home.theragafamily.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<MAILER-DAEMON@home.theragafamily.com>: service unavailable
Reporting-MTA: dns; home.theragafamily.com
X-Postfix-Queue-ID: 474142815EA
X-Postfix-Sender: rfc822;
MAILER-DAEMON@home.theragafamily.com
Arrival-Date: Fri, 18 Feb 2011 15:42:14 +0100 (CET)
Final-Recipient: rfc822;
MAILER-DAEMON@home.theragafamily.com
Original-Recipient: rfc822;MAILER-DAEMON@home.theragafamily.com
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix; service unavailable
Any idea what I am doing wrong?