[exim] dnslookup hang up while verifying spam mail

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Marek Maj(c)herek Majchrowski
Date:  
À: exim-users
Sujet: [exim] dnslookup hang up while verifying spam mail
Hi, I've a bit problem.

here is my acl from sender veryfication:

check_sender:
  accept  hosts         = :


  require message       = Can't verify sender
          verify        = sender/callout=10s,connect=2s,maxwait=30s,defer_ok


accept

And when a get spam mail dnslookup hang for some mails....

Here is a debug output from such a mail:

10085 SMTP<< MAIL FROM:<samqazhl@h> SIZE=4542
10085 spool directory space = 3622048K inodes = 641162 check_space = 15360K
inodes = 100 msg_size = 9542
10085 log directory space = 3622048K inodes = 641162 check_space = 2048K
inodes = 20
10085 using ACL "check_sender"
10085 processing "accept"
10085 check hosts = :
10085 host in ":"? no (end of list)
10085 accept: condition test failed
10085 processing "require"
10085 check verify = sender/callout=10s,connect=2s,maxwait=30s,defer_ok
10085 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10085 Verifying samqazhl@???
10085 address match: subject=samqazhl@??? pattern=*@*majcom
10085 zytechnologies.com in "*majcom"? no (end of list)
10085 samqazhl@??? in "*@*majcom"? no (end of list)
10085 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10085 Considering samqazhl@???
10085 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10085 routing samqazhl@???
10085 --------> lookuphost router <--------
10085 local_part=samqazhl domain=zytechnologies.com
10085 checking domains
10085 search_open: pgsql "NULL"
10085 search_find: file="NULL"
10085 key="select trim(domain) from virtual_domains where domain = '
zytechnologies.com'" partial=-1 affix=NULL starflags=0
10085 LRU list:
10085 internal_search_find: file="NULL"
10085 type=pgsql key="select trim(domain) from virtual_domains where
domain = 'zytechnologies.com'"
10085 database lookup required for select trim(domain) from virtual_domains
where domain = 'zytechnologies.com'
10085 PGSQL query: select trim(domain) from virtual_domains where domain = '
zytechnologies.com'
10085 PGSQL new connection: socket=/var/run/postgresql/.s.PGSQL.5432
database=mail user=exim
10085 PGSQL: no data found
10085 lookup failed
10085 zytechnologies.com in "localhost : "? no (end of list)
10085 zytechnologies.com in "! +local_domains"? yes (end of list)
10085 calling lookuphost router
10085 lookuphost router called for samqazhl@???
10085 domain = zytechnologies.com


When i try use
# time host zytechnologies.com

I got:

Nameserver not responding
zytechnologies.com A record not found, try again

real    0m20.000s
user    0m0.001s
sys     0m0.001s


but exim4 hungs forever...

My lookuphost router (which is the first) looks like:

lookuphost:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8

And the transport is:

remote_smtp:
driver = smtp




For other spam, where DNS server respons it looks like this:

10208 SMTP<< MAIL FROM:<stephen@???> SIZE=31395
10208 spool directory space = 3622020K inodes = 641162 check_space = 15360K
inodes = 100 msg_size = 36395
10208 log directory space = 3622020K inodes = 641162 check_space = 2048K
inodes = 20
10208 using ACL "check_sender"
10208 processing "accept"
10208 check hosts = :
10208 host in ":"? no (end of list)
10208 accept: condition test failed
10208 processing "require"
10208 check verify = sender/callout=10s,connect=2s,maxwait=30s,defer_ok
10208 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10208 Verifying stephen@???
10208 address match: subject=stephen@??? pattern=*@*majcom
10208 garageservice.biz in "*majcom"? no (end of list)
10208 stephen@??? in "*@*majcom"? no (end of list)
10208 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10208 Considering stephen@???
10208 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10208 routing stephen@???
10208 --------> lookuphost router <--------
10208 local_part=stephen domain=garageservice.biz
10208 checking domains
10208 search_open: pgsql "NULL"
10208 search_find: file="NULL"
10208 key="select trim(domain) from virtual_domains where domain = '
garageservice.biz'" partial=-1 affix=NULL starflags=0
10208 LRU list:
10208 internal_search_find: file="NULL"
10208 type=pgsql key="select trim(domain) from virtual_domains where
domain = 'garageservice.biz'"
10208 database lookup required for select trim(domain) from virtual_domains
where domain = 'garageservice.biz'
10208 PGSQL query: select trim(domain) from virtual_domains where domain = '
garageservice.biz'
10208 PGSQL new connection: socket=/var/run/postgresql/.s.PGSQL.5432
database=mail user=exim
10208 PGSQL: no data found
10208 lookup failed
10208 garageservice.biz in "localhost : "? no (end of list)
10208 garageservice.biz in "! +local_domains"? yes (end of list)
10208 calling lookuphost router
10208 lookuphost router called for stephen@???
10208 domain = garageservice.biz
10208 DNS lookup of garageservice.biz (MX) succeeded
10208 83.170.64.231 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
10208 83.170.64.232 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
<cut>

and the mail is rejected due to spam score...


Can anybody tells me, what i should do with this?
How can I cat off the dnsloookup if it doesn't work...

Because every time when I get mail like the first one, i have the exim which
hungs in backgroud,
and after that a get DOS because max_connection from localhost reached out..

Sorry for my english...
--
Marek Maj(c)herek Majchrowski