[exim] problem with hostlist relay_from_hosts

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Niles Ingalls
Dátum:  
Címzett: exim users
Tárgy: [exim] problem with hostlist relay_from_hosts
Hello,

I'm having a problem where my exim configuration is ignoring the
addresses I have listed in relay_from_hosts.
I've got accept host =+relay_from_hosts, but I still get a "relay not
permitted" error when sending from any of the hosts listed.
Please assist.
Thanks
Niles


From my configuration:

hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.0/24 :
192.168.1.8.0/24 : 208.119.68.3 : 208.119.68.2


From my ACL's

begin acl
acl_check_rcpt:

   accept  hosts         = : +auth_relay_hosts
           condition     = ${if eq {$interface_port}{465} {yes}{no}}
           endpass
           message       = relay not permitted, authentication required
           authenticated = *


   deny    message       = Restricted characters in address
           domains       = +local_domains
           local_parts   = ^[.] : ^.*[@%!/|]


   deny    message       = Restricted characters in address
           domains       = !+local_domains
           local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./


   accept  local_parts   = postmaster:abuse
           domains       = +local_domains
   require verify        = sender


   accept  hosts         = +relay_from_hosts
           control       = submission


   accept  authenticated = *
   require verify        = recipient


   warn    set acl_m1    = ${perl{Greylist::defercheck}{${lc: 
$sender_address}}{${lc:$local_part@$domain}}{$sender_host_address}}
   defer   domains       = +local_domains
           hosts         = !+relay_from_hosts
           condition     = ${if eq {$acl_m1}{0}{0}{1}}
           message       = You have been greylisted. This is part of  
our standard anti-spam measures and your mail system \
                           should automatically try again later. We  
will accept this mail from you in \
                           ${if >{$acl_m1}{119}{${eval:$acl_m1/60}  
minutes}{$acl_m1 seconds}}.


   warn    message       = X-blacklisted-at: $dnslist_domain $ 
{perl{Greylist::forget}{$sender_host_address}}
           dnslists      =  
dnsbl 
.njabl 
.org:cbl 
.abuseat.org:accredit.habeas.com:plus.bondedsender.org:iadb.isipp.com
   deny    dnslists      =  
sbl.spamhaus.org:bl.spamcop.net:cbl.abuseat.org


   require message       = relay not permitted
           domains       = +local_domains : +relay_to_domains
   accept


acl_check_data:
   accept  hosts         = : +auth_relay_hosts
           condition     = ${if eq {$interface_port}{465} {yes}{no}}
           endpass
           message       = relay not permitted, authentication required
           authenticated = *


   warn    message       = X-Spam-Score: $spam_score ($spam_bar)
           spam          = nobody:true
   warn    message       = X-Spam-Report: $spam_report
           spam          = nobody:true



   warn    message       = Subject: *SPAM* $h_Subject:
           spam          = nobody


   deny    message       = This message scored $spam_score spam points.
           spam          = nobody:true
           condition     = ${if >{$spam_score_int}{120}{1}{0}}


   deny    message       = This message contains malware ($malware_name)
   set     acl_m0        = cmdline:/usr/local/bin/clamscan -i --unzip  
--unrar --arj --unzoo --lha --tar --tgz %s:FOUND: :: (.+) FOUND
           malware       = */defer_ok
  accept