[Exim] 3.x host_lookup failing?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Adam Henry
Date:  
À: exim-users
Sujet: [Exim] 3.x host_lookup failing?
--
Hi again,

Using Exim 3.35 on Debian Woody, with a pretty much out-of-the-box
configuration (included below). I have noticed that while host_lookup
is set to *, and the check does fail, the SMTP session isn't rejected
as noted in the documentation. My apologies if this is fixed in a
4.x, but if someone could point that out it would be great incentive
to upgrade. If nothing is broken, well, I would be grateful if
someone would explain why. ;)

Here is my session:

| hank:/etc/exim# exim -d -bh 2.2.2.2
| Exim version 3.35 debug level 1 uid=0 gid=0
| Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
| hank in local_domains? no (end of list)
| adding primary host name hank to local_domains

|
| **** SMTP testing session as if from host 2.2.2.2
| **** Not for real!

|
| host in host_lookup? yes (*)
| looking up host name for 2.2.2.2
| IP address lookup failed


Okay, the lookup failed--why are we continuing?

| host in host_reject? no (option unset)
| host in host_reject_recipients? no (option unset)
| 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 hank ESMTP Exim 3.35 #1 Thu, 24 Oct 2002 00:37:21 -0400
| helo yahoo.com
| yahoo.com in local_domains? no (end of list)
| 250 hank Hello yahoo.com [2.2.2.2]
| mail from: <>
| 250 <> is syntactically correct
| rcpt to: ahank@hank
| hank in local_domains? yes (matched hank)
| host in receiver_verify_hosts? yes (*)
| hank in local_domains? yes (matched hank)
| hank in percent_hack_domains? no (end of list)
| 250 <ahank@hank> verified
| data
| 354 Enter message, ending with "." on a line by itself
| To: ahank@hank
| From: <>
| host in ignore_fromline_hosts? no (option unset)
| Subject: test

|
| blah blah woof woof
| .
| LOG: 0 MAIN
| <= <> H=(yahoo.com) [2.2.2.2] P=smtp S=216
| 250 OK id=184Zkm-0001NN-00

|
| **** SMTP testing: that is not a real message id!

|
| quit
| 221 hank closing connection



My configuration:

| qualify_domain = hank.marinar.com
| local_domains = localhost:hank.marinar.com
| local_domains_include_host = true
| local_domains_include_host_literals = true
| never_users = root
| host_lookup = *
| host_accept_relay = 127.0.0.1 : ::::1
| host_auth_accept_relay = *
| trusted_users = mail
| smtp_verify = true
| gecos_pattern = ^([^,:]*)
| gecos_name = $1
| smtp_accept_queue_per_connection = 100
| freeze_tell_mailmaster = true
| received_header_text = "Received: \
|          ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
|          {${if def:sender_ident {from ${sender_ident} }}\
|          ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
|          by ${primary_hostname} \
|          ${if def:received_protocol {with ${received_protocol}}} \
|          (Exim ${version_number} #${compile_number} (Debian))\n\t\
|          id ${message_id}\
|          ${if def:received_for {\n\tfor <$received_for>}}"
| receiver_try_verify = true
| end

|
| local_delivery:
| driver = appendfile
| group = mail
| mode = 0660
| mode_fail_narrower = false
| envelope_to_add = true
| return_path_add = true
| file = /var/spool/mail/${local_part}

|
| address_pipe:
| driver = pipe
| path = /usr/bin:/bin:/usr/local/bin
| return_output

|
| address_file:
| driver = appendfile
| envelope_to_add = true
| return_path_add = true

|
| address_directory:
| driver = appendfile
| no_from_hack
| prefix = ""
| suffix = ""

|
| address_reply:
| driver = autoreply

|
| procmail_pipe:
| driver = pipe
| command = "/usr/bin/procmail"
| return_path_add
| delivery_date_add
| envelope_to_add

|
| suffix = ""

|
| remote_smtp:
| driver = smtp
| end

|
| real_local:
| prefix = real-
| driver = localuser
| transport = local_delivery

|
| system_aliases:
| driver = aliasfile
| file_transport = address_file
| pipe_transport = address_pipe
| file = /etc/aliases
| search_type = lsearch

|
| userforward:
| driver = forwardfile
| file_transport = address_file
| pipe_transport = address_pipe
| reply_transport = address_reply
| no_verify
| check_ancestor
| check_local_user
| file = .forward
| modemask = 002
| filter

|
| procmail:
| driver = localuser
| transport = procmail_pipe
| require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
| no_verify

|
| localuser:
| driver = localuser
| transport = local_delivery
| end

|
| lookuphost:
| driver = lookuphost
| transport = remote_smtp

|
| literal:
| driver = ipliteral
| transport = remote_smtp
| end

|
| *                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h

|
| end

|
| *@hank.marinar.com    ${lookup{$1}lsearch{/etc/email-addresses}\
|                         {$value}fail} frFs
| end



Thank you all for your assistance.

hank
--
[ Content of type application/pgp-signature deleted ]
--