Davide Libenzi wrote:
> On Thu, 8 Dec 2005, Adrian Hicks wrote:
> 
> 
>>If you're running GNU/Linux on your mail server you can use iptables to
>>create a firewall to protect XMail.  Works a dream here.
> 
> 
> The problem he's having is that he wants an AUTH session to overrule the 
> IP blocking.
> 
I ended up going in and custom coding a bunch of stuff in SMTPSvr.c and 
SMTPUtils.c to make that happen back around 1.17 (and carried the mods 
forward to the most recent version I've installed, which I think is 
1.21). Of course, there were some other mods, too (such as adding user 
policy level checking, so that users with different policy levels 
receive a temp fail at RCPT TO)...

If I recall, last time I ported the mods forward, I ended up deferring 
all checks until after RCPT TO, so that I could have required role 
accounts able to accept mail from anywhere while still being able to 
filter mail for other accounts (with most filtering being done in the 
filter.pre-data.tab and based on the user account policy level).

I'd offer to share the mods, but my C skills are feeble at best and I'd 
be ashamed for anyone else to see them...:) But I seem to recall that it 
wasn't too hard to track down and modify the parts that needed changing. 
Maybe a couple hours worth of work (including adding one member to the 
SMTPSession structure for tracking the policy level data).

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to