[Exim] sender_verify does not block invalid domains

Top Page
Delete this message
Reply to this message
Author: Stuart Gall
Date:  
To: Exim Mailing List
Subject: [Exim] sender_verify does not block invalid domains
Hello,

I have been using exim for several years on irix, the mail server was
running on the secondary DNS
(heuy) Exim V3.33

I have added a linux system (leuy) to handle incoming SMTP so I can use
exiscan to scan for viruses, if the mail is OK it just passes it on to
heuy for delivery. (leuy is V3.33 too)

Heuy always had sender_verify and it works fine, I can verify that with
exim -bh

Now leuy for some reason sender verify does not work. There was an issue
with reverse dns not being configured correctly to get the name of the
DNS server but I have fixed that now. Still invalid senders are
accepted.

NB they are accepted by leuy which passes them on to heuy for delivery
and heuy rejects them (sender_verify) leuy obviously cant send a DSN so
the message gets frozen in the que.

HERE is the dialog on leuy using exim -d9 -bh 64.58.76.176
NB deuy is the primiary DNS bind8

[root@leuy log]# sendmail -d9 -bh 64.58.76.176
Exim version 3.33 debug level 9 uid=0 gid=0
Berkeley DB: Sleepycat Software: Berkeley DB 3.1.14: (June 7, 2000)
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=0 login=root name=root
sender address = root@???
sender_fullhost = [64.58.76.176]
sender_rcvhost = [64.58.76.176]

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

host in host_lookup? yes (*)
looking up host name for 64.58.76.176
IP address lookup yielded www7.dcx.yahoo.com
sender_fullhost = www7.dcx.yahoo.com [64.58.76.176]
sender_rcvhost = www7.dcx.yahoo.com ([64.58.76.176])
set_process_info: 1187 handling incoming connection from
www7.dcx.yahoo.com [64.58.76.176]
host in host_reject? no (end of list)
host in host_reject_recipients? 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)
SMTP>> 220 leuy.ppv.gr ESMTP Exim 3.33 #1 Thu, 06 Dec 2001 18:15:08

+0200
220 leuy.ppv.gr ESMTP Exim 3.33 #1 Thu, 06 Dec 2001 18:15:08 +0200
smtp_setup_msg entered
mail from: invalid@???
SMTP<< mail from: invalid@???
invalid@??? in sender_reject? no (option unset)
invalid@??? in sender_reject_recipients? no (option unset)
host in sender_verify_hosts? yes (*)
verifying sender invalid@???
>>>>>>>>>>>>>>>>>>>>>>>>

Verifying invalid@???
foo.bar.xyz in local_domains? no (end of list)
address invalid@???
local_part=invalid domain=foo.bar.xyz
domain is not local
>>>>>>>>>>>>>>>>>>>>>>>>

routing invalid@???, domain foo.bar.xyz
lookuphost router called for invalid@???
route_domain = foo.bar.xyz
routelist_item = * heuy.ppv.gr byname
after handling route_lists items, matched = 1
original hostlist=heuy.ppv.gr options=byname
expanded hostlist="heuy.ppv.gr" options=byname
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 195.119.131.36 (eth0)
fully qualified name = heuy.ppv.gr
heuy.ppv.gr 195.119.131.34 mx=-1
routed by lookuphost router:
deliver to invalid@???
transport: remote_smtp
host heuy.ppv.gr [195.119.131.34]
host in sender_verify_hosts_callback? no (option unset)
invalid@??? verified ok as invalid@???
SMTP>> 250 <invalid@???> is syntactically correct

250 <invalid@???> is syntactically correct
quit
SMTP<< quit
SMTP>> 221 leuy.ppv.gr closing connection

221 leuy.ppv.gr closing connection
search_tidyup called


Then I do
nslookup foo.bar.xyz
Server: deuy
Address: 195.119.131.35

*** deuy can't find foo.bar.xyz: Non-existent host/domain


Any ideas. I want leuy to reject all mail with an invalid domain in the
return address.

TVMIA

--

Stuart Gall.
Systems Administrator
PPV, Athens, Greece.
TEL        +30 1 0619 9085
Business    stuart@???
Personal    stuart_gall@???, stuart@???
-------------------------------------------------------
The day microsoft makes something that doesn't suck,
will be the day they start making vacuum cleaners.