Re: [Exim] problem with qualify_domain and host_accept_relay

Top Pagina
Delete this message
Reply to this message
Auteur: Richard Lithvall
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] problem with qualify_domain and host_accept_relay
On Mon, 17 Jun 2002, Richard Lithvall wrote:

>> According to the documentation qualify_domain only applies to
>> locally-generated messages.


Philip Hazel wrote:

>That's because only locally generated messages are permitted to supply
>unqualified addresses by default.


Exactly, thats why I'm confused....

>If you are qualifying addresses in messages arriving from other hosts,
>you must have set {sender,recipient}_unqualified_hosts, in order to
>overrule the RFC requirement that all addresses be fully qualified.


...because I haven't set neither of {sender,recipient}_unqualified_hosts.

>What the Exim 4 manual says is:


I forgot to mention that I'm running version 3.35 #1 (if that matters).

Here are my complete config (without my comments and with fictive
addresses):

primary_hostname = hermes.net.xyz.se
security = unprivileged
smtp_banner = $primary_hostname ESMTP
smtp_accept_max = 100
smtp_accept_queue_per_connection = 50
queue_run_max = 20
smtp_accept_max_per_host = 10
sender_verify = true
receiver_try_verify = true
accept_8bitmime = true
rfc1413_query_timeout = 0s
local_domains = net.xyz.se : *.net.xyz.se
host_accept_relay = 127.0.0.1 : 192.168.0.0/16
auto_thaw = 1h
timeout_frozen_after = 7d
ignore_errmsg_errors_after = 3d
host_lookup = *
log_queue_run_level = 6
gecos_pattern = ^([^,:]*)
gecos_name = $1

#                      TRANPORTS CONFIGURATION                       #
smtp:
   driver = smtp


#                      DIRECTORS CONFIGURATION                       #
virtual1:
   driver = aliasfile
   domains = net.xyz.se
   no_more
   rewrite = false
   file = /etc/exim/alias-net.xyz.se
   search_type = lsearch*


virtual2:
driver = aliasfile
domains = *.net.xyz.se
no_more
rewrite = false
file = /etc/exim/alias-\*.net.xyz.se
search_type = lsearch*


#                      ROUTERS CONFIGURATION                         #
lookuphost:
   driver = lookuphost
   transport = smtp


literal:
driver = ipliteral
transport = smtp


# Retry config part #
*       *       F,2h,15m; G,16h,1h,1.5; F,7d,8h



And here are a fake SMTP session showing the facts:
# exim -bh 192.168.1.1

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

>>> host in host_lookup? yes (*)
>>> looking up host name for 192.168.1.1
>>> IP address lookup failed
>>> 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 hermes.net.xyz.se ESMTP
helo unconfigured
>>> unconfigured in local_domains? no (end of list)

250 hermes.net.xyz.se Hello unconfigured [192.168.1.1]
mail from:user@unconfigured
>>> user@unconfigured in sender_reject? no (option unset)
>>> user@unconfigured in sender_reject_recipients? no (option unset)
>>> host in sender_verify_hosts? yes (*)
>>> verifying sender user@unconfigured
>>> unconfigured in local_domains? no (end of list)
>>> unconfigured.net.xyz.se in local_domains? yes (matched *.net.xyz.se)
>>> unconfigured.net.xyz.se in percent_hack_domains? no (end of list)
>>> unconfigured.net.xyz.se in "net.xyz.se"? no (end of list)
>>> unconfigured.net.xyz.se in "*.net.xyz.se"? yes (matched *.net.xyz.se)
>>> xyz.se in local_domains? no (end of list)
>>> host in sender_verify_hosts_callback? no (option unset)

250 <user@unconfigured> is syntactically correct
rcpt to:user@hotmail
>>> hotmail in local_domains? no (end of list)
>>> hotmail in relay_domains? no (end of list)
>>> host in host_accept_relay? yes (192.168.0.0/16)
>>> host is permitted to relay
>>> sender is permitted to relay
>>> host in receiver_verify_hosts? yes (*)
>>> hotmail in local_domains? no (end of list)
>>> hotmail.net.xyz.se in local_domains? yes (matched *.net.xyz.se)
>>> hotmail.net.xyz.se in percent_hack_domains? no (end of list)
>>> hotmail.net.xyz.se in "net.xyz.se"? no (end of list)
>>> hotmail.net.xyz.se in "*.net.xyz.se"? yes (matched *.net.xyz.se)
>>> xyz.se in local_domains? no (end of list)

250 <user@hotmail> verified
data
354 Enter message, ending with "." on a line by itself
Subject: testing unqualified domain

>>> host in ignore_fromline_hosts? no (option unset)

Testing unqualified domain
.
LOG: 17KETz-0007D1-00 <= user@??? H=(unconfigured)
[192.168.1.1] P=smtp S=235
250 OK id=17KETz-0007D1-00

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

quit
221 hermes.net.xyz.se closing connection


//Richard