- PR -

qmail のエラーメール(failure notice)の本文の編集

1
投稿者投稿内容
きち
会議室デビュー日: 2005/10/28
投稿数: 3
投稿日時: 2006-04-11 17:50
qmailのエラーメール(failure notice)の本文の編集方法について
調べています。

以下のエラーメールの●で囲まれたの部分に文書を追加したいのです。

------

Hi. This is the qmail-send program at <hostname>.
I tried to deliver a bounce message to this address, but the bounce bounced!

●ここに一文を追加したい●

<test@test.com>:
xxx.xxx.xxx.xxx does not like recipient.
Remote host said: 553 sorry, relaying denied from your location [xxx.xxx.xxx.xxx] (#5.7.1)
Giving up on xxx.xxx.xxx.xxx.

--- Below this line is the original bounce.

ご存知の方がいらっしゃいましたらご教授願います。
よろしくお願いいたします。
あるかな
大ベテラン
会議室デビュー日: 2003/11/04
投稿数: 245
投稿日時: 2006-04-11 20:39
こんばんは。

実際に編集構築した訳ではないですが、お探しの情報の場所ですが、

qmail-1.03/qmail-send.c

のソースで指定されています。
コンパイル前にこのファイルを書き換えて構築すれば、よろしいかと。
書き方に形式があるので、多少のプログラム的な予備知識が無いと、
ソース自体を壊してしまうかもしれませんので、留意ください。
#変数やエスケープや改行コードなど。

引用:

Subject: failure notice\n\
\n\
Hi. This is the qmail-send program at ");
qmail_put(&qqt,bouncehost.s,bouncehost.len);
qmail_puts(&qqt,*sender.s ? ".\n\
I'm afraid I wasn't able to deliver your message to the following addresses.\n\
This is a permanent error; I've given up. Sorry it didn't work out.\n\
\n\
" : ".\n\
I tried to deliver a bounce message to this address, but the bounce bounced!\n\
\n\
");



残念ながら設定上では存在しないと思われます。
1

スキルアップ/キャリアアップ(JOB@IT)