Re: [exim] widen_domains misfeature

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: exim-users
Betreff: Re: [exim] widen_domains misfeature
On Thu, 8 Sep 2005, Philip Hazel wrote:
>
> widen_domains was certainly only ever intended to be useful for
> recipient addresses. What could probably trivially be done is to disable
> widen_domains when verifying a sender address, which isn't quite what
> you said, but I think is equivalent.


Yes, it is. I was thinking of various possible shades of policy when I
wrote that message. What I've implemented for the time being is the
following, which fairly accurately does what you describe. It would be
better implemented in the code, though :-)

dnslookup:
  driver        = dnslookup
  domains        = !+local_domains
  ignore_target_hosts    = +bad_hosts
  mx_domains        = *.cam.ac.uk
  same_domain_copy_routing
  transport        = smtp


dnslookup_widen:
  driver        = dnslookup
  no_verify_sender
  domains        = !+local_domains
  ignore_target_hosts    = +bad_hosts
  mx_domains        = *.cam.ac.uk
  widen_domains        = cam.ac.uk : ac.uk
  same_domain_copy_routing
  transport        = smtp


dnslookup_fail:
  driver        = redirect
  domains        = !+local_domains
  data            = :fail: Invalid domain part in email address
  allow_fail


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}