I am using Postfix and now trying to set up SA via spamd. I seem to be creating
mail-loops with the spamc pipe to sendmail in the spamfilter file called from
Postfix master.cf.  It seems that mails that spanc scans are being output via
sendmail into a queue that will be scanned by spamc again etc.


Postfix master.cf:

spam    unix    -       n       n       -       10      pipe    user=mail
       argv=/usr/local/bin/spamfilter ${sender} ${recipient}

Postfix main.cf:

content_filter = spam:


Here is my spamfilter file

> #!/bin/bash
> spamc -f | /usr/sbin/sendmail -i $2

Here is my part of my mail.log:

Jan 21 18:42:23 host postfix/pipe[22945]: 3E250426B6:
to=<[EMAIL PROTECTED]>, relay=spam, delay=0, status=sent (linuxhost)

Jan 21 18:42:23 host postfix/cleanup[22943]: 5F7E9426B3:
message-id=<[EMAIL PROTECTED]>
Jan 21 18:42:23 host postfix/qmgr[22941]: 5F7E9426B3:
from=<[EMAIL PROTECTED]>, size=5920, nrcpt=1 (queue active)
Jan 21 18:42:23 host spamd[22824]: connection from localhost.localdomain [
127.0.0.1 ] at port 2506
Jan 21 18:42:23 host postfix/sendmail[23141]: warning: sendmail is set-uid root,
or is run from a set-uid root process
Jan 21 18:42:23 host spamd[23142]: processed successfully for mail:8 in   0
seconds.
Jan 21 18:42:23 host postfix/pickup[22940]: 80D11426B6: uid=8 from=<mail>
Jan 21 18:42:23 host postfix/pipe[22945]: 5F7E9426B3:
to=<[EMAIL PROTECTED]>, relay=spam, delay=0, status=sent (linuxhost)

Jan 21 18:42:23 host postfix/cleanup[22943]: 80D11426B6:
message-id=<[EMAIL PROTECTED]>
Jan 21 18:42:23 host postfix/cleanup[22943]: 80D11426B6:
to=<[EMAIL PROTECTED]>, relay=cleanup, delay=0, status=bounced
(Message processing aborted: Too many hops)
Jan 21 18:42:23 host postfix/cleanup[23144]: 896F4426B3:
message-id=<20020121174223.896F4426B3@linuxhost>
Jan 21 18:42:23 host postfix/qmgr[22941]: 896F4426B3: from=<>, size=7587,
nrcpt=1 (queue active)

--

John Weissberg
PerfectProof
www.perfectproof.com

USA
(888) 228 9070 Tel.
(888) 228 9070 FAX

Europe
+32 2 253 0732 Tel.
+32 2 253 3667 FAX



_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to