Here it is without matching sender_unqualified_hosts:
$ /usr/local/exim/bin/exim -d9 -bh 192.168.3.4
Exim version 3.13 debug level 9 uid=500 gid=500
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
ente.berdmann.de in local_domains? yes (matched ente.berdmann.de)
sender address = be@???
sender_fullhost = [192.168.3.4]
sender_rcvhost = [192.168.3.4]
**** SMTP testing session as if from host 192.168.3.4
**** Not for real!
host in host_lookup? yes (0.0.0.0/0)
looking up host name for 192.168.3.4
IP address lookup failed
sender_fullhost = [192.168.3.4]
sender_rcvhost = [192.168.3.4]
set_process_info: 2795 3.13 handling incoming connection from
[192.168.3.4]
host in host_reject? no (option unset)
host in host_reject_recipients? no (option unset)
host in sender_unqualified_hosts? no (end of list)
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 ente.berdmann.de ESMTP Exim 3.13 #1 Tue, 01 Feb 2000 12:25:06 +0100
220 ente.berdmann.de ESMTP Exim 3.13 #1 Tue, 01 Feb 2000 12:25:06 +0100
smtp_setup_msg entered
ehlo debug.org
SMTP<< ehlo debug.org
debug.org in local_domains? no (end of list)
sender_fullhost = (debug.org) [192.168.3.4]
sender_rcvhost = [192.168.3.4] (helo=debug.org)
set_process_info: 2795 3.13 handling incoming connection from
(debug.org) [192.168.3.4]
250-ente.berdmann.de Hello debug.org [192.168.3.4]
250-SIZE
250-PIPELINING
250 HELP
250-ente.berdmann.de Hello debug.org [192.168.3.4]
250-SIZE
250-PIPELINING
250 HELP
mail from: be@???
SMTP<< mail from: be@???
be@??? in sender_reject? no (option unset)
be@??? in sender_reject_recipients? no (option unset)
250 <be@???> is syntactically correct
250 <be@???> is syntactically correct
rcpt to: be@???
SMTP<< rcpt to: be@???
berdmann.de in local_domains? no (end of list)
berdmann.de in relay_domains? no (end of list)
Actual local interface address is 127.0.0.1
Actual local interface address is 192.168.1.6
local host found for non-MX address
localhost 127.0.0.1 -1
host in host_accept_relay? yes (192.168.0.0/16)
host is permitted to relay
sender is permitted to relay
250 <be@???> is syntactically correct
250 <be@???> is syntactically correct
data
SMTP<< data
354 Enter message, ending with "." on a line by itself
354 Enter message, ending with "." on a line by itself
search_tidyup called
Sender: be
.
host in ignore_fromline_hosts? no (option unset)
>>Original headers (size=12):
Sender: be
rewrite_one_header: type=S:
Sender: be
search_tidyup called
>>Final headers:
P Received: from [192.168.3.4] (helo=debug.org)
by ente.berdmann.de with esmtp (Exim 3.13 #1)
id 12FbR8-0000j5-00
for be@???; Tue, 01 Feb 2000 12:25:45 +0100
S Sender: be
I Message-Id: <E12FbR8-0000j5-00@???>
F From: be@???
B Bcc:
Date: Tue, 01 Feb 2000 12:25:45 +0100
LOG: 0 MAIN
<= be@??? H=(debug.org) [192.168.3.4] P=esmtp S=180
250 OK id=12FbR8-0000j5-00
250 OK id=12FbR8-0000j5-00
**** SMTP testing: that is not a real message id!
smtp_setup_msg entered
421 ente.berdmann.de lost input connection
421 ente.berdmann.de lost input connection
Now the fake IP matches sender_unqualified_hosts = 192.168.1.0/24:
$ /usr/local/exim/bin/exim -d9 -bh 192.168.1.6
Exim version 3.13 debug level 9 uid=500 gid=500
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
ente.berdmann.de in local_domains? yes (matched ente.berdmann.de)
sender address = be@???
sender_fullhost = [192.168.1.6]
sender_rcvhost = [192.168.1.6]
**** SMTP testing session as if from host 192.168.1.6
**** Not for real!
host in host_lookup? yes (0.0.0.0/0)
looking up host name for 192.168.1.6
IP address lookup yielded ente.berdmann.de
Alias ente
Actual local interface address is 127.0.0.1
Actual local interface address is 192.168.1.6
local host found for non-MX address
ente.berdmann.de 192.168.1.6 -1
sender_fullhost = ente.berdmann.de [192.168.1.6]
sender_rcvhost = ente.berdmann.de ([192.168.1.6])
set_process_info: 2798 3.13 handling incoming connection from
ente.berdmann.de [192.168.1.6]
host in host_reject? no (option unset)
host in host_reject_recipients? no (option unset)
host in sender_unqualified_hosts? yes (192.168.1.0/24)
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 ente.berdmann.de ESMTP Exim 3.13 #1 Tue, 01 Feb 2000 12:28:48 +0100
220 ente.berdmann.de ESMTP Exim 3.13 #1 Tue, 01 Feb 2000 12:28:48 +0100
smtp_setup_msg entered
ehlo debug.org
SMTP<< ehlo debug.org
sender_fullhost = ente.berdmann.de (debug.org) [192.168.1.6]
sender_rcvhost = ente.berdmann.de ([192.168.1.6] helo=debug.org)
set_process_info: 2798 3.13 handling incoming connection from
ente.berdmann.de (debug.org) [192.168.1.6]
250-ente.berdmann.de Hello ente.berdmann.de [192.168.1.6]
250-SIZE
250-PIPELINING
250 HELP
250-ente.berdmann.de Hello ente.berdmann.de [192.168.1.6]
250-SIZE
250-PIPELINING
250 HELP
mail from: be@???
SMTP<< mail from: be@???
be@??? in sender_reject? no (option unset)
be@??? in sender_reject_recipients? no (option unset)
250 <be@???> is syntactically correct
250 <be@???> is syntactically correct
rcpt to: be@???
SMTP<< rcpt to: be@???
berdmann.de in local_domains? no (end of list)
berdmann.de in relay_domains? no (end of list)
local host found for non-MX address
localhost 127.0.0.1 -1
host in host_accept_relay? yes (192.168.0.0/16)
host is permitted to relay
sender is permitted to relay
250 <be@???> is syntactically correct
250 <be@???> is syntactically correct
data
SMTP<< data
354 Enter message, ending with "." on a line by itself
354 Enter message, ending with "." on a line by itself
search_tidyup called
Sender: be
.
host in ignore_fromline_hosts? no (option unset)
>>Original headers (size=12):
Sender: be
rewrite_one_header: type=S:
Sender: be
newlen=23 newtype=S newtext:
Sender: be@???
remainder:
search_tidyup called
>>Final headers:
P Received: from ente.berdmann.de ([192.168.1.6] helo=debug.org)
by ente.berdmann.de with esmtp (Exim 3.13 #1)
id 12FbUx-0000j8-00
for be@???; Tue, 01 Feb 2000 12:29:42 +0100
* Sender: be
S Sender: be@???
I Message-Id: <E12FbUx-0000j8-00@???>
F From: be@???
B Bcc:
Date: Tue, 01 Feb 2000 12:29:42 +0100
LOG: 0 MAIN
<= be@??? H=ente.berdmann.de (debug.org) [192.168.1.6] P=esmtp
S=197
250 OK id=12FbUx-0000j8-00
250 OK id=12FbUx-0000j8-00
**** SMTP testing: that is not a real message id!
smtp_setup_msg entered
421 ente.berdmann.de lost input connection
421 ente.berdmann.de lost input connection
Philip Hazel wrote:
>
> On Mon, 31 Jan 2000, Bernhard Erdmann wrote:
>
> > Doesn't help it, Sender: still remains to be just "be" instead of
> > "be@???". Reply-To: should be reserved for special purposes, not
> > as an all day solution.
>
> Please run a test with debugging on, and let me look at the results.
> (Oh, and also send me the rewriting rules.) If your input is coming via
> SMTP, the test has to be something like this:
>
> exim -d9 -bh 192.168.3.4
> EHLO some.host.name
> MAIL FROM:<sender@address>
> RCPT TO:<recipient@address>
> DATA
> Sender: be
> .
>
> That *should* output debugging information about header rewriting.
>
> I have just done this test. I arranged that the sending IP address was
> in sender_unqualified_hosts. Exim added my qualify_domain to the Sender:
> header.
>
> So there is something that is different between our two systems.
>
> However, if the sending hosts isn't in sender_unqualified_hosts, then it
> won't qualify or rewrite. Is that the difference?
>
> --
> Philip Hazel University of Cambridge Computing Service,
> ph10@??? Cambridge, England. Phone: +44 1223 334714.
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##