I've searched the WIKI and found the solution to what I am trying to do... It's Q0710. It fits perfectly however the solution doesn't seem to work. I seem to keep coming up with errors with the "condition" portion of my acl. Since I'm very new to doing ACL's, can someone tell me if this ACL is correct and possibly help me get mine working? I'll copy it here:
Q0710 Question I want to reject certain sender-recipient combinations, with a specific message for each such combination. Answer Set up a file (or database) containing the messages, keyed by the combination, for example: send...@sdomain1=>recipie...@rdomain1: blocked because... send...@sdomain2=>recipie...@rdomain2: blocked because...If you have lots of recipients for the same sender, it might be easier to generate this file from more convenient data. In your ACL that is run for each RCPT command, you can then put: deny message = ${lookup{$sender_address=>$local_p...@$domain}\ lsearch{/that/file}} condition = ${lookup{$sender_address=>$local_p...@$domain}\ lsearch{/that/file}}{yes}{no}}The condition is tested first. If the lookup succeeds, the condition succeeds so access is denied. The message is then expanded, but the lookup won't be repeated, because Exim will have cached the previous result. This approach blocks only incoming SMTP messages. If you need to do similar blocks for messages that do not arrive over SMTP, you have to set up a suitable redirect router with a :fail: setting. -- ## 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/