I folks!
I'm directly answering on this.
I made the try again. I'm using v3.32.
Yes, my host_reject_recipients list contain a mixture of IP and full name
host. I don't want host_lookup because too many hosts haven't reverse DNS
entry.
It seems that the +allow_unknown is not validated with this function and the
MySQL lookup is stopped.
From my understanding, I should have:
Message from 1.2.3.4 -> host_reject_recipients (1.2.3.4, ns.netkobe.gr.jp)
-> refused
With +allow_unknown, it should pass the test. Or in fact, no.
What do you think of that?
Stef...
1.2.3.4 and ns.netkobe.gr.jp are in the mysql database...
This first one is without host_reject_recipients setup:
# host_allow *
# host_reject_recipients = "+allow_unknown : mysql;MYSQL_REJECT_HOSTS"
------------------------------------------------------------
antispam:/home/sleclerc# exim -bh 1.2.3.4
**** SMTP testing session as if from host 1.2.3.4
**** Not for real!
>>> host in host_lookup? no (option unset)
>>> host in host_reject? no (option unset)
>>> host in host_reject_recipients? no (option unset)
>>> host in rbl_hosts? yes (*)
>>> checking RBL domain relays.ordb.org/reject
>>> RBL lookup for 4.3.2.1.relays.ordb.org failed
>>> => that means it's not black listed at relays.ordb.org
>>> checking RBL domain orbz.gst-group.co.uk/reject
>>> RBL lookup for 4.3.2.1.orbz.gst-group.co.uk failed
>>> => that means it's not black listed at orbz.gst-group.co.uk
>>> checking RBL domain relays.osirusoft.com/reject
>>> RBL lookup for 4.3.2.1.relays.osirusoft.com failed
>>> => that means it's not black listed at relays.osirusoft.com
>>> host in auth_hosts? no (option unset)
>>> host in sender_unqualified_hosts? no (option unset)
>>> host in receiver_unqualified_hosts? no (option unset)
>>> host in helo_verify? no (option unset)
>>> host in helo_accept_junk_hosts? no (option unset)
220-Welcome! This system does not accept Unsolicited Commercial Email and
will
220-blacklist offenders through RBL and our internal list. Have a nice day!
220-
220 antispam.actionweb.fr ESMTP Exim 3.32 Sat, 17 Nov 2001 19:10:02 +0100
------------------------------------------------------------
This one is with host_reject_recipients active:
# host_allow *
host_reject_recipients = "+allow_unknown : mysql;MYSQL_REJECT_HOSTS"
------------------------------------------------------------
**** SMTP testing session as if from host 1.2.3.4
**** Not for real!
>>> host in host_lookup? no (option unset)
>>> host in host_reject? no (option unset)
>>> looking up host name for 1.2.3.4
>>> IP address lookup failed
>>> host in host_reject_recipients? no (failed to find host name or lookup
deferred)
>>> host in rbl_hosts? yes (*)
>>> checking RBL domain relays.ordb.org/reject
>>> RBL lookup for 4.3.2.1.relays.ordb.org failed
>>> => that means it's not black listed at relays.ordb.org
>>> checking RBL domain relays.osirusoft.com/reject
>>> RBL lookup for 4.3.2.1.relays.osirusoft.com failed
>>> => that means it's not black listed at relays.osirusoft.com
>>> host in auth_hosts? no (option unset)
>>> host in sender_unqualified_hosts? no (option unset)
>>> host in receiver_unqualified_hosts? no (option unset)
>>> host in helo_verify? no (option unset)
>>> host in helo_accept_junk_hosts? no (option unset)
220-Welcome! This system does not accept Unsolicited Commercial Email and
will
220-blacklist offenders through RBL and our internal list. Have a nice day!
220-
220 antispam.actionweb.fr ESMTP Exim 3.32 Sat, 17 Nov 2001 22:15:21 +0100
------------------------------------------------------------
This one is with host_reject_recipients active and WITHOUT +allow_unknown:
# host_allow *
host_reject_recipients = "mysql;MYSQL_REJECT_HOSTS"
------------------------------------------------------------
**** SMTP testing session as if from host 1.2.3.4
**** Not for real!
>>> host in host_lookup? no (option unset)
>>> host in host_reject? no (option unset)
>>> looking up host name for 1.2.3.4
>>> IP address lookup failed
>>> host in host_reject_recipients? yes (failed to find host name or lookup
deferred)
LOG: recipients from [1.2.3.4] refused (failed to find host name from IP
address)
>>> host in sender_unqualified_hosts? no (option unset)
>>> host in receiver_unqualified_hosts? no (option unset)
>>> host in helo_verify? no (option unset)
>>> host in helo_accept_junk_hosts? no (option unset)
220-Welcome! This system does not accept Unsolicited Commercial Email and
will
220-blacklist offenders through RBL and our internal list. Have a nice day!
220-
220 antispam.actionweb.fr ESMTP Exim 3.32 Sat, 17 Nov 2001 22:18:38 +0100
------------------------------------------------------------
This one is with host_reject_recipients active AND IP with reverse DNS:
# host_allow *
host_reject_recipients = "+allow_unknown : mysql;MYSQL_REJECT_HOSTS"
------------------------------------------------------------
**** SMTP testing session as if from host 210.254.170.178
**** Not for real!
>>> host in host_lookup? no (option unset)
>>> host in host_reject? no (option unset)
>>> looking up host name for 210.254.170.178
>>> IP address lookup yielded ns.netkobe.gr.jp
>>> host in host_reject_recipients? yes (mysql;SELECT rh_hosts FROM reject_hosts
WHERE rh_hosts = '$sender_host_name')
LOG: recipients from ns.netkobe.gr.jp [210.254.170.178] refused
>>> host in sender_unqualified_hosts? no (option unset)
>>> host in receiver_unqualified_hosts? no (option unset)
>>> host in helo_verify? no (option unset)
>>> host in helo_accept_junk_hosts? no (option unset)
220-Welcome! This system does not accept Unsolicited Commercial Email and
will
220-blacklist offenders through RBL and our internal list. Have a nice day!
220-
220 antispam.actionweb.fr ESMTP Exim 3.32 Sat, 17 Nov 2001 22:23:08 +0100
------------------------------------------------------------
..........................................................
. Linux - Debian - php4 - Apache - MySQL - Infogerance .
. email: info@??? - http://www.actionweb.fr .
. Tel: (0)141 906 100 - Fax: (0)141 906 101 .
..........................................................