WindowsLiveMailã«ã¦ãSMTPéä¿¡ãã§ããªãã¨ããäºä¾ãçºçã åä¿¡ã¯ã§ããããéä¿¡ã®èªè¨¼ã«å¤±æãã¦ãã¾ãã
追è¨ããã解決ãããã§æå¾ã¾ã§èªãã§ãã æè¿ããã¤ãã®ãã¡ã¤ã³ã§SSLãµã¼ã証ææ¸ãåã£ãã®ã§æè§ãªã®ã§Postfixã«ãè¨å®ãã¦ã¿ããã¨æã£ãã®ãå§ã¾ãã§ãæ¹ã㦠TLS_README ã¨ããè¦ãªãããã«ããã¹ãåã®SSLè¨å®æ¹æ³ãæ¢ãã¦ã¿ããã ãã©ãã«ãè¦ã¤ãããªããï¼ é常ã®TLSå©ç¨æ¬¡ã«è¡ã smtpd_tls_cert_file ã smtpd_tls_key_file ã®è¨å®é ç®ã«å¯¾ãã¦ãsmtpd_tls_key_file_mapsãsmtpd_tls_key_file_mapsã¨ããããããããªããã¨æã£ã¦ããã ãã©ãã«ãè¦å½ãããªããsmtp_tls_per_site ã¨ãsmtp_tls_policy_mapsã¨ãsmtp_tls_fingerprint_cert_matchã¨ãä½ãããã£ã½ãååã®è¨å®é ç®ãè¦ã¤ããããã©ããããããã¯æ¥ç¶å ã®è¨¼ææ¸ã®å¦¥å½æ§ãã§ãã¯ã®
HELO EHLOã«ãããSMTPãµã¼ãã¯SMTPã¯ã©ã¤ã¢ã³ããèå¥ãããããã®ã¯ã©ã¤ã¢ã³ã ããã®SMTPãµã¼ããå©ç¨ã§ãããªãã°ã»ãã·ã§ã³ãéå§ããããããã«å¯¾ãã¦ã SMTPãµã¼ãã¯å¿çã³ã¼ã250ã§ä»¥ä¸ã®æ å ±(æ®éè¤æ°è¡)ãè¿ã(ã°ãªã¼ãã£ã³ã°)ã ãªããSMTPãµã¼ãã¯ãå®éã«ã¯TCP/IPæ¥ç¶ã®IPã¢ãã¬ã¹ãªã©ã®æ å ±ããã¯ã©ã¤ã¢ ã³ããèå¥ãã¹ãã§ããã ãµã¼ãèªèº«ã®åå(FQDN) ãã®ãµã¼ãã§å©ç¨ã§ããæ¡å¼µãµã¼ãã¹ ã¯ã©ã¤ã¢ã³ãã¯ãåºæ¬ã³ãã³ãã«å ãã¦ãããã§ãµã¼ãããè¿ãããæ¡å¼µã³ã ã³ããå©ç¨ãããã¨ãã§ããããã以å¤ãå©ç¨ãã¦ã¯ãªããªãã ãªããæ¡å¼µãµã¼ãã¹ã«ã¤ãã¦ã¯ãã¡ããåç §ã® ãã¨ããªããããã§è¡¨ç¤ºãããã®ã¯ãæ¡å¼µãµã¼ãã¹ã®å称ãã³ãã³ãåã§ã¯ãª ããæ¡å¼µãµã¼ãã¹ã«é¢é£ããEHLOãã¼ã¯ã¼ãã¨å¼ã°ãããã®ã§ãã (æ¡å¼µãµã¼ãã¹è¡¨ã«ã¯EHLOãã¼ã¯ã¼ãã¨è¡¨è¨)ã
cles::blog 平常å¿æ¯é blogs: cles::blog NP_cles() « UQ WiMAXã®ã¹ãã¼ãæ¯ã¹ã»èµ¤åï½èµ¤åè¦éç·¨ :: UQ WiMAXã®ã¹ãã¼ãæ¯ã¹ã»è±æ´²ç·¨ » 2009/03/11 æ¬å½ã«ãã使ããããã¼smtpãµã¼ãã¼Â linux python sh 373 2ã¸ã 以åã«3è¡ã§ã§ããããã¹ãç¨ã¡ã¼ã«ãµã¼ãã¨ãã話ãããã¾ããããå®éã«ãã¹ããµã¼ãã«å°å ¥ãã¦ä½¿ããã¨æã£ããããµã¼ãããªãã¼ãããã¨ãã§ã大ä¸å¤«ãã¨ããããããã¨èããªããã°ãããªããã¨ãå¤ãã£ãã®ã§ãinit.dã«æ¾ãè¾¼ãã ãã§ä½¿ãããããªã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ããã â å®éã®ã³ã¼ã ã¹ã¯ãªããã/etc/init.dã®ä¸ã«æ¾ãè¾¼ãã§ãchkconfig --add dummysmtpãã¦ããã¨èªåèµ·åã§ãã¾ãããã°ã¯ããã©ã«ãã§ã¯/dev/nullã«æ¨ã¦ã¦ãã¾ãããã«ãªã£ã¦ãã¾ã
ã¡ã¼ã«é ä¿¡ã絡ãã·ã¹ãã ã ã¨å°ãã®ãé ä¿¡æã®ãã¹ãã æ¬çªæã®ãã¼ã¿ã§ãªãã¨æ¤è¨¼ãé£ãããã§ã誤ã£ã¦é ä¿¡ããããå°ãããã ãããªãã¨ã§æ©ãã§ã¦ãããã¼ã®SMTPãç«ã¦ããã¨ããçµè«ã«ãªã£ãã ããã§èª¿ã¹ãã¨ãPythonã使ã£ã¦3è¡ã§å®ç¾ã§ããããã ï¼ http://blog.cles.jp/item/2683 ãã°ããããæ©éãã£ã¦ã¿ããã linuxç°å¢ã«ç«ã¦ããã®ã§ãã¾ãPythonã®ã¤ã³ã¹ãã¼ã«ã # yum install python ã§ãä¸è¨ã§ç´¹ä»ããã¦ãããã¡ã¤ã«ãä½æã # vi dummySmtp.py import asyncore, smtpd smtpd.DebuggingServer(('localhost', 25), None) asyncore.loop() (ã¤ã³ãã©ãããå ããæ¥ç¶æãªã©ã¯ãlocalhostã®é¨åããã©ã¤ãã¼ãIPã«æ¸ãæããªã©é©ã
PHPã¡ã¼ã«éä¿¡ã«ã¯ä¸»ã«3éã PHPã§ã¡ã¼ã«éä¿¡ããå ´åã«ã¯ãããã¤ãã®æ¹æ³ãããã¾ãã PHPã®mailé¢æ° PHPè¨ç½®ãµã¼ãã¼ã®sendmailãç´æ¥æä½ ä»ã®SMTPãµã¼ãã¼ããéä¿¡ ã©ã¡ãã«ãããæçµçã«ãã¹ã¦sendemail*1ãããããã¾ããSMTPãµã¼ãã¼ã®æ£ä½ã¯ãä»ã®ãµã¼ãã¼ã§åãsendemailã ã£ããããããã§ãããã ã§ããªã¼ã«ãã¤ãã£ãªã®ã¯ãSMTPéä¿¡ã§ãã RFCã§è¦æ ¼ãå®ãããã¦ãããä¾ãã¡ã¼ã«ãµã¼ãã¼ãsendmailã§ãªãã¦ããè¦æ ¼éãã«éä¿¡ãã§ãã¾ãã é¢ããå¥ã®SMTPãµã¼ãã¼ã使ããã®ã§ãPHPã®mailé¢æ°ãPHPè¨ç½®ãµã¼ãã¼ã«sendmailããªãã¦ããã¡ã¼ã«ãéä¿¡ãããã¨ãã§ãã¾ãã SMTPãµã¼ãã¼ã¯ãä¾ãã°ãèªåã使ç¨ãã¦ãããããã¤ãã®éä¿¡ãµã¼ãã¼ã使ããããä»ã«åãã¦ããã¬ã³ã¿ã«ãµã¼ãã¼ããã¡ããèªåè¨ç½®ã®éä¿¡ãµã¼ãã使ãã¾ãã
postfixãqmailãªã©ã¯å ¥ããããªããã©ãsendmailç¸å½ã®ãã®ã使ã£ã¦ã¡ã¼ã«ãéãããæã«ä¾¿å©ãªMSMTPã試ãã¦ã¿ãã ãã®è¨äºã§ã¯ãå®éã®å°å ¥ããgmailã®ã¢ã«ã¦ã³ããå©ç¨ãã¦MSMTPã§ã¡ã¼ã«ãéãæ¹æ³ãæ¸ãã ã¤ã³ã¹ãã¼ã« MacOSXã ã¨homebrewããã¤ã³ã¹ãã¼ã«ã§ãããdebianãubuntuã ã¨aptitudeããã¤ã³ã¹ãã¼ã«ã§ããã $ brew install msmtp$ aptitude install msmtp次ã«ä»¥ä¸ã®ãããªè¨å®ãã¡ã¤ã«ã~/.msmtprcã«ç½®ãã account default host smtp.gmail.com port 587 user hoge@gmail.com password hogehoge from hoge@gmail.com tls on tls_starttls on tls_certchec
ã¡ã¼ã«ãµã¼ãã¼ãæ§ç¯ããå ´åãéä¿¡ã¡ã¼ã«ãµã¼ãã¼(SMTPãµã¼ãã¼)ã¨åä¿¡ã¡ã¼ã«ãµã¼ãã¼(POP/IMAPãµã¼ãã¼)ã®æ§ç¯ãå¿ è¦ã¨ãªãã ããã§ã¯ãéä¿¡ã¡ã¼ã«ãµã¼ãã¼ã«ã¯Postfixãåä¿¡ã¡ã¼ã«ãµã¼ãã¼ã«ã¯Dovecotãæ¡ç¨ããã ãªããPostfixã¯è¿·æã¡ã¼ã«ã®ä¸æ£ä¸ç¶ã«å©ç¨ãããªãããã«ãããããåæè¨å®ã§ã¯å¤é¨ããå¤é¨å®(ä¾ãã°ãä¼ç¤¾çã§èªå® ãµã¼ãã¼ã®ã¡ã¼ã«ã¢ãã¬ã¹ãããããã¤ãã®ã¡ã¼ã«ã¢ãã¬ã¹å®)ã«éä¿¡ã§ããªãããã«ãªã£ã¦ããããè¿·æã¡ã¼ã«ã®ä¸æ£ä¸ç¶ã«å©ç¨ãããã«å¤é¨ããå¤é¨å®ã«éä¿¡ã§ããããã«ãããããSMTPèªè¨¼æ©è½â»ãæå¹ã«ããã ã¾ããDovecotã¯POP/IMAPãµã¼ãã¼ã¨ãã¦æ§ç¯ããã¦ã¼ã¶ã¼ãPOPã¾ãã¯IMAPãé¸æã§ããããã«ãããâ»POPã¨IMAPã®éã â»SMTPèªè¨¼æ©è½ã¨ã¯ãã¡ã¼ã«éä¿¡æã«ã¦ã¼ã¶ã¼åã¨ãã¹ã¯ã¼ãã§èªè¨¼ãè¡ãªãæ©è½ã§ãããããã«ãããè¿·æ
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}