Wolfgang Zeikat wrote:
Anyway: IMHO, a "valid" MX record should be a fully qualified domain
name (FQDN) which would contain at least two characters from the
alphabet [a-z] in the top level domain at the end of the record. So
maybe you
could use a regexp table to check for those:
!/[a-z][a-z]$/
postfix access table check first for the IP, then for the
name. The above expression will always trigger on an IP.
And anyway, check_sender_mx_access will use the A record if
there isn't an MX, and if there is no hostname the lookup
won't be performed.
So no, this won't work. Use a policy server instead.
-- Noel Jones