.
[ ]   [ ]  [ ȥå | | ñ측 | ǿ | Хåå | إ ]


// author:1
***SMTPλȤߤsendmail

ߤΥ󥿡ͥåȤڤϡ󥿡ͥåȥ᡼Ѥ礭װΰĤˤʤäƤޤŻҥ᡼񤤤ܥ򲡤ȡꤷ᡼륢ɥ쥹ΰ˥᡼뤬ϤλȤߤϤɤΤ褦ˤʤäƤΤǤ礦
#ref(http://linuxexpert.ne.jp/images/mail_transfer.gif,center)

****᡼Ķǡʥץෲ
''MTA(Mail Transfer Agent)''~
᡼뤿Υץǡۥȴ֤ǤΥ᡼Ƥ᡼뵡ǽäƤޤɽŪMTPϡsendmail,qmail,Postfixʤɤޤ

''MDA(Mail Delivery Agent)''~
MTA᡼ȡƥ桼Υ᡼ܥå˥᡼ۿ뵡ǽäƤޤɽŪMDAϡmail.local,procmail,qmail-localʤɤޤ

''MUA(Mail User Agent)''~
˥桼᡼ɤ߽񤭤뵡ǽäƤޤ᡼顼Ȥ졢ɥ쥹Ģ᡼οʬǽäƤ륢ץꥱ¿¸ߤޤޤ󥿡ͥåȥ᡼λͤ˹碌ѴʤɤưŪ˹ԤޤɽŪMDAϡBecky!,Outlook Express,Eudora,Muleʤɤޤ


****᡼ץȥ
''SMTP(Simple Mail Transfer Protocol)''~
MTAƱΤǥ᡼ꡢMUAMTAإ᡼뤿ΥץȥǤSMTP2ĤΥ᡼롦ƥबɤΤ褦ä뤫ꤷ᡼뤿åեޥåȤƤޤ̾TCPݡ25֤Ѥޤ

''POP(Post Office Protocol)''~
᡼륵Ф˥ס뤵줿᡼򥯥饤Ȥ˼िΥץȥǤPOPǤϥ桼ǧڤ˴ؤޤߤޤޤPOPˤ POP2,POP3ʤɤΥС󤬤ޤǶǤPOP3Ѥ뤳ȤŪǤPOP3̾TCPݡ110֤Ѥޤ

''IMAP(Internet Message Access Protocol)''~
POP饤¦˥åɤ饤ȤǥåδԤΤФIMAPϥ¦ǥåδԤ饤¦ϤԤȤǤޤIMAPˤС󤬤ꡢIMAP4ϸߤǤĥ³ƤޤIMAP4̾ TCPݡ143֤Ѥޤ

****SMTPΥޥɤȱ
SMTPλͤϡRFC821ǵʲƤꡢ˰ĥơ8bitǡǽˤꡢåΥͥǽˤꤷΤ RFC16511653ǵʲƤޤʸԤγĥͤESMTPȸƤФˡSMTPǤϡ¦륳ޥɤ䡢¦αϤ٤ƥƥȥ١ΤΤǡʸκǸCR LFդ롣ޥɤȤαꤷʤ顢åԤޤ

SMTPǤδŪʥåžμϼΤ褦ˤʤޤ
-³򳫻Ϥ
-HELOץޥɤꡢå򳫻Ϥ
-MAILץޥɤꡢ᡼ԤΤ
-RCPTץޥɤꡢ᡼μԤΤ
-DATAץޥɤꡢåϤΤ
-褫ǧ夷顢ºݤ˥å򳫻Ϥ
-CR LF.CR LFס2ĤCR LFδ֤˥ԥꥪɤˤꡢžåλȤΤ
-QUITץޥɤꡢåλ

****SMTPޥ
HELO : HELO <SP> <domain> <CRLF>
̣ : ³γΩ
MAIL : MAIL <SP> FROM:<reverse-path> <CRLF>
̣ : ȯԤλ
RCPT : RCPT <SP> TO:<forward-path> <CRLF>
̣ : Ԥλ
DATA : DATA <CRLF>
̣ : ʸ
RSET : RSET <CRLF>
̣ :
SEND : SEND <SP> FROM:<reverse-path> <CRLF>
̣ : ȯԤλ
SOML : SOML <SP> FROM:<reverse-path> <CRLF>
̣ : ȯԤλ
SAML : SAML <SP> FROM:<reverse-path> <CRLF>
̣ : ȯԤλ
VRFY : VRFY <SP> <string> <CRLF>
̣ : Ԥγǧ
EXPN : EXPN <SP> <string> <CRLF>
̣ : ᡼󥰥ꥹȤβɥ쥹׵
HELP : HELP [<SP> <string>] <CRLF>
̣ : إץå׵
NOOP : NOOP <CRLF>
̣ : ߡޥ
QUIT : QUIT <CRLF>
̣ : νλ
TURN : TURN <CRLF>
̣ : 饤ȤȥФεž

****SMTP
211 System status, or system help reply
214 Help message
إץå
220 <domain> Service ready
λ
221 <domain> Service closing transmission channel
³Ĥ롣
250 Requested mail action okay, completed
׵ᤵ줿ϼ¹Բǽλ
251 User not local; will forward to <forward-path>
Ԥ¸ߤʤΤ[forward-path]ž롣
354 Start mail input; end with <CRLF>.<CRLF>
᡼ϳϡϽλϡ.פΤߤιԤ
421 <domain> Service not available,closing transmission channel
ӥǽ³Ĥ롣
450 Requested mail action not taken: mailbox unavailable
᡼ܥåѤǤʤᡢ׵ᤵ줿ϼ¹ǽ
451 Requested action aborted: local error in processing
˥顼ȯ׵ᤵ줿ϼԡ
452 Requested action not taken: insufficient system storage
֤ζΰ褬Խʬʤᡢ׵ᤵ줿ϼ¹ǽ
500 Syntax error, command unrecognized
ʸˡ˴ְ㤤뤿ᡢޥɤǤʤ
501 Syntax error in parameters or arguments
ʸˡ˴ְ㤤롣
502 Command not implemented
ؼ줿ޥɤϤΥƥˤϼƤʤ
503 Bad sequence of commands
ޥɤȯԽְäƤ롣
504 Command parameter not implemented
ޥɤΰ̤
550 Requested action not taken: mailbox unavailable
᡼ܥåѤǤʤᡢ׵ᤵ줿ϼ¹ǽ
551 User not local; please try <forward-path>
Ԥ¸ߤʤ[forward-path]衣
552 Requested mail action aborted: exceeded storage allocation
ǥ­Τᡢ׵ᤵ줿ϼ¹ǽ
553 Requested action not taken: mailbox name not allowed
᡼ܥå̾Ŭڤʤᡢ׵ᤵ줿ϼ¹ǽ
554 Transaction failed
ԡ


****᡼إåȥ٥
᡼뤬ϤΤϤʤǤ礦 MUA(᡼顼)ǥ᡼˰(Toإå)ꤷޤʣͤꤷƥ᡼뤳ȤǽǤ 2ͤƱͤΥ᡼ȸȤϡɤǥ᡼뼫Τԡ2Ĥʬޤ᡼󥰥ꥹȤѤƤ硢To:إå᡼󥰥ꥹȤΥɥ쥹Ǥˤ⤫餺ʬȤ˥᡼뤬ϤΤϡ٥פεǽ򤹤ɬפޤ

''ʥ᡼إå''
From: пͥɥ쥹
Sender пͥɥ쥹Τʾ˺пͤ
To: 襢ɥ쥹
Cc: ܥ󥳥ԡ
Reply-To: ֿ襢ɥ쥹
Message-Id: 5ǯָͭΥåID
Subject: ȥʷ̾
Return-Path: 顼ֿ襢ɥ쥹
Date: л
Received: ϩ
In-Reply-To: ɤΥ᡼ֿ򼨤
References ɤΥ᡼ֿ򼨤
Precedence: ͥ
X-Mailer: ᡼MUA̾

''٥פȤ''~
Ū˥᡼λȤߤ͹ؤˡ᡼뼫Τ㤨ޤ˽񤯰(̾)ϡ᡼֤ȥإåǤϤʤ٥פȸˤʤޤ٥פˤΰ衢ȯԤΥɥ쥹ʤɤƤꡢ˵ҤƤ󤬼ºݤMTAˤ᡼ۿ˻ȤƤޤ٥פϥ᡼顼ɽǤإåȤϰۤʤꡢ̾뤳ȤǤޤ

#ref(http://linuxexpert.ne.jp/images/envelope.gif,center)


****sendmailˤSMTPФα
sendmailϺǤͭ̾MTA1ĤǤ sendmailϡsendmail.cf˵Ҥޤsendmail.cfեľܵҤ뤳Ȥϳ̵ȸäɤǤ礦 sendmail-8.9.3ޤǤΥСǤϡWIDEץȤΡCFפȸƤФ륳ե졼ġܤǤϤ褯ѤƤޤߤǤϡsendmail°եȤǤ롢M4ȸƤФޥץåȤäꤹ뤳ȤŪˤʤäƤޤ

''sendmailݥꥷ''
-ľ졼MTAؤ sendmail.mc
-᡼顼(MDA)ϲȤ sendmail.mc
-٤ɥᥤ local-host-names
-졼Ĥ٤ access
-ä᡼žaliases

''Ѥ''~
Ѥ¤ϡ/etc/mail/access եѤ̾롼ꤷޤŪˤϡץ饤١ȥͥåȥΥ졼ΤߤĤޤл䳤⼫Ȥ MTAѤ硢ǧڤ뤳Ȥǥ졼ĤȤߤޤ
-POP before SMTP
>̾SMTPˤϥ桼ǧڵǽ̵ᡢPOPǧڤơǧڤ硢Ū褦ȤƤIPɥ쥹Υ졼ĤȤߤǤ sendmail.mc εҤɲäPOP3Ф qpopperѤ뤳ȤǼ뤳ȤǤޤ
-SMTP AUTH
>sendmail 8.10ʹߤǤϡSASL١ˤRFC2554ƤSMTP AUTH򥵥ݡȤƤޤ sendmailκƥѥȡCyrus-sasl饤֥Ѥ뤳ȤǼ뤳ȤǤޤ

''sendmailεưץ''~
褯Ȥ뵯ưץϼΤȤǤ
|B:1,0||c
|bd|sendmailǡȤƼ¹|
|bi|aliasesκƹۡnewaliasesޥɡ|
|bv|٥ե⡼ɤǼ¹|
|bp|᡼륭塼ίޤäƤ᡼ɽ|
|d1h|1h()˥᡼륭塼ν()Ԥ|
|q|ľ˥᡼륭塼νԤ|


''MSPˤ륻ƥ''~
sendmailϡС8.12ʹߤ饻ƥȤơsendmailMTAεǽMSPMail Submission Programˤεǽ򥢥ץꥱȤʬΥޤ륵Ф᡼Ѥޤ sm-clientȸƤФ졢submit.cfեˤ椵ޤޤsm-clientư桼ϡsmmspפȤƱѤޤ
#ref(http://linuxexpert.ne.jp/images/sm-client.gif,center)

  ʬ եź źեե   Wikiȥå ǽ Хåå   إ   ǽRSS
Expert Menu
ǿ
2018-4-23 2016-7-19 2016-5-31 2016-4-12 2016-4-5 2016-3-28 2016-3-10 2015-8-7
ʤ
Yahoo Japan
̤
ͧͤʹ
URLΤäƤ
¾Ȥ
ǿСγǧ

Linuxexpert is one of the service presented by InfomationSquare. / OmakaseBlog Login  |  Register Now!