Crate tokio_spf_validator

Source

Structs§

SpfConfig
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§

SpfQueryResult
Softfail is if +all flag is passed in spf txt dns record this should be accpted but marked as potential fruad.

Functions§

check
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.