undeliverable mail output

emretorx

Registered
Apr 20, 2021
2
0
1
Türkiye
cPanel Access Level
Root Administrator
How can I customize the output of undeliverable mail? For example, mails sent to the wrong email address will return an error. I want to translate this error into a different language. Is it possible?
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,634
2,629
363
cPanel Access Level
Root Administrator
Hey there! While this is an older thread, the process does remain the same for creating a custom bounce template:


Can you try that and see if that accomplishes what you're looking for?
 
  • Like
Reactions: emretorx

tui

Well-Known Member
Jun 15, 2007
148
40
78
Mexico
cPanel Access Level
Root Administrator
Hello, im on the same boat, im trying to customize the bounce messages, i also read the old thread and the exim documentation, however is no 100% clear to me.

I see that there are some "variables":

bounce_message_text
bounce_message_file
$bounce_recipient
$bounce_return_size_limit
return_size_limit
warn_message_file

There is also a template (that is called as file)

my doubts are the following :

1) There is no mention of where the template file needs to be saved
2) There is no mention of message/templates variations depending on the reason for the bounce (there are many variations), bounced by sended verification failed, bounced by dkim failed, bounced by user do no exists, bounced by mailbox full, etc..

My need in this moment is to custom the bounce messages by sender verify failed and dkim failed, is the most bounce reasons that is affecting my users but all the senders (and my clients) blame the server that is rejecting the messages as they dont understand english or dont read the bounce message because it seems too generic, so i need to create a custom bounce message that says that the problem is the miss-configuration or bad configuration of they domain and pass the bounce message to they system/domain administrator, where can i customize the bounce message for that specific bounse reasons?
 

stormy

Well-Known Member
Nov 22, 2003
240
59
178
Spain
cPanel Access Level
Root Administrator
I'm interested in this as well. I'm reading the linked and Exim documentation, and I'm not sure cPanel is using the same default messages for bounce_message_file.

How can I see this template that Exim is using?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,634
2,629
363
cPanel Access Level
Root Administrator
You can do this following these instructions through the advanced editor:


Can you try that and see if that is what you're looking for?
 

stormy

Well-Known Member
Nov 22, 2003
240
59
178
Spain
cPanel Access Level
Root Administrator
That's the link I followed, but the text that appears in that document doesn't seem to be EXACTLY the one that cPanel is sending. That's why I'd like to see the original text in the server, so I can copy it verbatim and translate it. Not sure if I'm explaining myself well here? :)
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,634
2,629
363
cPanel Access Level
Root Administrator
I don't think there is a specific template - Exim generates the bounce on the fly according to all the conditions met here in section 22:


It would also depend on system/domain filters as well. Even the guide I linked previously at 50. Customizing bounce and warning messages says this:

"The text of these messages is built into the code of Exim, but it is possible to change it, either by adding a single string, or by replacing each of the paragraphs by text supplied in a file."

When you perform the customization option, that overrides the Exim defaults to use that information.
 
  • Like
Reactions: stormy