r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Graham
20-Sep-2009
[6009]
Now try encapped
Dockimbel
20-Sep-2009
[6010x2]
a 421 code + a MX retrieving failure
Are you using DNS server from your ISP or OpenDNS?
Graham
20-Sep-2009
[6012x3]
21/9-10:50:49.068-# Warning in [MTA] : SMTP Error: {421-4.7.0 [203.97.98.9] 
Our system has detected an unusual amount of un
solicited^M
} !
21/9-10:50:49.123-[HTTPd] Connection closed

21/9-10:50:52.048-## Error in [uniserve] : On-raw-received call failed 
with error: make object! [
    code: 303
    type: 'script
    id: 'expect-arg
    arg1: 'send-email
    arg2: 'mx
    arg3: [tuple!]
    near: [send-email p/job ip p/dst]
    where: 'on-mx
] !
oops ...
21/9-10:52:50.451-[MTA] New request: [[noreply-:-cheyenne-server-:-org] 
[[gchiu-:-compkarori-:-co-:-nz]] %mlxbgiff 11294044 #[none]]

21/9-10:52:50.452-## Error in [uniserve] : On-received call failed 
with error: make object! [
    code: 303
    type: 'script
    id: 'expect-arg
    arg1: 'pick
    arg2: 'series

    arg3: [series! pair! event! money! date! time! object! port! tuple! 
    any-function!]
    near: [pick dns-server random length? dns-server]
    where: 'on-init-port
] !
Dockimbel
20-Sep-2009
[6015]
DNS server issues.
Graham
20-Sep-2009
[6016]
oh ... not my fault ....
Dockimbel
20-Sep-2009
[6017]
My async dig:// doesn't yet try again when MX query failed.
Graham
20-Sep-2009
[6018x4]
maybe it is my fault
hmm...
works in source code vversion where I use opendns.
win-get-dns: has [base local-ip out v][
		local-ip: mold read join dns:// read dns://
		
		either value? 'get-reg [

   base: "System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces"
			foreach adapter list-reg/hklm base [

    if local-ip = get-reg/hklm rejoin [base #"\" adapter] "IPAddress" 
    [
					v: get-reg/hklm rejoin [base #"\" adapter] "NameServer"
					v: parse v ","
					forall v [change v attempt [to-tuple trim v/1]]
					return head v
				]
			]
		][
			; just use opendns
			208.67.222.222
		]
	]
Dockimbel
20-Sep-2009
[6022]
The DNS server you're using are either under heavy load or just not 
very reliable (happens sometime). Anyway, my MTA should at least 
retry 5-10 times before giving up and reporting an error. I'll add 
that feature tomorrow.
Graham
20-Sep-2009
[6023]
can we fall back to opendns if the dns server fails?
Dockimbel
20-Sep-2009
[6024x2]
try hardcoding opendns ip as last value of 'win-get-dns, you'll see 
if it's more stable than your local DNS servers.
I can maybe add an option for that in the config file.
Graham
20-Sep-2009
[6026x2]
>> read dns://compkarori.co.nz
== 203.97.98.9
>>
works instantly
Dockimbel
20-Sep-2009
[6028]
that query is traversing a lot of layers...some of them might implement 
some sort of retries if first request doesn't work.
Graham
20-Sep-2009
[6029]
opendns is too slow for me for web browsing .. but it should be okay 
for just email
Dockimbel
20-Sep-2009
[6030]
I'd like to test first a more robust MTA. Going to sleep now. Thanks 
for the time you took for testing.
Graham
20-Sep-2009
[6031x2]
np
I guess you're going to have to use queues for greylisting servers
Graham
21-Sep-2009
[6033x2]
Is there a way that I can use a a href to invoke a program on the 
local drive or does the security prevent this?
no matter ... I found a way to do this via content-type  ...


just need to translate this php to rsp http://www.dklevine.com/general/software/tc1000/jarnsample3.php
Dockimbel
21-Sep-2009
[6035]
Re: greylisting, the plan was to use the freshly integrated scheduler 
library : scheduler/add [in 5 mn do [resend <email-id>]]
Graham
21-Sep-2009
[6036x2]
have you  tried it yet?  Or have you just got up ?  :)
I guess Gmail is selectively graylisting users ...since you havent 
seen it happen to you.
Dockimbel
21-Sep-2009
[6038x2]
Tried: going to try it today, scheduler is working ok inside Cheyenne, 
just need to add more logging info.
Gmail: as I've retried several times at beginning (but manually), 
I may have passed the greylisting without noticing it.
Graham
21-Sep-2009
[6040]
just wondering if url-encode should also take file! as a parameter
Dockimbel
21-Sep-2009
[6041x3]
doesn't sound like a common case? Using FORM should be enough : 
<%= url-encode form %file %>
Btw, I didn't understood what you wanted to achieve by "use a a href 
to invoke a program on the local drive"? You mean running an executable 
on the server with a hypertext link? (I guess you're targeting a 
server on localhost?)
If it's for local server, file:// in href can work (see http://en.wikipedia.org/wiki/File_URI_scheme).
Graham
21-Sep-2009
[6044x2]
didn't know about file://  ... yes, I can use that.
yes I am using form already .. but forme it's a common scenario to 
display files from the web server's directories
Dockimbel
21-Sep-2009
[6046]
SVN r23 :


FEAT: improved logging and error handling for dig/SMTP/MTA modules.

FEAT: integration of deferred retries in MTA for temp errors recovering 
and greylisting passing.

FEAT: new config keyword in global section: dns-server. (see changelog.txt)

FIX: in email generation, added a missing CRLF between headers and 
body.
FIX: logger sub-second times output padding fixed.
FIX: minor code cleanups.
Graham
21-Sep-2009
[6047x5]
22/9-10:18:36.371-## Error in [uniserve] : On-received call failed 
with error: make object! [
    code: 300
    type: 'script
    id: 'no-value
    arg1: 'startegy
    arg2: none
    arg3: none
    near: [pick dns-server switch startegy [
            round-robin [first head reverse dns-server]
            random [pick dns-server random length? dns-server]
        ]]
    where: 'on-init-port
] !
source code version ... will now try encap.
this is with dns-server [ 203.96.152.4 230.96.152.12 ] in my httpd.cfg 
globals
In dig.r line 174 should read

			pick dns-server switch strategy [
as there is a typo there.
actually I think line 174 should read

			switch strategy [

and lose the "pick dns-server"
Dockimbel
22-Sep-2009
[6052x3]
Thanks, the part was messed up. Fixing that.
SVN r24

FIX: more conforming handling of 4xx SMTP return codes
FIX: typo and coding error fixed in dig.r (Thanks Graham)
SVN r25

FEAT: encap paths are now in a separate file (%encap-paths.r)
Pekr
22-Sep-2009
[6055]
sorry for ignorance, but can't find link to SVN archive ...
Graham
22-Sep-2009
[6056x3]
in MTA.r, line 135 change this line

						scheduler/plan compose/only/deep only  [

to 

						scheduler/plan compose/only/deep [
http://cheyenne-server.googlecode.com/svn/
there is an extraneous "only" in that line