Drav Sloan wrote:
> Nico Erfurth wrote:
>
>>It's perfectly legal for an domain to have no MX-record, the MTA will
>>fallback to the A-record in this case.
>
> Yeah I know tha, but as a policy I don't want to know of any hosts who
> don't have MX'es. Thats just my own policy, facist tho it maybee.
You an use the dns-lookup to enforce this
require condition = ${lookup dnsdb {mx=$sender_address_domain}{1}{0}}
or
require condition = dnsdb;mx=$sender_address_domain
>>what you want is
>>
>>require message = Can't route to sender domain
>> verify = sender
>
> Hmm odd, I've tried this and it seemed to callback. I must of been
> making assumptions, teach me not to -d it :)
-d is your best friend ;)
It only will do DNS-lookups, it will NOT do a callout.
>>This will NOT start an callout, but route the address through exim, and
>> try to find a router that can send to this address.
>
> Which means that it's going to suceed if they have no MX, but an
> A record right?
Yes.
Nico