On 12/18/2011 4:49 AM, Duane Hill wrote: >>> Hi, I've confirmed that the IP is from China, using www.ip2location.com. >> My CIDR file is at www.bilgisayarciniz.org/sinokorea.cidr.txt
Bingo. Your CIDR table doesn't work because you have not specified a RESULT for each network_address. You only provided optional message text. See 'man cidr_table'. >> When I plugged the IP into postmap like you said, I got an error >> postmap -q 60.190.223.61 sinokorea.cidr REJECT Mail not accepted from China >> postmap: fatal: open database REJECT.db: No such file or directory. > You should just do: > > postmap -q 60.190.223.61 cidr:sinokorea.cidr Correct. See 'man postmap'. > The 'REJECT Mail not accepted from China' part of Stan's response was > the response from his example postmap command. It wasn't something > for you to type in. Correct. Tolga, I suggest you read the relevant Postfix documentation each time before you try something new. In this case you should have accessed: $ man cidr_table $ man postmap If you had read these in advance you would have avoided these problems. -- Stan