Qmail Anti Spoofing Patch

This patch might not be usefull for everyone but in some cases you want that some "from adresses" are only from a particular subnet or ipadress.

It works a bit like badmailfrom. When a domain or emailadress is related with some subnets , using a from address from another subnet mail will be rejected by qmail-smtpd.

An antispoofing control file looks like this:


foo.bar: 10.10.42/255.255.255.128
bar.bar: 10.148.249 10.134.45.2/255.255.255.0
[EMAIL PROTECTED]: 10.148.249/255.255.255.0

As you can see domains or emailadresses and IP adresses are related. In this case sombody using [EMAIL PROTECTED] has to come from 10.10.42/255.255.255.128. A domain that is not mentioned will not be rejected.
patches

I have not tested it really good. But on my system the latest patch works. So if it does not work , don't be afraid to send me an email with your comments. If you have some ideas, don't hesitate to mail me about it. I will work on it as soon as I can or if you can let it work sooner, let me know. As I have not that many time, any help is always welcome.

Thanks to Joerg Backschues for his contribution to the latest patch. jozzel at subweb dot cc
My Home Page

Reply via email to