1 / 5

Header 情報の書き換え

Header 情報の書き換え. 城戸英彰. MASQUERADE. MASQUERADE_AS MASQUERADE_DOMAIN 送信者のメールアドレス ( ヘッダ ) が DOMAIN で指定されるドメインの場合 AS のドメインに書き換える 記述法 MASQUERADE_AS(` 書き換えた後のドメイン ')dnl MASQUERADE_DOMAIN(` 書き換えたいドメイン ')dnl. 実験. /etc/mail/sendmail.mc divert(0)dnl

yetty
Download Presentation

Header 情報の書き換え

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Header情報の書き換え 城戸英彰

  2. MASQUERADE • MASQUERADE_AS • MASQUERADE_DOMAIN • 送信者のメールアドレス(ヘッダ)がDOMAINで指定されるドメインの場合ASのドメインに書き換える • 記述法 • MASQUERADE_AS(`書き換えた後のドメイン')dnl • MASQUERADE_DOMAIN(`書き換えたいドメイン')dnl

  3. 実験 • /etc/mail/sendmail.mc divert(0)dnl VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro Exp $') OSTYPE(solaris2)dnl OSTYPE(solaris2)dnl DOMAIN(generic)dnl FEATURE(`access_db', `dbm -T<TMPF> -o /etc/mail/access')dnl define(`confCHECKPOINT_INTERVAL',`10') define(`confSAVE_FROM_LINES',`'Flase) define(`confMATCH_GECOS',`False') define(`confMAX_HOP',`25') define(`confME_TOO',`True') define(`confCHECK_ALIASES',`True') define(`confDEF_USER_ID',`1:1') define(`confTRY_NULL_MX_LIST',`False') define(`confREFUSE_LA',`12') define(`confQUEUE_LA',`8') define(`confSEPARATE_PROC',`False') define(`confMIN_QUEUE_AGE',`10m') define(`confCOLON_OK_IN_ADDR',`False') define(`confDONT_EXPAND_CNAMES',`False') define(`confDONT_INIT_GROUPS',`False') define(`confBIND_OPTS',`') MASQUERADE_AS(`exp.db.is.kyushu-u.ac.jp')dnl MASQUERADE_DOMAIN(`sola.exp.db.is.kyushu-u.ac.jp')dnl MAILER(local)dnl MAILER(smtp)dnl

  4. 実験 [root@localhost root]# telnet sola.exp.db.is.kyushu-u.ac.jp 25 Trying 133.5.18.168... Connected to sola.exp.db.is.kyushu-u.ac.jp. Escape character is '^]'. 220 sola.exp.db.is.kyushu-u.ac.jp ESMTP Sendmail 8.13.5/8.13.5; Mon, 13 Mar 2006 17:25:13 +0900 (JST) helo localhost 250 sola.exp.db.is.kyushu-u.ac.jp Hello testnat.db.is.kyushu-u.ac.jp [133.5.18.166], pleased to meet you mail from:murasita@exp.db.is.kyushu-u.ac.jp 250 2.1.0 murasita@exp.db.is.kyushu-u.ac.jp... Sender ok rcpt to:kido@exp.db.is.kyushu-u.ac.jp 250 2.1.5 kido@exp.db.is.kyushu-u.ac.jp... Recipient ok data 354 Enter mail, end with "." on a line by itself Subject:testmail From:murasita@sola.exp.db.is.kyushu-u.ac.jp testmail. . 250 2.0.0 k2D8PDIo000449 Message accepted for delivery

  5. 実験結果 • 変更前 From: murasita@sola.exp.db.is.kyushu-u.ac.jp Subject: testmail Date: Mon, 13 Mar 2006 17:09:01 +0900 (JST) testmail. • 変更後 From: murasita@exp.db.is.kyushu-u.ac.jp Subject: testmail Date: Mon, 13 Mar 2006 17:25:13 +0900 (JST) testmail.

More Related