Hi,
You don't block IPs direclty in amavisd. You can use any of the following methods:
1 Spamassassin
Write the following rule in local.cf
Code:
header BAD_IP Received =~ /x\.x\.x\.x/
describe BAD_IP Blacklisted IP
score BAD_IP 6
2. Use the MTA.
For example you can use the access table in sendmail:
3. Use iptables
Code:
iptables -A INPUT -s x.x.x.x -p tcp --dport 25 -j DROP
iptables -A INPUT -s x.x.x.x -j REJECT
HTH