View Full Version : Change the 550 "Unknown User" message

02-24-2008, 07:46 AM

I want to set the bounce errors to a custom message. So, I enter the Catch-All adress like below.

:fail: "No mailbox here"
But, smtp server still returns the bounce message as

550 "Unknown User"
when the receipent is undefined.
How can I change this bounce message?

02-25-2008, 11:34 AM
I think that's hard coded in exim.

The :fail: isn't going to change that.


02-29-2008, 09:20 AM
It should be configurable, I suppose.

Because, on my other site running exim, I can modify that message.
The hosting software there writes the string
"*: :fail: thebouncemessage"
at the end of valiases file and smtp engine returns that message.

Thank You,

03-01-2008, 10:01 AM
It may be configurable in exim.conf; find Unknown User and change it to something else, and do some testing.


01-24-2011, 07:35 AM
So has this ever been solved?

exim.conf does contain the following line:

message = "Unknown User"
But of course, to make the individual message show, it would be necessary to replace "Unknown User" with some sort of variable.:confused:


01-24-2011, 10:31 AM
You may be able to find some help in how to change the message here (http://www.teuton.org/~ejm/exim_surbl/) (teuton.org).


01-24-2011, 11:35 AM
It did indeed - thanks a ton!:)

The line above simply needs to be replaced by this here:

message = $acl_verify_message

If I understood the documentation correctly, it could be enough to simply remove that message definition altogether, but I haven't tried that.

01-25-2011, 10:59 AM
Is $acl_verify_message defined elsewhere? As what?

If the message line is completely removed my understanding is you won't get a message. Am I wrong? Am I missing something?


01-25-2011, 11:38 AM
Check out #20 ACL modifiers: http://www.exim.org/exim-html-current/doc/html/spec_html/ch40.html

If message is used on a statement that verifies an address, the message specified overrides any message that is generated by the verification process. However, the original message is available in the variable $acl_verify_message, so you can incorporate it into your message if you wish. In particular, if you want the text from :fail: items in redirect routers to be passed back as part of the SMTP response, you should either not use a message modifier, or make use of $acl_verify_message.

01-25-2011, 12:22 PM

Try leaving the line out and see what you get. If you get what you want, then let me know; maybe I should remove it or change it in the exim.conf file.