Re: [Exim] Custom reject messages

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Owen Creger
CC: 'exim-users@exim.org'
Assunto: Re: [Exim] Custom reject messages
On Fri, 8 Feb 2002, Owen Creger wrote:

> I'm trying to create custom reject messages.


This whole area has changed completely for Exim 4, incidentally. I hope
that people will find the new arrangements a whole lot easier.

> I'm using:
> prohibition_message =
> ${lookup{$prohibition_reason}lsearch{/etc/mail/reject.messages}{${expand:$va
> lue}}}
>
> reject.messages:
> host_accept_relay: $sender_host is not permitted to relay
> host_reject_recipients: $sender_host has been blacklisted for sending SPAM|
> Contact postmaster\@creativesolutions\.com to be removed
> sender_reject_recipients: $sender_address has been blacklisted for sending
> SPAM| Contact postmaster\@creativesolutions\.com to be removed


> sender_verify: $sender_host_address has no DNS reverse lookup| Please add a
> reverse lookup for $sender_host_address to your DNS server


That last one is incorrect. Sender verification verifies sender
addresses, not hosts.

> When the reject message is created, the end of each added line from
> reject.messages has \n\r instead of starting a new line.


Where do you see this? It may well show as \r\n on the log, where each
entry has to be a single line. That doesn't mean it shows like that on
the outgoing SMTP message.

> I also would like to have copies of the reject messages sent to the
> postmaster.


If you reject at SMTP time, it is the sending MTA that generates the
rejection message, not your MTA. So you can't do this.

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