[exim] hostlist check failing

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Edward Kay
Datum:  
To: exim-users
Betreff: [exim] hostlist check failing
Can you offer any help as to why my hostlist check is failing?

relay_hosts is a hostlist defined as:

  hostlist relay_hosts = lsearch;/etc/relayhosts : \
      lsearch;/etc/relayhosts.omniquad : \
      localhost


The two files /etc/relayhosts.omniquad and /etc/relayhosts contain lists of
IP addresses, one per line (including 217.158.66.28).

The acl_smtp_rcpt ACL is set in /etc/exim.conf.TESTING as just:

accept hosts = +relay_hosts

Running exim -bh 217.158.66.28 -C /etc/exim.conf.TESTING (followed by HELO,
MAIL FROM:<me@???>, RCPT TO:<you@???>) outputs the following:

>>> using ACL "check_recipient"
>>> processing "accept"
>>> check hosts = +relay_hosts
>>> sender host name required, to match against lsearch;/etc/relayhosts
>>> looking up host name for 217.158.66.28
>>> IP address lookup yielded g1.mailwallremote.com
>>> gethostbyname looked up these IP addresses:
>>> name=g1.mailwallremote.com address=217.158.66.28
>>> checking addresses for g1.mailwallremote.com
>>> 217.158.66.28 OK
>>> gethostbyname looked up these IP addresses:
>>> name=localhost address=127.0.0.1
>>> host in "lsearch;/etc/relayhosts : lsearch;/etc/relayhosts.omniquad :

localhost"? no (end of list)
>>> host in "+relay_hosts"? no (end of list)
>>> accept: condition test failed
>>> end of ACL "check_recipient": implicit DENY


The ACL is clearly checking the hostlist but is failing the address, despite
it being listed in one of the defined files. Any ideas why?

Thanks for any help you can offer.

Edward