- PR -

SMTP転送について

1
投稿者投稿内容
nissy
会議室デビュー日: 2005/01/13
投稿数: 7
お住まい・勤務地: kumamoto
投稿日時: 2005-03-07 18:55
先日も質問させて頂きましたnissyと申します(Linux初心者です)

Debian LinuxをSMTPサーバーとして使用しているのですが
ある特定のユーザの送信メールを管理者である私に転送したいのですが
どのファイルを編集すれば良いのでしょうか?

ご教授お願いします
kaz
ぬし
会議室デビュー日: 2003/11/06
投稿数: 5403
投稿日時: 2005-03-07 19:08
こんばんわ.
引用:

nissyさんの書き込み (2005-03-07 18:55) より:

Debian LinuxをSMTPサーバーとして使用しているのですが
ある特定のユーザの送信メールを管理者である私に転送したいのですが
どのファイルを編集すれば良いのでしょうか?


「受信したものを転送」ではなく,
「送信したものの複製を管理者へも転送」というお話ですか?
プライバシー的にあまりお奨めできませんが,
postfix や qmail では設定することで可能です.
sendmail だと milter を使って可能だそうです.
どちらも過去レスを検索すると hit すると思います.

以上,ご参考までに.
NeXT
大ベテラン
会議室デビュー日: 2004/04/06
投稿数: 215
お住まい・勤務地: 江戸
投稿日時: 2005-03-08 00:33
Debian 3.0 だと exim が default でインストールされますが,それを利用されているのでしたら
目的にかなうかどうかわかりませんが
http://www.exim.org/
の,FAQ に
Q5033: How can I send a copy of all outgoing messages to another mailbox?
A5033: The most straightforward way is to set up a system filter, and include a command such as:

unseen deliver mailbox@whatever.domain

This sends a copy of every message to mailbox@whatever.domain (unless the message already has that recipient - Exim never does duplicate deliveries).

To save only “outgoing” messages, you need to come up with a definition of what “outgoing” means. Typically, this might be a check on the sender address and/or on the originating host. Here is an example:

if $sender_address_domain is mydomain.com and
${mask:$sender_host_address/24} is 192.168.324.0/24
then
unseen deliver mailbox@whatever.domain
endif
という記述があります。

私は,情報を見つけられなかったので exim ではなく sendmail にしてしまったので動作確認はし
ていないのですが。
1

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