-
- char *at = strchr(ChrPtr(Msg->Rfca), '@');
- if (at == NULL) {
- return 1; // If there is no "@" in the address, it's got to be local.
- }
- ++at;
-
- if (!strcasecmp(at, ChrPtr(WC->serv_info->serv_fqdn))) { // is this from our local domain?
- return 1; // if yes, then the message originated locally.
- }
- else {
- return 0; // otherwise it probably didn't.
- }