axl_bool valvulad_run_is_local_domain ( ValvuladCtx ctx,
const char *  domain 
)

Allows to check if the provided domain is considered local, that is, current server is handling this domain so a delivery to this domain won't be relayed.

Parameters
ctxThe context where the operation will take place.
domainThe domain to be checked.
Returns
axl_true if the domain is considered local, otherwise axl_false is returned. The function also returns axl_false in the case domain or ctx references are NULL.

This function will report proper results if current valvulad server is properly configured. Please, check valvula configuration at valvula.conf, inside xml path /valvula/enviroment/local-domains.

Referenced by valvulad_run_is_local_delivery().