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   = ^[.] : [EMAIL PROTECTED]/|]

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

   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:[EMAIL PROTECTED]
   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


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to