World: r3wp
[Core] Discuss core issues
older newer | first last |
Graham 8-Mar-2005 [606x3] | I need to construct what is called a "triplet". The triplet in greylisting parlance is a unique set of three facts about an email. These are IP-address+smtp envelope from+smtp envelope to The idea is that you construct a database of triplets from smtp clients. If you have never seen such a triplet before, you send a smtp delay back to the client. Most well constructed MTA's honor the delay and try again. You set a block period .. from 10 seconds to 1 hour during which you do not accept any mail from that triplet. Spamming engines generally ignore this delay, and just give up. It's too expensive for them to log such delays and retry again. |
If you have seen mail from such a triplet before, you then allow that mail to go thru without any delays. In my testing, I found that my ISP sent me three consecutive emails to my smtp server using three different ip addresses all within the same subnet. So, this meant that all three emails were subjected to a delay. | |
So, I constructed the triplet without the last set of digits so that it will treat all email from the same subnet as orginating from the same address. | |
JaimeVargas 9-Mar-2005 [609] | Shouldn't parse and checksum be able to work directly on files? The only current option is to bring the files to memory either in chunks or completely, which can be very expensive in memory resources. |
Romano 9-Mar-2005 [610] | checksum more than parse, because with parse there are (not easy) workarounds, not with checksum |
JaimeVargas 9-Mar-2005 [611] | Romano. Why not parse, because of skip not working? |
Graham 9-Mar-2005 [612] | Isn't skip working now in the new alphas ? |
JaimeVargas 9-Mar-2005 [613] | I believe so. But I havent tested this. |
Romano 9-Mar-2005 [614] | useful for both, but checksum has not workaround while some workaround can be found for parse |
Vincent 9-Mar-2005 [615] | like inserting data at tail of parsed string? |
Graham 9-Mar-2005 [616x2] | I guess you have to access to the whole file in memory to calculate md5s ... |
need some other checksum that can be calculated by loading parts of a file at a time. | |
Romano 9-Mar-2005 [618] | Vincent: almost, it is not easy: you must 1) read a chunk of data, parse it 2) when parse stop remember the position where it stops 3) delete parsed data 4) read a ne chunk of the file 5) append it to the old data 6) restart parse from the right rule (this is the hardest part) |
JaimeVargas 9-Mar-2005 [619x2] | Why you think it will be difficult for parse to work natively on files? |
After all a file is just a binary! series | |
Romano 9-Mar-2005 [621] | No Jaimie, i wanted only say: "there are NOT workaround for checksum - there are workarounds for parse" |
JaimeVargas 9-Mar-2005 [622] | Ok. Then. Can we put feature requests in RAMBO? |
Vincent 9-Mar-2005 [623] | Romano: thanks, I will try it - I have a version of rebzip decompressing a file while it's downloaded, but the code isn't pretty (two nearly same funcs.) |
BrianW 9-Mar-2005 [624] | Is there a way to get the name, file, or line number of a function's caller? |
Tomc 9-Mar-2005 [625x2] | no |
the maillist archives will have some very good discussions on the subject | |
BrianW 9-Mar-2005 [627] | ok, thanks |
Graham 9-Mar-2005 [628] | How does one lookup MX records ? |
Tomc 9-Mar-2005 [629x2] | but it boils down to the fact that code is data, i.e. these function calling can emitted from functions which are constructed on the fly, so there is no home to phone to. |
http://www.webmaster-toolkit.com/mx-record-lookup.shtml | |
Graham 9-Mar-2005 [631] | So, there is no nslookup utility for rebol ? |
Tomc 9-Mar-2005 [632] | must be http://www.compkarori.com/soap/index.shtml |
Graham 9-Mar-2005 [633] | you lost me ... |
BrianW 9-Mar-2005 [634x2] | print read dns://www.coolnamehere.com/ or is that not what you were thinking of? |
hmm. | |
Tomc 9-Mar-2005 [636] | that is what I was looking for |
Graham 9-Mar-2005 [637x2] | I want to find the mail server for a given email address... |
so I can implement outgoing smtp mail ... | |
BrianW 9-Mar-2005 [639] | finger? whois? I'm behind a firewall, so I don't know which (if either) |
Tomc 9-Mar-2005 [640] | read join dns:// mailhost |
Graham 9-Mar-2005 [641] | but how do you know the mailhost ? |
Tomc 9-Mar-2005 [642x2] | from the part agrer the @ in the email address I wouls think |
after | |
Graham 9-Mar-2005 [644x2] | nope .. |
I have an email ... [gchiu-:-compkarori-:-com] .. How would you get the MX record for that? | |
BrianW 9-Mar-2005 [646] | ... trying to find something useful right now :-) |
Graham 9-Mar-2005 [647x3] | this is the answer : 203.79.110.37 |
because I know it :) | |
leave me a message here if you find anything :) | |
BrianW 9-Mar-2005 [650x2] | Will do :-) |
http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=dig.r maybe? | |
Ammon 9-Mar-2005 [652] | Dig.r does appear to support MX... |
Graham 9-Mar-2005 [653x3] | ahh... I looked for digger but not dig |
>> res: read dig://203.96.152.4/MX/www.compkarori.com connecting to: 203.96.152.4 >> print res/to-str ;; REQUEST: MX(15) for www.compkarori.com ;; id: 52715 AA: 0.0 RD: 1.0 RA: 1.0 ANSWER(s): 0 AUTHORITY(s): 1 ADDITIONAL(s): 0 ;; ANSWER(s): ;; AUTHORITY(s) compkarori.com. 531 SOA ns1.webxess.net. postmaster.webxess.net. 2005030501 10800 3600 1209600 600 ;; ADDITIONAL(s) | |
Doesn't give me the correct answer :( | |
older newer | first last |