On Tue, May 6, 2014 at 2:59 PM, Heiko Schlittermann <hs@???>wrote:
> Will Smith <will@???> (Di 06 Mai 2014 17:06:46 CEST):
> ...> So, my question. Will that work for what I want to do?
>
> Probably not.
>
> It will split the current recipient into $local_part and $domain. Then it
> will search for $domain in the reject_senderdomain file, but $domain
> contains *your* domain, not the senders domain. If you turn this into
> deny senders = @@lsearch… it will find the domain of the sender, but
> then Exim will compare the $sender_address_local_part with the data
> looked up. (If I remember well how @@ works.)
>
> Ok, that makes sense.
> In your recipient acl I'd to something like this:
>
> acl_check_recipient:
>
> …
> deny message = please send your message to Will
> sender_domains = senderdomain.net
> !local_parts = will : william
>
Ok, added that to my config. I don't have an email at the domain in
question, but I will watch the logs and check it out.
Thanks for the input.
Will--