Re: [exim] Simple if-else condition in acl_check_rcpt

Top Page
Delete this message
Reply to this message
Author: basti
Date:  
To: exim-users
Subject: Re: [exim] Simple if-else condition in acl_check_rcpt
Jeremy thanks a lot for your help.

Something is still wrong in my config.
When I add this lines to my config and my IP is list in filterrelays I
can send mails only from this IP, that's ok.

But I cant receive mails from any other host.

I want to receive mails from any host.
But allow sending mails with authentication only from a few IP's.

Basti

Am 02.06.2014 12:15, schrieb Jeremy Harris:
> On 02/06/14 10:58, basti wrote:
>> # list of IP's
>> hostlist filter_relays = net-lsearch;/etc/filterrelays :
>> net-lsearch;/etc/relayhosts
>> # list of domains
>> domainlist filter_domains = lsearch;/etc/filterdomains
>>
>>
>
> (deleted line)
>>     deny
>>         !hosts = +filter_relays

>
>           condition = ${if match_domain {$domain}{+filter_domains}}

>
>>          message = Your IP $sender_host_address is not allowed to send
>> mail for $domain

>>
>>
>
>