Ȼ/08

Top / Ȼ / 08

RFC ˤĤ

᡼륵Фäˡ RFC(Request For Comment) ˤĤƵƤ.
RFC ȤϡIETF (Internet Engineering Task Force)*1 Ȥ, ͥåȥΤΡɸಽΡפˤäɸಽ줿ʽΤȤǤ.

warning.png ȤƤͥåȥץȥΤۤȤɤϴŪˤ RFC ˽äƤΤФʤΤǡܤȤΤꤿг RFC ɤФ褤ȤȤˤʤ.

ʤΤΤС󥢥åפȿ RFC Ѱդ뤳ȤˤʤΤǡεʤбǿ RFC ɤ줫狼ˤΤ.

ʲ᡼εʤˤĤƵȤ RFC ˤĤƻ꿨ƤΤǡˤʤԤϼʬɤǤߤȤ褤.
ʤͥåȥǤϿڤˤܸ֤ƤƤͤ⤤Τǡ餫ɤǤߤڤ.

᡼륵

᡼륵ФȰ˸äƤ⤽λŻ͡.
ԤˡŻҥ᡼뤬ɤΤ褦ãƤΤ褽ΤȤȤʬôΤäƤ.

᡼ž

᡼ۿϤ褽žȤʳʬ.

Τ(žȸʤ)ž SMTP (= Simple Mail TransferProtocol. RFC821*2 򸫤) ȤץȥˤäƹԤ졤Ū MTA()ΤŻǤ.

桼ӥƥľ뤹뤳Ȥ⤢äƼλϤĤˡꡤȤƤΤ POP (Post Office Protocol) ver.3 = RFC1939*3 IMAP (Internet Message Access Protocol) ver.4rev1 = RFC3501*4 Ǥ.

ʬôޤȤȡ

MTA = Message Transfer Agent
᡼žԤեȥ. ͹ضɤΤ褦̤.ͭ̾ʤΤϡsendmail, postfix, qmail ȤȤ. ᡼ۿμ.
MDA = Message Derivery Agent
Ϥ᡼桼ۿƯեȥ. MTA κǸʳλŻβŪ¸. ̳̾ñʤã᡼Υե륿žľΡֿݽפĤΤǤʤ˽. ͭ̾ɤ mail, procmail ʤɤǤ. ϤޤռʤƤ褤.
MUA = Mail/Message User Agent
᡼ɤ߽񤭡ФؤФϤƤ᡼äƤ롤ʤɤΥ桼ȤԤեȥ. ᡼ʤɤȤ.

ȤեȥƱΤ, ŵŪʾϰʲΤ褦˷ҤäƤ.

mail-transfer-simple_s2.png
(Żҥ᡼Τ褽ۿ)

äơ᡼륵ФδȤϤޤ

  • MTA δ
  • POP, IMAP MUA μΥХեȥδ

ĤʬǤ뤳Ȥˤʤ롥

᡼Υƥ()

᡼žۿϴŪˡʿʸפǥͥåȥξή.
ΤᡤƼѥɤ᡼ʸƱͥåȥˤޥˤȴǤΤǡϩΰŹ沽ˤɤȤȤͤ.

ΤäȤ褯Ȥ뵻Ѥ, Ҳ𤷤 TLS/SSL Ȥä̿ƤŹ沽ΤǤ.
ޤTLS/SSL ȤȤǡ⸡ФǽȤʤ.

warning.png TLS 1.0 SSL 3.0 ˤۤRFC2246*5 򸫤Ф褤. ʤߤ TLS 1.1 RFC4346*6.

Ҥ٤褦ˡ* over TLS/SSL ˤϤʤΤ.
ޤ긫ݤʤȤǤ FTP over TLS/SSL RFC4217*7ʤƤΤ⤢.

SMTP/POP/IMAP over TLS/SSL

οޤпηϩϴŪ˥ͥåȥǡήϩǤ뤬ηϩƤФover TLS/SSL ˤäưŹ沽Ȳ⸡ФǽǤ.

ŪˤϡMTA Ȥƴط SMTP over TLS (RFC3207)*8 MUA ǡɤ߹ݤ IMAP/POP over TLS (RFC2595)*9 Ȥˤ櫓.

ʤߤˡTLS/SSL θͤС*** over TLS/SSL 򥯥饤ȤΡǧڡפ˻ȤĤޤҤ smtp auth ʤɤ˻ȤΤǤϤȻפȤ TLS/SSL 뤳ȤѤʤȤͭʤȤ顤饤ǧڤѤΤ󸽼ŪǤȹͤƤ褦.

spam к : óԤˤʤΤɤ : ݡȤΥ֥å

ߡͥåȥΥ᡼ˤ spam (=ΰտޤ˴طʤƤ빭𡤾Υ᡼. UCE = Unsolicited Commercial E-mail ȤФ.)礭ȤʤäƤ.
warning.png ʤߤ spam θ츻. Ĵ٤ƤߤȤ褤.

ɤ뤿λȤߤ͡ʤΤ뤬ֺǴΥ᡼륵MTA ˤơ spam Ρʳ֥åפȤŪεѤʲ˾Ҳ𤵤ΤǤ.
¾ˤ "Outbound Port25 Blocking" ʤɤƱŪεѤǤ. Outbound ... ϥ᡼륵ФǹԤΤǤϤʤơͥåȥνǹԤΤǤΤǤǤϾҲ𤷤ʤ.

ϡʬδ᡼륵(MTA) spam ˻ȤΤɤΤΤǡСֲóԤˤʤʤΡ׵ѤǤ.

SMTP Auth

RFC2554*10˵ꤵƤ SMTP γĥʤǡ礶äѤ˸SMTP 饤ȤФǧڤƤ餦Ѥ.
ĤޤꡤSMTP ̿Ǥɡס֤ï?ס֢Ǥס֤ۤ?ס֤줬ڵǤסOK̿, NG̿ݡ ȤȤߤ¸ΤǤ.

οǧڤϡ¼Ū SASL(Simple Authentication and Security Layer) RFC2222*11 ѤȤȤ RFC Ƭ˽񤫤Ƥ.

εѤϼˡ᡼(¼Ū˥᡼ž)ǧڤǤ륯饤Ȥդ뤳ȤǡΤ軰ԤˤäƤΥФ᡼뤳Ȥɤ˻Ȥ.

Message Submission

RFC2476*12 ˵ꤵƤ뵬.
̾ϥ᡼žξ port 25 ǼΤǤ뤬 port 25 žΤߤդ port 587(Submission port ȤФ)Ǽդ褦ˤȤΤǤ.
ʬǤϥƥΰ̣ϤʤˤʤΤ(^-^), ơ port ˤ٤ǧڤʤ¾ˡǤ¤Ƴ뤳ȤȤʤäƤ.
㤨Сո submission port Ǥ smtp auth 򤫤. MTA ǧˡ Sender ID, SPF, DomainKeys ʤɡ᡼륵ФŬΤƤƤ.

ʬפȡMTA ߤȤ˴Ū

  • Ƥ MUA
  • žƤ MTA

Ǥꡤ᡼˴ؤŻƤˤä꤬ۤʤΤǤ.
ǡŻƤ˱ port ʬơбѤƥƥ褦ȤͤǤ.

ŪˤϡMTA ϤʤΥФǤΤǤȤбԤƤɤȤMUA ͡ʥ᡼餫ʤΤǤޤ긷Ȥ׵Ǥʤʤɡơʤ˱ˤ碌ǧˡƳ롤ȤȤˤʤ.

spam к : ﳲԤˤʤΤɤ : Υ֥å

spam ΡﳲԤˤʤʤˤϡסŪž/Ƥ᡼ȤǤοݤǤ֤ȤȤˤʤ. ͤ礭Ĥäơ

³Ƥåơʤ³ΤΤݤ
ȷϰʲ̤.
⤽᡼餺˺ѤΤǡvirus ʤɤ꤬ʤ.
᡼Ƥ˰¸ʤΤǡƤ˰¸븡ܤǤϤʤפȤۤʤ.
꤬¤ʤȤǤäӽƤޤﳲ礭.
ǡºݤˤ
  • SMTP ³ʳϵ䤹
  • ꤬ MTA ΢εǽäƤ˸¤³Ĥ(üʤ)
  • (ǽƤ)֥åꥹȤ˺ܤäƤϵ䤹
Ȥ褦ʼˡȤ.
Ȥꤢ᡼ꡤƤåƥʤ
ȷϰʲ̤.
㤨Х桼ˤʤ, ꤬ǽ.
Ƥ˰¸٤ʥåǽ. ŪˤϡǯϤ᡼٥ե륿ˤʬहˡȤƤ褦.
ƤåΤǡФǹԤäϡְθܡפȤŦ/ȽϤ.
٤⤤.

ȤΤʬ. ⤽ʤη뤿ᡤФȥ桼ˤäƸƤɬפǤ.

ϤˤĤƾܤҤ٤ʤٶƤȤ褤.
warning.png 㤨С(ηиǤ)¦ǡ SMTP³ʳϵ䤹פ spam 95%ʾ̵ȤǤ. ˤϡΥ᡼륵ФΤư롼ȿǤץФ⤢ꡤФ֥ۥ磻ȥꥹȡפƤʤɤĴ/ϤʤʤѤǤΤ

notes.png spam ﳲ򸺤餹ˡ׼ºݤˤɤΤ褦ɸˡΤĴ٤Ƥߤ. ΤȤֲóԤˤʤʤΡкȡﳲԤˤʤʤΡкˤ櫓ơξĴ٤.

MTA : Postfix

ơǤϥ᡼륵ХեȥܼǤ MTA 򥤥󥹥ȡ롤ꤷƤߤ褦.
˽񤤤褦 MTA ͭ̾ɤ sendmail, postfix, qmail ȤȤsendmail ϡּꤹΤϻפȸ뤷*13qmail sendmail Ȥθߴ㤤˾ϫ뤳Ȥ⤢.
̵ʤȤ Postifx 򥤥󥹥ȡ뤷ԤäƤߤ褦.

notes.png sendmail ꤬ɤΤ褦񤷤ΤΤ뤿ˤϤեǤ /etc/mail/sendmail.cf 򸫤ƤߤΤּüᤤ. ΥեΡREWRINTING RULES Ȥ꤫򸫤ƤߤơʬǤְ㤨ԽǤͤƤߤ.

notes.png sendmail, postfix, qmail γơħ򾯤ܤĴ٤Ƥ.

Postfix Υ󥹥ȡ롤

˽Ҥ٤ѤȤδط

ޤPostfix ȾΥƥspam кȤδطҤ٤Ƥ.
warning.png ⤽ Postfix Ͼ˽Ҥ٤褦ʵѤɤեȥȤΤƤꡤкѤƳΤŬƤ.

SMTP over TLS/SSL ˤĤ

Ǥ FreeBSD Postfix ports 饤󥹥ȡ뤷褦Ȥ "Enable SSL and TLS support" ȤץǽʤΤǤ򤷤ƤФ褤Ǥ. ŪڤäȤϤޤdzڤˤʤäƤȤϡĤȻפ餤ñˤʤäƤ.

SMTP Auth ˤĤ

§Ȥ Postfix 󥹥ȡפǧڤΤѤ SASL 󶡤륽եȥ򥤥󥹥ȡ뤹ɬפ.
Ǥ ports 饤󥹥ȡ뤷褦Ȥ "Cyrus SASLv2" ȤץǽʤΤǤ򤷤ƤCyrus-SASL ưŪ˻˥󥹥ȡ뤷ƤΤǡ⤷ʤƤ褤.

󥹥ȡ

sendmail ưƤʤå

ޤ¿ OS ǥǥեȤưƤ뤳Ȥ¿ sendmail ưƤꤷʤå*14.
ŪˤϡμȤ Web ФưƤ뤫ɤåΤƱˡ.

notes.png ǡʲΤ褦ˤ sendmail ưƤʤå褦.

  • ޤ/etc/rc.conf ɤ sendmail ˤĤƤεҤʤå.
    sendmail_enable="YES" ʤɤȤä sendmail ưƤϤ.
    ⤷ sendmail ˴ؤ뵭Ҥ rc.conf ˤʤС/etc/defaults/rc.conf (ˤɬ񤤤Ƥ)εҤͭˤʤΤǤɤ⤦.
    warning.png /etc/defaults/rc.conf sendmail_enable="NO" Ƚ񤤤Ƥ뤬¿ƤϤʤ. /etc/defaults/rc.conf տɤФ狼뤬 sendmail εǽΰưʤǡsendmail ¾ʬϵưƤޤ. sendmail Ƥεưߤ᤿ sendmail_enable="NONE" ȤȤ褤.

notes.png /etc/rc.conf ä sendmail ˴ؤ뵭Ҥʤġ /etc/defaults/rc.conf sendmail_ۤۤ_enable="YES" ȤҤϡ ʹߤ sendmail μưưɤ /etc/rc.conf

sendmail_enable="NONE"

Ƚ񤭤Ǥ.

  • ,
     ps -axuww | grep -i sendmail
    νϷ̤򸫤ơsendmail ưƤʤå(sendmail Ϥ̾äƤ뤬ΤƱ).
  • ˡ
     lsof -i4 | grep -i mail

Ȥ mail Ȥ post Ȥ drop Ȥʸޤ daemon ưƤʤĴ٤褦.

  • ޤ
     telnet localhost 25
    Ȥ

    Trying 127.0.0.1...

    Connected to localhost.

    Escape character is '^]'.

    220 ۥ̾ ESMTP Sendmail 8.14.4/8.14.4; Wed, 17 Nov 2010 21:50:16 +0900 (JST)

Ȥ褦ˡSMTP դƤȤֻ³Ǥ褦ä餪餯 sendmail ưƤ*15.
warning.png telnet Ѥ sendmail ³Ǥϡ^] (Ctrl 򲡤ʤ ] 򲡤) ȤƤ顤quit ǤƤФ褤. ^] "ͥåȥ˴ؤ" Ȥ̣ǡΩĤΤdzФƤ.

ơޤǤΥåǤ⤷ sendmail ưƤ褦ä顤

 /etc/rc.d/sendmail stop

Ȥ sendmail 褦.
ǰΰ٤˥֡Ȥơsendmail Ϥǽ餫ưʤ褦ˤʤäƤ뤳ȤǧƤȤʤ褤.

󥹥ȡ

ޤĤΤ褦 ports 쥯򹹿Ƥ(Ǥȼк).

 portsnap fetch
 portsnap update

Ǥϡports postfix 򥤥󥹥ȡ뤹. 󥹥ȡ뤹СϺǿ ver.2.7.1,1 Ǥ褤.
ports 쥯򤶤äȤߤǤ ver.2.4, ver.2.5, ver.2.6 ¾˥쥯󤵤ƤΤǡ󥹥ȡκݤˤϴְäС򥤥󥹥ȡ뤷ʤ褦դ褦.
ơ

 portinstall mail/postfix

ǥ󥹥ȡ뤬Ϥޤ*16. ⤷С褦ʤտ򤷤褦.

ports 饤󥹥ȡ뤹ݡ/ ̤3ۤɽФƤ. ˤĤƲ⤷褦.

֤ǽ
postfix-option.png
Τ褦ʲ̤Фơpostfix Υ󥹥ȡ륪ץʹ.
ФƤϡ˽Ҥ٤褦 "Cyrus SASLv2", "Enable SSL and TLS support" Ĥ "ON" ˤƤ. ޤǥեȤ򤵤Ƥ "Perl Compatible Regular Expressions" "ON" Ǥ褤. ¾ϤΤޤޤǤ褤.

ȡǽ cyrus-sasl2 Υ󥹥ȡȤԤ졤줫 postfix Υ󥹥ȡȤˤʤ. Ф餯ۤäԤȤ.

ƤФ餯ȡ

Added group "postfix".

Added group "maildrop".

Added user "postfix".

You need user "postfix" added to group "mail".

Would you like me to add it [y]?

ʹ.
ϥեȥ postfix ư̤ʥ桼 postfix mail 롼פɬפ뤬䤬äɤ? ȤǤƤޤȤȤǡ"y" Ƥ.

ޤ

Would you like to activate Postfix in /etc/mail/mailer.conf [n]?

Ȥʹ.
mail ϢΥեȥбɽȤǤ⤤٤ /etc/mail/mailer.conf 񤭴Ƥ褤? ȤʤΤϤƤʤȲؤʤΤǤ "y" ٤Ǥ.
warning.png ǥեȤ "n" ȤʤäƤΤǡΤޤ enter 򲡤ʤ褦Ĥ褦.

ʤߤˡ񤭴 mailer.conf

sendmail /usr/libexec/sendmail/sendmail

send-mail /usr/libexec/sendmail/sendmail

mailq /usr/libexec/sendmail/sendmail

newaliases /usr/libexec/sendmail/sendmail

hoststat /usr/libexec/sendmail/sendmail

purgestat /usr/libexec/sendmail/sendmail

ȤʤäƤ뤬񤭴

sendmail /usr/local/sbin/sendmail

send-mail /usr/local/sbin/sendmail

mailq /usr/local/sbin/sendmail

newaliases /usr/local/sbin/sendmail

Ȥʤ.
/usr/local/sbin/sendmail ̾ sendmail ºݤ postfix ΤΤǤ(ߴΤ sendmail Ʊ̾ˤƤ).

ơȤäƤХ󥹥ȡȤΤΤϽλ.

󥹥ȡΥå

ơ󥹥ȡ˽ФƤåտƤȡְʲκȤԤפȤ֤ȤϤפʤɤΤȻؼФƤΤʬ. դ褦ɤޤʤˤܤˤȤΤǡɤǤΥå˽.

̤ˤƤСΥե /var/log/ports/mail::postfix.log ǤΤǡɤФ褤.
warning.png Υե뤬ʤ̾㤦Ȥͤ portupgrade ιܤäƤȤȤʤΤǡλμȤλɤǼʬĴ٤ƲȤ褦.

ե뤫ޤĤå

Warning: you still need to edit myorigin/mydestination/mynetworks

parameter settings in /usr/local/etc/postfix/main.cf.


See also http://www.postfix.org/STANDARD_CONFIGURATION_README.html

for information about dialup sites or about sites inside a

firewalled network.


BTW: Check your /etc/aliases file and be sure to set up aliases

that send mail for root and postmaster to a real person, then

run /usr/local/bin/newaliases.

Ǥ.
ϡpostfix 󥹥ȡˤɤΤ褦꤬ɬפ礶äѤ˻ؼƤ.
/usr/local/etc/postfix/main.cf 񤭴衤 dialup ۥȤ firewall ¦ˤۥȤ˴ؤϤ Web 򸫤Ȥ/etc/aliases 򤳤줳ǧľ newaliases ¹Ԥ衤ȤȤƤ.

ޤΤ褦ʥåޤޤƤ.

To enable postfix startup script please add postfix_enable="YES" in

your rc.conf


If you not need sendmail anymore, please add in your rc.conf:


sendmail_enable="NO"

sendmail_submit_enable="NO"

sendmail_outbound_enable="NO"

sendmail_msp_queue_enable="NO"


And you can disable some sendmail specific daily maintenance routines in your

/etc/periodic.conf file:


daily_clean_hoststat_enable="NO"

daily_status_mail_rejects_enable="NO"

daily_status_include_submit_mailq="NO"

daily_submit_queuerun="NO"


If /etc/periodic.conf does not exist please create it and add those values.

warning.png ϽפʥåǤ.
ޤư postfix ư褦ˤˤϤɤ褤񤫤ƤꡤĤˡޤǥǥեȤѤƤ sendmail ˴ؤƤưɤߤ뤫񤫤Ƥ. տɤǤ.

ˤΥå³.

If you are using SASL, you need to make sure that postfix has access to read

the sasldb file. This is accomplished by adding postfix to group mail and

making the /usr/local/etc/sasldb* file(s) readable by group mail (this should

be the default for new installs).

ΥåΥ󥹥ȡμ

You need user "postfix" added to group "mail".

Would you like me to add it [y]?

ͳξܺ٤ʬ.
줫ǫˤ

If you are upgrading from postfix version prior to 2.0, please see the README

files for recommended changes to your configuration.

ȤåꡤŤ postfix С󥢥åפϤɤФ褤狼.

θ

This port has installed the following binaries which execute with

increased privileges.

/usr/local/sbin/postdrop

/usr/local/sbin/postqueue


This port has installed the following files which may act as network

servers and may therefore pose a remote security risk to the system.

/usr/local/libexec/postfix/nqmgr

/usr/local/libexec/postfix/qmgr

/usr/local/libexec/postfix/showq

/usr/local/libexec/postfix/master

/usr/local/libexec/postfix/error

/usr/local/libexec/postfix/scache

/usr/local/libexec/postfix/qmqpd

/usr/local/libexec/postfix/anvil

/usr/local/libexec/postfix/cleanup

/usr/local/libexec/postfix/pickup

/usr/local/libexec/postfix/discard

/usr/local/libexec/postfix/virtual

/usr/local/libexec/postfix/oqmgr

/usr/local/libexec/postfix/verify

/usr/local/libexec/postfix/spawn

/usr/local/libexec/postfix/local

/usr/local/libexec/postfix/flush

/usr/local/libexec/postfix/tlsmgr

/usr/local/libexec/postfix/bounce

/usr/local/libexec/postfix/smtpd

/usr/local/libexec/postfix/pipe

/usr/local/libexec/postfix/smtp

/usr/local/libexec/postfix/proxymap

/usr/local/libexec/postfix/trivial-rewrite

/usr/local/libexec/postfix/lmtp


This port has installed the following startup scripts which may cause

these network services to be started at boot time.

/usr/local/etc/rc.d/postfix


If there are vulnerabilities in these programs there may be a security

risk to the system. FreeBSD makes no guarantee about the security of

ports included in the Ports Collection. Please type 'make deinstall'

to deinstall the port if this is a concern.



For more information, and contact details about the security

status of this software, see the following webpage:

http://www.postfix.org/

Ȥåꡤøĥץब󥹥ȡ뤵줿ȡͥåȥϤΥץϰʲ줳ǡƥΥꥹȤʤꤦ뤳ȡƥ֡Ȼʤɤ postfix ư뤿˻Ȥ륹ץȤ /usr/local/etc/rc.d/postfix ȤȡƥΤĤηٹ𡤤 postfix ˴ؤ Web ΰʤɤҤ٤Ƥ.

¤

ơpostfix ˴ؤƺ¤Ԥ.
ΥեΥå̤ɤȤʤäƤϡ򤹤ɤΤ狼Ϥ.



ޤϡǥեȤ sendmail ˴ؤ̵ˤpostfix Ȥ褦ꤷʤ.
notes.png ˤϡե "To enable postfix startup script please ..." Ȥʬλؼ˽Ф褤. ޤϤ̤˺Ȥ褦.
warning.png sendmail_enable="NO" Ϥޤ4Ԥˤ sendmail_enable="NONE" ѤǤϤǤ. äơ¼ŪʺȤϡ/etc/rc.conf ˰Խ񤭲äס/etc/periodic.conf 4Խ񤭲äפĤǺѤϤ.
ʤperiodic.conf Ȥե뤬ʤɤ٤ˤĤƤλؼΥ˽񤫤ƤΤǤ˽



ơˡ᡼륵ФȤƺ¤(SMTP Auth SMTP over TLS/SSL ʤ)Ԥ.
/usr/local/etc/postfix/main.cf ԽǤ褤.

 cd /usr/local/etc/postfix/
 emacs main.cf

ʤɤȤԽ褦.
warning.png main.cf ΥХååפ˺ʤ褦.

notes.png ʲ˽սΤȴФ񤯤Τǡ򻲾ȤƤȤꤢԽ褦
ʤǥեͤˤʤ /usr/local/etc/postfix/main.cf.default 򸫤н񤤤ƤΤǤ򸫤褦.

myhostname = q17.cl.math.sci.osaka-u.ac.jp ʬ hostname 񤯤!

mydomain = cl.math.sci.osaka-u.ac.jp

alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

home_mailbox = Maildir/

warning.png home_mailbox ͤκǸ /(å) ˺ʤ褦. פʰ̣.
warning.png ѿΰ¸ط뤳ȤΤ main.cf κǸˤޤȤƤ񤯤ΤϤ褯ʤ. main.cf ˳ʬΤǡdzơȽ񤭹⤦.



ˡϤΥեΥå˽"root" 俷桼 "cyrus", "postfix" Υ᡼뤬μ¤ŬڤʴԤž褦ˤƤ.
notes.png Ūˤϡ/etc/aliases Խơޤ

root : (ʬΥ᡼륢ɥ쥹)

θ塤ƱեŬʾ(uucp: root β̵꤬)

cyrus: root

postfix: root

դäФ褤. ǤѹȿǤʤΤǡȿǤ뤿˼Υޥɤ¹ԤƤ.

 rehash
 newaliases

warning.png rehash Ͻפ. ʤʤ顤newaliases ޥ⿷Τ֤äƤ뤫.

ơǰΰ٥֡Ȥ褦. ꤬Ф postfix ưФϤ

postfix εưǧ

notes.png ޤ sendmail ưƤ뤫ɤåΤƱˡ postfix ưƤ뤫å褦.

ps -axuww | grep postfix

ȤơưƤ뤫,

lsof -i4 -P | grep 25

Ȥơݡ25֤ïԤƤ뤫򸫤褦.
warning.png postfix ξ硤25֥ݡȤԤƤץ master Ȥ̾.

ưƤʤ褦ʤ餳ޤǤκȤƥåưޤľ.



notes.png ưƤ褦ʤСƱͤ telnet port 25 ˥ƤߤƤɤֻ֤äƤ뤫Ƥߤ褦.

telnet localhost 25

Ȥơ

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

220 ۥ̾ ESMTP Postfix

ȽФϤʤΤǡ

EHLO localhost

ϤƤߤ褦. ȡ

250-ۥ̾

250-PIPELINING

250-SIZE 10240000

250-VRFY

250-ETRN

250-ENHANCEEDSTATUSCODES

250-8BITMIME

250 DSN

Ȥֻ֤äƤϤ(ΤȤ ^], quit ȴ).
postfix ˥᡼Τ򤷤褦ȤƤȤȤǤꡤ Ȥꤢ postfix port 25 ǤԤƤΤʬ.

notes.png Ǥϼˡʬ˥᡼ФƤߤƥå褦.
ϴñǡ̾Υ桼ˤʤäƤ

 mail -s "test" ʬΥ桼̾

Ȥơ줫鲿Ǥ⤤ΤϤ(줬᡼ʸˤʤ).
᡼ʸ򤦤ä顤֥ԥꥪɰĤΤߤʤԡפϤƽäȤˤʤꡤ᡼뤬Ǥ.
㤨С桼̾ taro ξϼΤ褦ʴ.

>mail -s "test" taro

This is a test mail.

.

EOT . ιԤϤȤå֤äƤ

Ƥ鼫ʬΥǥ쥯ȥ Maildir/new Ȥǥ쥯ȥ˹ԤäƤߤ. ե뤬С less ʤɤɤǤߤ褦.
줬ä᡼ʤСä᡼뤬̵ϤȤȤˤʤ.
㤨оΥȰʲΤ褦ʴΥեˤʤäƤ.

Return-Path: <taro@ۥ̾>

X-Original-To: taro

Delivered-To: taro@ۥ̾

Received: by ۥ̾ (Postfix, from userid 1001)

id 2F5B722865; Wed, 24 Nov 2010 21:07:14 +0900 (JST)

To: taro@ۥ̾

Subject: test

Message-Id: <20101124120714.2F5B722865@ۥ̾>

Date: Wed, 24 Nov 2010 21:07:14 +0900 (JST)

From: taro@ۥ̾ (Taro Yamada)


This is a test mail.

줬ޤäƤʤвΤǡѡ桼¤ /var/log/maillog ɤǤߤ褦. 顼нϤƤơȥ֥θϤ.

notes.png Ƽˡ¸ߤʤ桼ˡץ᡼ФƤߤơ顼֤äƤ뤫å褦.
ϾȤۤƱͤκȤǡ(ǰΰ٤̾桼ˤʤä)

 mail -s "test2" ¸ߤʤ桼̾

ȤơȤŬʸϸˡ֥ԥꥪɰĤΤߤʤԡפϤǤ.
㤨С usotaro Ȥ桼ʤȤƼΤ褦ʴ.

>mail -s "test2" usotaro

This is a test mail to nonexistent user.

.

EOT . ιԤϤȤå֤äƤ

ƤޤʬΥǥ쥯ȥ Maildir/new Ȥǥ쥯ȥ˿ե뤬ꡤ줬֤ʥ桼ʤ᡼ФʤפȤƤΥ顼᡼ä OK .
Ūˤϡξϥ᡼

This is the mail system at host ۥ̾


I'm sorry to have to inform you that your message could not

be delivered to one or more recipients. It's attached below.


For further assistance, please send mail to postmaster.


If you do so, please include this problem report. You can

delete your own text from the attached returned message.


The mail system


<usotaro@ۥ̾> (expanded from <usotaro>): unknown

user: "usotaro"

Ȥ褦ˡʥ桼ʤ衤Ȥå񤫤ƤϤ.



ϾĹʤäΤǡΤǰöƤ.

ݡ

᡼κݤˡְ(Ź沽)סSPAMкפˤĤƥФͥåȥǤǤ뤳ȤˤĤĴ٤.
ޤԤäȤˤĤ𤻤.
Ƽ

  1. °(ز)
  2. ֹ
  3. ǯ
  4. ̾
  5. οΥݡ(θȤˤĤƵŤ)

񤯤Τ˺ʤ褦.

about Icons, ClipArts

Some icons in this page are downloadable at ICONFINDER.

The "note" icon notes.png designed by Marco Martin is distributed with the LGPL licence,
the "warning" icon warning.png designed by Alexandre Moore with the GPL licence
and the "triangle" icon JNorth_arrow-right-sm.png designed by Joseph North is distributed with the Creative Commons (Attribution-Noncommercial-Share Alike 3.0 Unported) licence.

Some clip arts used in this page are downloadable at Open Clip Art Library.
We deeply appreciate their superb works. With licence, they describe that "the actual clipart content on open clipart library is Public domain" in the web.