[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Rejecting emails based on DNS
- Subject: Re: [cobalt-users] Rejecting emails based on DNS
- From: Parker Morse <morse@xxxxxxxxxxx>
- Date: Tue Mar 23 07:43:00 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, Mar 23, 2004, at 07:56 US/Eastern, Dan Kriwitsky wrote:
I usually ask stupid questions, so almost sure that
this is one of them... How do I check how many emails I'm
rejecting using the DNS-spam blocking addresses?
Is any log that I need to see? (I checked
/var/log/maillog, but it seems processing only the real emails)...
If your rejection message contains "spamhaus" you can do:
grep spamhaus /var/log/maillog and you will see a list of those
rejected. If you have a common word in your rejections by DNSBL you can
grep for that. IIRC, there are ways to just get a count of them but I
haven't looked for the syntax.
I include in the rejection message the name of the list I rejected
based on. Then I grep (much like Dan suggests) for the names on a daily
basis, using a shell script to run them from cron. The syntax to count
is "grep -ic" (more or less - it's the "-c" which does the counting.)
My simple batch script is like this:
echo "relays.ordb.org rejections:"
grep -ic "ordb" /var/log/maillog
(repeated for each list in use)
The output is like this:
relays.ordb.org rejections:
1
(Again, repeated for each grep in the script.)
(I also check for .edu domains rejected, since we do a lot of
university business, in case we get complaints.)
pjm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAYFrxnRVGoRROKxIRAuIFAJ4uEzI3NnGzqRfBYGDhe2QfX78WhgCfZXPE
8Hk8OTAAk9V+3q+zeJZFlEI=
=WnU7
-----END PGP SIGNATURE-----