ã¨ã©ã¼ã¡ã¼ã«ã®å¦ç
mailéä¿¡ç³»ãä½æããéã«éè¦ãªã®ã¯ã¨ã©ã¼ã¡ã¼ã«ã®å¦çâ¦ã¨ãããæ£ç¢ºã«ã¯ãå±ããªãã¢ãã¬ã¹ã®æé¤ãã«ããã¢ãã¬ã¹ãªã¹ãã®æ¸
æµåããªã®ã§ããã
ã¨ãããããã£ããã¨ãã¤ã³ããã
ã¾ãã¯ãã¨ã©ã¼ã¡ã¼ã«ãåãåããããã«ãããã¨ãã
æ®éãSMTPã¬ã¤ã¤ã¼ã§çªã£è¿ãããããã«ã以ä¸ãé©åã«è¨å®ãã¦ããã®ãæå¹ã§ãã
ã»SMTPã¬ã¤ã¤ã¼ã®ãMAIL_FROMã«æå®ããã¡ã¢ã
ã»mailã¡ãã»ã¼ã¸ã®ä¸ã®mail headerã®Return-Pathã«æå®ããã¡ã¢ã
é©åãªã¡ã¢ããè¨å®ãããããåä¿¡åºæ¥ãããã«ãã¦ããã¾ãããã
次ã«ããã®mailãå¦çãããã£ãããä½ãã¾ãã
ããã¾ããcronã§POP3ãã100%å¦å®ããããã§ã¯ãªãã®ã§ãã(ã¨ã¯ãã99.999%ã¾ã§ã¯å¦å®ãã¾ã B-p)ãåºæ¬ã¯ã/etc/aliasesã«ãããè¨å®ãã¦ããããããã¨ããã®ãå®çªã§ãã
ç¥ã£ã¦ããéãã§ã¯å
¨ã¦ã®smtpdã対å¿ããã¦ãã¾ããã¡ãªã¿ã«mail stringã¯stdinããå
¥ã£ã¦ããã®ãã»ã¨ãã©ã§ãããä¸å¿ç¢ºèªã¯ãã¦ããã¾ãããã
ããã«æ¬¡ã«ãã©ãå®ã®mailã§ã¨ã©ã¼ã£ããããããããããã°ã©ã ããå¤æãã¾ãã
åé¡ã¯mail bodyã®æ¸å¼ã¯è²ã
ã¨å ´æã«ãã£ã¦ç°ãªãã®ã§ãã¾ãã¯æ£è¦è¡¨ç¾ã§emailã¢ãã¬ã¹ã¨ãã¼ããã¢ããåãåºãããã®ä¸ãããæããã«ãµã¼ã管çè
ç¨ãã¨èããããã¡ã¢ããé¤å¤ããã¦ã¼ã¶ã®emailã¢ãã¬ã¹ãæ¨æ¸¬ããå¿
è¦ãããã¾ãã
â¦ãªãã¦ããåãä¿¡ãã¦ãã¨çãç®ã«ããã¾ãã®ã§æ°ãã¤ãã¾ããã(ããç¾å ´ã§æã
è³ã«ããã®ã§ãããã¸ã§)ã
çµè«ããæ¸ãã¨ãVERP(variable envelope return pathï¼å¯å¤ã¨ã³ããã¼ããªã¿ã¼ã³ ãã¹)ã使ãã¾ãããã
ãã©ã¼ãããã¯ãããªæãã
[email protected]
ããã§ãsmtpå´ãé©åã«è¨å®ããã㨠[email protected] ã«mailãå±ãã¾ããã§ããããã§ããã¯ã
ããå®éã«postmasterã£ã¦ã®ã¯è¥å¹²ã©ããã¨æãã®ã§ããã®è¾ºã¯é©å®ãããã¡ãã好ããªã®ã¯ error_mail@ãããããããã§ããï¼ï½
ãã¤ã³ã㯠[email protected] ã®ãã¡
ã»ï¼ã®é¨å
ã»user=domainã®é¨å
ã®ï¼ã«æ
ï¼ã®é¨åã¯ãã¡ã¼ã«ãµã¼ãã¨ãã®è¨å®ã«åããã¦ãï¼ã¾ãã¯âãé¸ã³ã¾ããããqmailã¯ã©ã£ã¡ã ã£ãããªï¼ postfixã¯ãããã©ã¯ã©ã£ã¡ãã ãã©ãè¨å®ã§ã©ã¡ãã«ãåããã¯ããsendmailã¯â¦ãªããå°ç´°å·¥ãå¿
è¦ã ã£ããããªãè¨æ¶ããæãã¦ã(è¦ç¬)ããã ãä¸å¯è½ã§ã¯ãªãã®ã¯ããã£ãè¨æ¶ããããã«ã¨ã¯ãããããããééããªãã
user=domainã®é¨åã¯ãéä¿¡ã¦ã¼ã¶ã®ã¡ã¢ãããï¼ ãï¼ã«ç½®æãã¦ããã®ããã¤ã³ãã ãã
ããã§é©å®ãéããªãæã«ã¨ã©ã¼ã¢ãã¬ã¹ãã¨ãã¦ææ¡ããã¦ããã¨ãè²ã ã¨ãªã¹ããæ±ããã«æ¸ãã§ã¨ã©ã¼ã¢ãã¬ã¹çãä¸ããããè²ã ã¨å®å¿ãªãã ãã¹ãã£ã¼ã*1ã
ãã£ããæ¸ãããã©ã詳細ã¨æè¡èæ¯ãå¿ è¦ãªã¨ãã¯ã³ã¡ã³ããªã©ãã ããã¾ããä»åº¦è¿½è¨ãã¾ããã§ã
*1:å¤ã