[Exim] Search data in sender_domains

Top Pagina
Delete this message
Reply to this message
Auteur: Nigel Wade
Datum:  
Aan: Exim users list
Onderwerp: [Exim] Search data in sender_domains
Hi,

Finally, our new mail system with Exim is up and running. Nice... (Finally,
those wonderfully transparent sendmail rewrite rules -
R<> $* < @ [ $* ] : $+ > $*     $1 < @ [ $2 ] : $3 > $4
are gone for ever!)


But no sooner is it up and running than I want to play with the configuration.

I have a blacklist of sender domains in a file which I check using
sender_domains in the rcpt acl. This works perfectly well for rejecting
messages. However, now I'd like to be able to customize the rejection
message with a specific reason for each domain.

I can set up a blacklist with domains and reasons e.g.:

misco.co.uk: sending spam and not desisting when told to do so.
bigfoot.net: sending virus alerts by replying to forged sender.

and doing an lsearch on the file. However, I can't see any way to get the
result of the search into the rejection message as domainlist lookup data is
only returned for 'domains' and 'local_parts'.

Is there any way that I can do this?

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555