jamesを使ってみる

  1. http://james.apache.org/download.cgi:titile=ここからApache Jamesをダウンロード
  2. telnet localhost 4555で Jamesの管理サービスに接続
  3. root/rootでログイン
  4. adduser user pass でアカウントの追加
  5. GenericMailet を継承してmailetを作成
  6. 設定ファイル(%JAMES_HOME%\apps\james\SAR-INF\config.xml)を記述する。


設定ファイル

<!-- ホスト名 -->
<servername>localhost</servername>

<!-- mailet -->
<mailet match="RecipientIs=user@localhost" class="jp.co.suusuke.mailet.TestMailet">
      <imagepath>C:/tmp/</imagepath>
</mailet>

詳しくは後で書く。