I run a small mail server and have employed multiple layers of spam blocking. (Instead of filtering, I prefer to block techniques used by spammers and thereby cut the number of false positives.)
One of these techniques is to use spamhaus.org to check to see if the sender's IP is known to send spam. I had a problem with ppp last night because of a storm and while in the process of troubleshooting that problem, realized that the RBL check isn't working. Now that the mail server is back online, I'm digging into the RBL, however I'm not finding anything unusual.
Postfix's main.cf has the following:
Spamhaus works by using a DNS lookup with the reverse of the IP you want to look up followed by .zen.spamhaus.org. Something strange is going on and I feel that the problem may be elsewhere in my system because if I ping a known spammer on their list from my mail server console:
64.62.199.64 was randomly plucked from the list of the last 25 IPs added to the spamhaus blacklist; I reversed the notation as Postfix does to check. Since it's listed in their blacklist, I should get a response. However, as you can see, this does not happen.
I can ping other machines on the internet without trouble though:
I'm at a loss of where to look or what to try next. Any ideas?
One of these techniques is to use spamhaus.org to check to see if the sender's IP is known to send spam. I had a problem with ppp last night because of a storm and while in the process of troubleshooting that problem, realized that the RBL check isn't working. Now that the mail server is back online, I'm digging into the RBL, however I'm not finding anything unusual.
Postfix's main.cf has the following:
Code:
smtpd_recipient_restrictions =
reject_unauth_pipelining,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unauth_destination,
reject_rbl_client zen.spamhaus.org,
check_policy_service inet:127.0.0.1:10023,
permit
Spamhaus works by using a DNS lookup with the reverse of the IP you want to look up followed by .zen.spamhaus.org. Something strange is going on and I feel that the problem may be elsewhere in my system because if I ping a known spammer on their list from my mail server console:
Code:
# ping 64.199.62.64.zen.spamhaus.org
ping: cannot resolve 64.199.62.64.zen.spamhaus.org: Host name lookup failure
64.62.199.64 was randomly plucked from the list of the last 25 IPs added to the spamhaus blacklist; I reversed the notation as Postfix does to check. Since it's listed in their blacklist, I should get a response. However, as you can see, this does not happen.
I can ping other machines on the internet without trouble though:
Code:
# ping google.com
PING google.com (74.125.45.100): 56 data bytes
64 bytes from 74.125.45.100: icmp_seq=0 ttl=55 time=57.651 ms
64 bytes from 74.125.45.100: icmp_seq=1 ttl=55 time=66.529 ms
--- google.com ping statistics---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 57.651/62.090/66.529/4.439 ms
# ping yahoo.com
PING yahoo.com (69.147.114.224): 56 data bytes
64 bytes from 69.147.114.224: icmp_seq=0 ttl=56 time=60.047 ms
64 bytes from 69.147.114.224: icmp_seq=1 ttl=56 time=60.505 ms
--- yahoo.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 60.047/60.276/60.505/0.229 ms
I'm at a loss of where to look or what to try next. Any ideas?