Md Saleem
January 19th, 2005, 08:17
Hi,

I configured postfix mail server which was working fine later I configured Spamassassin with it to support spam filter capability. To do this followed the instructions given at http://www.computerbits.com/archive/2004/0900/schroder0409.html

in tail -f /var/log/maillog on the mail server I see the following messages repeating and it is frustrating me.

Jan 19 17:43:59 transfer spamd[13051]: info: setuid to spamfilter succeeded
Jan 19 17:43:59 transfer spamd[13051]: processing message <200501191212.j0JCCwg2012908@transfer.delixusindia. com> for spamfilter:502.
Jan 19 17:43:57 transfer postfix/smtpd[13040]: disconnect from unknown[127.0.0.1]
Jan 19 17:43:57 transfer postfix/pipe[13033]: 83ED126C06D: to=<MAILER-DAEMON@delixusindia.com>, relay=spamassassin, delay=19, status=sent (transfer.delixusindia.com)
Jan 19 17:44:00 transfer spamd[13039]: clean message (-7.3/5.0) for spamfilter:502 in 10.7 seconds, 139166 bytes.
Jan 19 17:43:58 transfer sendmail[13037]: j0JCDwfr013037: Authentication-Warning: transfer.delixusindia.com: spamfilter set sender to MAILER-DAEMON@delixusindia.com using -f
Jan 19 17:43:58 transfer sendmail[13037]: j0JCDwfr013037: from=MAILER-DAEMON@delixusindia.com, size=139166, class=0, nrcpts=1, msgid=<200501191212.j0JCCMd1012861@transfer.delixusindia. com>, relay=spamfilter@localhost
Jan 19 17:43:58 transfer sendmail[13037]: j0JCDwfr013037: SYSERR(spamfilter): Too many hops 27 (25 max): from MAILER-DAEMON@delixusindia.com via localhost, to MAILER-DAEMON@delixusindia.com
Jan 19 17:43:58 transfer sendmail[13037]: j0JCDwfr013037: j0JCDwfs013037: DSN: Too many hops 27 (25 max): from MAILER-DAEMON@delixusindia.com via localhost, to MAILER-DAEMON@delixusindia.com
Jan 19 17:44:00 transfer spamd[13046]: clean message (-7.1/5.0) for spamfilter:502 in 9.2 seconds, 141365 bytes.
Jan 19 17:43:59 transfer postfix/smtpd[13040]: connect from unknown[127.0.0.1]
Jan 19 17:43:59 transfer postfix/smtpd[13040]: 7093126C06D: client=unknown[127.0.0.1]
Jan 19 17:43:59 transfer sendmail[13045]: j0JCDxJH013045: Authentication-Warning: transfer.delixusindia.com: spamfilter set sender to MAILER-DAEMON@delixusindia.com using -f
Jan 19 17:43:59 transfer postfix/cleanup[13042]: 7093126C06D: message-id=<200501191213.j0JCDwfs013037@transfer.delixusindia. com>
Jan 19 17:44:00 transfer postfix/nqmgr[13027]: 7093126C06D: from=<>, size=143848, nrcpt=1 (queue active)

I m getting mails form MAILER-Deamon as undeliverd mails. Any help on this will be most apperciated.

Thanks in Advance!!!
Saleem

elmore
January 20th, 2005, 00:28
looks like you have a mail loop. Post your appropriate conf files please.

Md Saleem
January 20th, 2005, 00:43
Hi elmore,
Thanks for the reply.

OS= Red Hat Linux 3.2.3-42

The parameters that I have changed in vi main.cf is as follows:

myhostname = transfer.delixusindia.com
mydomain = delixusindia.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain $mydomain

I inserted the following lines in master.cf file
smtp inet n - n - - smtpd
-o content_filter=spamfilter
spamfilter unix - n n - - pipe

user=spamfilter argv=/usr/sbin/spamfilter -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}


And my /etc/mail/spamassassin/local.cf looks as follows:
required_hits 5
rewrite_subject 1
subject_tag [SPAM]
report_safe 0

skip_rbl_checks 0
use_bayes 1

# Whitelist important senders
whitelist_from *@delixusindia.com


Hope above info helps u a lot to identify the error.

Thanks in Advance,
Saleem