Re: [exim] Accept emails coming from a particular IP for a …

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Mike Cardwell
日付:  
To: Exim Users List
題目: Re: [exim] Accept emails coming from a particular IP for a particular domain
Madan Thapa wrote:

> Is there any way to configure exim to reject all mail to a server say
> (ServerA) for a particular domain say xyz.com, unless it comes from a
> certain IP(s) , while still allowing the other domains on the server accept
> mail from anyone?


In the rcpt acl:

deny domain  = example.com : grepular.com
      !hosts  = 192.168.0.0/24 : 10.0.0.5
      message = $domain doesn't accept mail from $sender_host_address


The above would reject any email to any email addresses ending
@example.com or @grepular.com unless they came from the IP address
10.0.0.5 or the network 192.168.0.0/24

Mike