Steven A. Reisman rearranged electrons thusly:
> I use sender_reject_recipients:
> sender_reject_recipients = "lsearch;/etc/exim/sender_reject"
> and put hahaha@??? in /etc/exim/sender_reject
Wont work - Hybris uses MAIL FROM:<> - which you shouldnt be blocking anyway.
FWIW, use this for sender_reject_recipients -
sender_reject_recipients = @@lsearch*;/usr/exim316/blocked.senders
prohibition_message = "${lookup{$prohibition_reason}lsearch {/usr/exim316/reject.messages}{${expand:$value}}}"
where ...
blocked.senders
send4fun.com *
uuinc1smtp1.flonetwork.com *
aol.com SuccessisGreat:Greatsuccess:Success101:Successisgood
* admin__
[...]
reject.messages
sender_reject: Get Lost - No Spammers Allowed Here|Contact postmaster\@example\.com
host_accept_relay: Host $sender_fullhost not allowed to relay|through $primary_hostname|Contact postmaster\@example\.com
--suresh
--
Suresh Ramasubramanian + mallet<@>efn.org
You spamma my mailbox, I nukea da ass