axl_bool valvulad_run_is_local_address ( ValvuladCtx ctx,
const char *  address 
)

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

Parameters
ctxThe context where the operation will take place.
addressThe address/alias to be checked.
Returns
axl_true if the address/alias is considered local, otherwise axl_false is returned. The function also returns axl_false in the case address/alias 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.