Help, exim forces host name when I want IP address!!!
Hello,Im configuring exim on a plain RHEL 3 and so far all is setup apart from one small problem.... so here goes
I am tring to setup pop_before_smtp which is fine, I have managed to get it running and the /home/mail/relay_hosts is filled up with the IP addresses of recent logins...
Okay, for example say ip address 111.111.111.111 is in the relay_hosts file they try to send an email... the error that I am getting is:
/usr/exim/bin/exim -bh 111.111.111.111
>>> check hosts = +relay_from_hosts
>>> sender host name required, to match against lsearch;/home/mail/relay_hosts
>>> looking up host name for 111.111.111.111
>>> IP address lookup using gethostbyaddr()
>>> IP address lookup failed: h_errno=1
LOG: no host name found for IP address 111.111.111.111
>>> host in "lsearch;/home/mail/relay_hosts : localhost"? no (failed to find host name for 111.111.111.111)
>>> host in "+relay_from_hosts"? no (end of list)
>>> accept: condition test failed
why does it not match??? it seems so simple....
If anyone can help it would be greatly appreciated.