Crate tokio_spf_validator[−][src]
Structs
this is a config for validate function currently no user defined parameters are needed in future custom resolvers will be allowed to be passed in config.
Enums
Softfail is if +all flag is passed in spf txt dns record this should be accpted but marked as potential fruad.
Functions
validate function takes config(this can be imported as SpfConfig from crate), IpAddr(std::net::IpAddr), host as string and sender domain as string, if host is empty ip lookup can be performed if sender is empty this function will fail.