.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Want to record the IP of every message rejected, please help.
Sergio
post Mar 20 2006, 11:32 AM
Post #1


Advanced Member
***

Group: Members
Posts: 274
Joined: 12-March 06
Member No.: 946



Hi,

sorry to bother you with this...

What do I need to add or modify in the script, in order for it to write the IP (just the IP) of every message that got over the score that I set? But I will like that the IP could be recorded in a new file called "exim_scoredIP" and it will be better if the IP is written as many times as it was rejected.

Is it possible?

By the way, what is faster? to check for the score of every message or to check the IP Blacklist file?


Thanks a lot for this wonderful script.

Regards,
Sergio


--------------------
Go to the top of the page
 
+Quote Post
pairote
post Mar 20 2006, 12:31 PM
Post #2


Administrator
***

Group: Admin
Posts: 4,252
Joined: 13-June 03
Member No.: 1



Try my proposed solution here:
http://forums.cpanel.net/showpost.php?p=233776&postcount=2

I have implemented on my servers. It works well but I cannot justify if it save CPU load. You may try and please report your result here. Is it save the CPU load?
Go to the top of the page
 
+Quote Post
Sergio
post Mar 20 2006, 10:36 PM
Post #3


Advanced Member
***

Group: Members
Posts: 274
Joined: 12-March 06
Member No.: 946



QUOTE(pairote @ Mar 19 2006, 11:31 PM) *
Try my proposed solution here:
http://forums.cpanel.net/showpost.php?p=233776&postcount=2

I have implemented on my servers. It works well but I cannot justify if it save CPU load. You may try and please report your result here. Is it save the CPU load?

Hi Pairote,
wow, your solution looks great but my VPS is not a powerful one, and that is why I wanted to implement a kind of manual solution.

What I was looking for is to have a list of all the IPs rejected because of the score I set in my VPS, I have been monitoring my rejectlog and had blocked some IPs, but will like to have a file like the rejectlog but only with the IP of the accounts rejected because of the score.

I modified the antivirusandspam.exim file and added this two lines:
CODE
# If you want to bounce message, comment 2 lines below and uncomment the line b$
    logfile /var/log/exim_mainlog
    logwrite "$tod_log $message_id ** F=${lc:$sender_address} [$sender_host_add$
[b]    logfile /var/log/exim_scoreIP
    logwrite "$sender_host_address($1)"[/b]
# Bounce it, but

But doing this I didn?t record what is listed in my REJECTLOG file only what is recorded at exim_mainlog.

I have looked at the ACL in exim configuration but couldn?t find what to modify or add for this to work.

Please help.

Regards,
Sergio


--------------------
Go to the top of the page
 
+Quote Post
Sergio
post Mar 22 2006, 12:14 AM
Post #4


Advanced Member
***

Group: Members
Posts: 274
Joined: 12-March 06
Member No.: 946



Right now, the modification to the script is working great. I am getting the IPs of some spammers including the score like this:
222.148.73.204(11.0)
so I know if add it to my BlackList IPs or not.

Also, I am downloading a copy of the file "exim_rejectlog" and I am tabulating the IPs, so far so good. I have added a lot of recurrent IPs into my rv_blacklist_IP hoping this will decrease the server functions of SpamAssasin.

Regards,

Sergio


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



Lo-Fi Version Time is now: 3rd September 2010 - 12:04 AM