-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
77 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,4 @@ | |||
# OASIS_START | # OASIS_START | ||
# DO NOT EDIT (digest: 5fe65aaadc52937c34be7016e4dd4d14) | # DO NOT EDIT (digest: b4efb35349e5d93905531be07dbacd6d) | ||
Spf | SPF | ||
# OASIS_STOP | # OASIS_STOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,50 +1,50 @@ | |||
open Printf | open Printf | ||
|
|
||
let () = | let () = | ||
let server = Spf.server Spf.Dns_cache in | let server = SPF.server SPF.Dns_cache in | ||
let client_addr = Unix.inet_addr_of_string "187.73.32.159" in | let client_addr = Unix.inet_addr_of_string "187.73.32.159" in | ||
let helo = "mta98.f1.k8.com.br" in | let helo = "mta98.f1.k8.com.br" in | ||
let from = "andre@andrenathan.com" in | let from = "andre@andrenathan.com" in | ||
match Spf.check_from server client_addr helo from with | match SPF.check_from server client_addr helo from with | ||
| `Error e -> | | `Error e -> | ||
printf "SPF error: %s\n%!" e | printf "SPF error: %s\n%!" e | ||
| `Response r -> | | `Response r -> | ||
printf "SPF response:\n\t%s\n\t%s\n\t%s\n\t%s\n\t%s\n%!" | printf "SPF response:\n\t%s\n\t%s\n\t%s\n\t%s\n\t%s\n%!" | ||
(Spf.string_of_result (Spf.result r)) | (SPF.string_of_result (SPF.result r)) | ||
(Spf.string_of_reason (Spf.reason r)) | (SPF.string_of_reason (SPF.reason r)) | ||
(Spf.received_spf r) | (SPF.received_spf r) | ||
(Spf.received_spf_value r) | (SPF.received_spf_value r) | ||
(Spf.header_comment r); | (SPF.header_comment r); | ||
match Spf.result r with | match SPF.result r with | ||
| Spf.Neutral c | | SPF.Neutral c | ||
| Spf.Fail c | | SPF.Fail c | ||
| Spf.Softfail c -> | | SPF.Softfail c -> | ||
printf "\t\t%s\n\t\t%s\n%!" | printf "\t\t%s\n\t\t%s\n%!" | ||
(Spf.explanation c) | (SPF.explanation c) | ||
(Spf.smtp_comment c) | (SPF.smtp_comment c) | ||
| _ -> () | | _ -> () | ||
|
|
||
let () = | let () = | ||
let server = Spf.server ~debug:false Spf.Dns_cache in | let server = SPF.server ~debug:false SPF.Dns_cache in | ||
let client_addr = Unix.inet_addr_of_string "189.57.226.93" in | let client_addr = Unix.inet_addr_of_string "189.57.226.93" in | ||
let helo = "gwmail.bradescoseguros.com.br" in | let helo = "gwmail.bradescoseguros.com.br" in | ||
let _from = "andre@bradescoseguros.com.br" in | let _from = "andre@bradescoseguros.com.br" in | ||
match Spf.check_helo server client_addr helo with | match SPF.check_helo server client_addr helo with | ||
| `Error e -> | | `Error e -> | ||
printf "SPF error: %s\n%!" e | printf "SPF error: %s\n%!" e | ||
| `Response r -> | | `Response r -> | ||
printf "SPF response:\n\t%s\n\t%s\n\t%s\n\t%s\n\t%s\n%!" | printf "SPF response:\n\t%s\n\t%s\n\t%s\n\t%s\n\t%s\n%!" | ||
(Spf.string_of_result (Spf.result r)) | (SPF.string_of_result (SPF.result r)) | ||
(Spf.string_of_reason (Spf.reason r)) | (SPF.string_of_reason (SPF.reason r)) | ||
(Spf.received_spf r) | (SPF.received_spf r) | ||
(Spf.received_spf_value r) | (SPF.received_spf_value r) | ||
(Spf.header_comment r); | (SPF.header_comment r); | ||
printf ">>>\n%!"; | printf ">>>\n%!"; | ||
match Spf.result r with | match SPF.result r with | ||
| Spf.Neutral c | | SPF.Neutral c | ||
| Spf.Fail c | | SPF.Fail c | ||
| Spf.Softfail c -> | | SPF.Softfail c -> | ||
printf "\t\t%s\n\t\t%s\n%!" | printf "\t\t%s\n\t\t%s\n%!" | ||
(Spf.explanation c) | (SPF.explanation c) | ||
(Spf.smtp_comment c) | (SPF.smtp_comment c) | ||
| _ -> () | | _ -> () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
val handle_attrs : Spf.server -> Postfix.attrs -> string Lwt.t | val handle_attrs : SPF.server -> Postfix.attrs -> string Lwt.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters