Re: [exim] customized defer/bounce messages

Top Page
Delete this message
Reply to this message
Author: W B Hacker
Date:  
To: exim users
Subject: Re: [exim] customized defer/bounce messages
Marten Lehmann wrote:
> Hello,
>
>> Is there a way to customize these messages?
>
> no ideas on this? I've recently seen such thing in my log from another
> server:
>
> 452 4.2.1 Mailbox temporarily disabled: userpart@???
>
> How can I do this with exim?
>
> Regards
> Marten
>


In any 'rejection-class' verb (i.e. a 'deny', NOT a warn)
use a structure of this general nature:

===========================================================================

   deny
     message     = \n Defective server $acl_m3 has no PTR record\
                   \n $local_part@$domain refuses mail of unknown origin.



(conditionals not shown, but you do need such!).
============================================================================

Exim will preface each line with the RFC-mandated numerical code appropriate to
the smtp phase.

Result:

<most of a full line of other information..> 550 -
550 - Defective server <IP, hostname> has no PTR record
550 <user@???> refuses mail of unknown origin

HTH,

Bill