Customization MAILER-DAEMON messages - Adding signatures to All-outgoing-mails.

Posted on 2009-02-20
Medium Priority
Last Modified: 2013-12-02
Hi everybody,

Based on Centos 5.2. I want to customize MAILER-DAEMON messages, how to?

Hi. This is the qmail-send program at xxxx
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.


I want add "TEXT"  to all outgoing mails. How?
Question by:gneral
LVL 16

Accepted Solution

ai_ja_nai earned 165 total points
ID: 23699480
>Based on Centos 5.2. I want to customize MAILER-DAEMON messages
recompile qmail-local.c or qmail-send.c, changing the messages which is hard coded in the source; follow these instructions carefully (http://cr.yp.to/proto/qsbmf.txt), since the message format is strict

>I want add "TEXT"  to all outgoing mails.
where do you want to add it? in the body, at the end? In the subject?

Author Comment

ID: 23699524
Thank you for the reply,

In the BODY and END at the msgs.
LVL 16

Assisted Solution

ai_ja_nai earned 165 total points
ID: 23699583
Then, you should definetely not do it, because you would break the pgp signature that lies at the end of a message
LVL 23

Assisted Solution

by:Maciej S
Maciej S earned 105 total points
ID: 23699874
I don't use qmail, but I found this article: http://forum.qmailrocks.org/showpost.php?p=11968
I agree with ai_ja_nai, that you really shouldn't do that (PGP, smime, etc).

Assisted Solution

by:Morne Lategan
Morne Lategan earned 105 total points
ID: 23699940
I assume that you want to ad a disclaimer to your e-mail.

The software to use is alter-mime. I have used it successfully with Postfix at a couple of sites, but not with q-mail.

This post forum seems to indicate that it works with qmail too:


You can google for the words "qmail disclaimer altermime" for more info.

Hope it helps

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question