Re: [EXIM] Redirecting email (autobounce?)

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Andromeda
Cc: Exim
Asunto: Re: [EXIM] Redirecting email (autobounce?)
On Tue, 12 Jan 1999, Andromeda wrote:

> I want to be able to set up a list, similar to sender_reject_recipients,
> but with a userdefined message. The format of the list would preferably be:
>
> blah@??? : message delimited by | as linebreaks
> *@domain2.com : another message delimited by | as line breaks
>
> I believe I have to use a director for this, but have no clue... or dunno
> where to start.


You can do this using the prohibition_message mechanism (spec section
41.7), which avoids having to use a director, and which therefore
doesn't require you to let the message into your host at all. Something
like

prohibition_message = "${if eq {$prohibition_reason}{sender_reject_recipients}\
{${lookup{$sender_address}lsearch{/some/file}{$value}}}{}}"

Vertical bar is treated as a line separator in prohibition texts.

If you *do* want to do it with a director, then you have to set up an
aliasfile director with entries of the form

blah@???: :fail: message

but this approach will result in a bounce message being created to send
to the sender rather than a rejection in the SMTP dialogue, and if you
want to have newlines in the message, you will have to use a DBM or
some other search type that is not lsearch, because you can't have
newlines in text looked up by lsearch.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***