0

I'm currently using exim, and i need to limit a mail address to send mails only to local domain and deny mail to outgoing domains.

I think it could be like this :

deny  local_parts   = sender@localdomain
      domains       = !+local_domains

Can you please help me on that way ?

Thanks you very much guys :)

1 Answer 1

0

Add the next rule at the beginning of acl_rcpt (or how you have called it)

deny condition = ${lookup{$sender_address}nwildlsearch{/path/to/the/local.user.list}{yes}}
       domains = !+local_domains

File /path/to/the/local.user.list should contain regexps one per line:

^john@domain\.tld
^.*_dpt@domain\.tld
^.*@inner\.domain\.tld
2
  • hey Kondybas, thanks for the answer :) I'll take a look and test it when i could in the next few days :) !
    – user207367
    Jan 30, 2014 at 16:02
  • 2
    nwildlsearch only treats entries as regexps if they start with a circumflex ^
    – Phil P
    Jan 31, 2014 at 6:07

You must log in to answer this question.