Exim Deny Manager

OxnardMontalvo

Verified User
Joined
Dec 13, 2004
Messages
116
Location
Nashville, TN
http://www.calevans.com/view.php/page/edf

Based on a discussion near the end of this thread http://www.directadmin.com/forum/showthread.php?s=&threadid=3145 I've re-written my exim_deny_filter and renamed it. It now supports moving IP addresses into the firewall to remove the burden of blocking from exim while still allowing for quick response.

This is provided AS IS. Feel free to use it but if something bad happens, it's not my responsibility. (The only guarantee I give is that I guarantee it works for me.)

The page gives details on exactly what has changed, what the script does and how to implement.

As always, I welcome your thoughts and ideas.

=C=
 
Good stuff, Cal. I'm going to review it carefully when I have some time.

Which leaves me with one question...

Do you look like the caracature on your blog site, or the one of Opus on these forums :) ???

Jeff
 
jlasman said:
Good stuff, Cal. I'm going to review it carefully when I have some time.
ty.

I've had it working for several days now without incident. One night it actually caught 104 attacks. I've upped the threshold from 2 to 4. That might be better served as a variable in the exim.conf so it's easy for people to change it. But I'm just to lazy to do it right now.

jlasman said:
Which leaves me with one question...

Do you look like the caricature on your blog site, or the one of Opus on these forums :) ???

Jeff [/B]
Well, a little of both, I have the butt of the penguin and the nose of the caricature. :) But in the section marked treopix is actually a picture of me.

The Caricature was from the Web 2.0 conference. I went to it while I was out in the Valley. The PR company that handled Zazzle.com hired Rhonda to draw them. I actually sent it to Zazzle and had postage stamps made for the postcards I sent back home while I was out there. :)

Look forward to your input.

=C=
 
running

exim_deny_manager.php -m ; apf --restart

i get:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/local/bin/exim_deny_manager.php on line 89

on PHP 4.4.2 and FC4.

Thanks,
Grant
 
servertweak said:
well then thats not good, thats only 5% of the members here

Really?

Sorry, I converted my server over late last year. It's not difficult with the build system DA has. Just have to tweak it a bit.

I can look at the code to see if I use anything PHP5 except for the object model. I'll post here if I come up with a PHP4 version.

=C=
 
PHP5 breaks 99% of the legacy code out there. most hosts will not convert to it yet. I personally wont. Some host may have a server or two specifically for it.

I'm actually quite surprised you did not realize this.
 
sullise said:
PHP5 breaks 99% of the legacy code out there. most hosts will not convert to it yet. I personally wont. Some host may have a server or two specifically for it.

I'm actually quite surprised you did not realize this.
Although I think your % is a bit high, the concept is correct if you don't set it in compatible mode.

I don't have a lot of customers on my box...maybe 40. The only thing that broke was the code that I wrote personally. :) Wordpress, phpBB, DA, Installatron, Squirrlemail, etc...all ran without any problems. (Those are the ones I KNOW are installed)

But to each his own. I do not advocate upgrading unless there is a need. On the other hand it works fine for me and it's what I develop in.

=C=
 
Well, maybe my wild guess was high, but the point is the same.

I'm for one not willing to lose clients I already have or spend time dealing with support tickets for script issues just because of PHP5. You have 40. A lot of us have 10, 100, 1000x that many to deal with.

Only way I would ever consider using PHP5 is on a seperate server specifically for clients who would request it.

I am using the new structure for exim_deny, but the manager script is useless for me. I eagerly await you're php4 version. :)
 
Sean,

I am not advocating that you or anyone move to PHP5. You know your situation and your customers better than anyone and if there is no compelling reason to move then by all means don't. I certainly do not believe my simple script constitutes a compelling reason.

However, I wrote this particular piece to scratch a personal itch. I released it to any who want it simply because I enjoy sharing.

Since I no longer have a PHP4 environment to test in I most likely will not make a PHP4 version.

I'm sorry it doesn't work for you but the concepts employed shouldn't be difficult to rebuild in PHP4, PERL or even bash. (Ok, it might be difficult in bash but it's certainly doable)

=C=
 
akthough a bit off topic I wonder if we should start a thread in php section that lists any problems experienced as a result of php5.x so anyone considering upgrading can forsee possible issues before they happen and plan the workarounds ahead.
 
Chrysalis said:
akthough a bit off topic I wonder if we should start a thread in php section that lists any problems experienced as a result of php5.x so anyone considering upgrading can forsee possible issues before they happen and plan the workarounds ahead.

I think that would be a good idea. As for me, the actual upgrade process was simple.

1: ./ build update
2: download php 5 from www.php.net
3: edit build to reflect the current PHP version #
4: ./builad all y
5: Manually install the latest version of Zend Optimizer

That's it. It took me about 4 hours to get everything donw and about 2.5 of that was fixing code I wrote. I know I don't have a lot of clients but they use a lot of th epopular packages. phpBB, gallery, WordPress, Installatron all worked without modification.

=C=
 
It's not so much the popular scripts that are regularly updated that I worry about. It's those smaller, lesser known ones that customers come to rely on that end up breaking and I'm not one to tell them "tough crap..upgrade it or find something else".

I'm writing my own script to do the job and will share it with everone when I'm done.
 
Back
Top