I have been getting these messages which I believe are "Host unknown"
errors from sendmail. After some bit of research, I have decided that
all of these (although all is a strong word) entries are SPAM. My
solution to this was to write this script called spamstop:
#!/bin/sh
/usr/sbin/sendmail $1 $2 $3 $4 $5
if [ $? == 65 ] ; then
exit 0
fi
exit $?
This traps those errors and fetchmail flushes the mail. I tried using
'antispam 65' but for whatever reason, that didn't work.
Additionally I have been getting:
fetchmail: Query status=2 (SOCKET)
This I was able to resolve by using:
antispam 451
I'm sure there is some way that I could have changed sendmail to address
this, but I couldn't figure it out.
Also, for this to work I have an mda line that looks like this:
mda "~/spamstop -i -oem -f %F %T"
Can anyone see a better way to deal with this?
Thanks.
--
Barsalou <barjunk(_at_)attglobal(_dot_)net>