FreeBSDã®sendmailã®æ¯ã®æ ¹ãæ¢ããã«ã¯ã
èªå® ãµã¼ãã®sendmailã¯æ£ç´ä¸è¦ã§ããã¨æããã¨ã¯ãã°ãã°ã
ã¦ã£ã¨ãæ©ãçµè«ãè¨ãã°ã以ä¸ã/etc/rc.confã«è¿½è¨ããã°ããããªãããsendmail_enable = "NONE"ãã¯ãã使ããã¦ããªãã®ã§æ³¨æã詳細ã¯å¾è¿°ã
/etc/rc.confã¸ã®è¿½è¨
sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO"
ããããhandbook 29.4.2 Disable sendmail ã«è¨è¼ã®éãã以ä¸ã®æ¸å¿µããã(2012/3/1)ã
Warning: ãããã®æ¹æ³ã§ sendmail ã®ã¡ã¼ã«éä¿¡æ©è½ãç¡å¹ã«ããã®ãªãã å®å ¨ã«åä½ãã代æ¿ã¡ã¼ã«é éã·ã¹ãã ã¨ç½®ãæãããã¨ãéè¦ã§ãã ãããªããã°ãperiodic(8) ãªã©ã®ã·ã¹ãã æ©è½ã¯ã ãããã®çµæãé常æ³å®ãã¦ããããã«ã¡ã¼ã«ã§é éãããã¨ãã§ããªããªãã§ãããã
ã·ã¹ãã ã®å¤ãã®é¨åã sendmail äºæã®ã·ã¹ãã ããããã¨ãæ³å®ãã¦ããããããã¾ããã ããããããç¡å¹ã«ããå¾ã«ã ã¢ããªã±ã¼ã·ã§ã³ãã¡ã¼ã«ãéããã¨ããããã« sendmail ã®ãã¤ããªã使ç¨ãç¶ããã°ã ã¡ã¼ã«ã¯ä½¿ããã¦ããªã sendmail ã®ãã¥ã¼ã«å ¥ããããã¦æ±ºãã¦é éãããªãã§ãããã
ã¤ã¾ãrootçã«éãããreportãsendmailã®ãã¥ã¼ã«ãã¾ãç¶ããã
ï¼ãªããæ¥æ¬èªçhandbookã¯ã©ããã¦ãå¤ããªããã¡ãªã®ã§ãåçã確èªãããã¨!ï¼
FreeBSDã®ãã¼ã¹ã·ã¹ãã ãéãã¡ã¼ã«ãªããperiodicããããä¿®æ£ããã°ããã ããããportsãªã©ããã¤ã³ã¹ãã¼ã«ããã½ããã¦ã§ã¢ã®ãã¨ãèããã¨ããããªãã
sendmailãåãããããªãç®çã«ãããããç¾å®çãªã¨ããã§ã¯å¤é¨ããã®smtpæ¥ç¶ãç¡å¹ã«ããã ãã§ããã ããã
ããããå ´åã®å¥ã®æ¸å¿µã¨ãã¦ã¯ãæå³ããã«èªãµã¼ããå¤é¨ã¸ã®smtpæ¥ç¶ã試ã¿ããã¨ãããã«è¨ãã°ãããããªã¡ã¼ã«ããã©æããã¨ãããã¨ã ã
ããä»®ã«å¤é¨ã¸ã®smtpæ¥ç¶ãç¡å¹ã«ãããã¨ããrc.confã®è¨å®ã ãã§ã¯ã§ããªãããã ãããã«ã¤ãã¦ã¯æ¹ãã¦èããã
å¤é¨ããã®smtpæ¥ç¶ãåãä»ããªãå ´åã«ã¯ã/etc/rc.confã«ä¸è¨ã追å ããã°ããããã¤å°ãªãã¨ã9.0ã8.2ã§ã¯ããã©ã«ãè¨å®ã ã
/etc/rc.confã§ã®å¤é¨ããã®smtpæ¥ç¶ãåãä»ããªãè¨å®
以ä¸ã®ã¿ã/etc/rc.confã«è¿½è¨
sendmail_enable="NO"
ãªããä¸è¨ã¯ããã©ã«ã
$ uname -v FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:07:27 UTC 2011 [email protected]:/usr/obj/usr/src/sys/GENERIC $ grep sendmail_enable /etc/defaults/rc.conf sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO).
ãåèã以ä¸ã¯ãã使ããã¦ããªãã®ã§æ³¨æã
sendmail_enable = "NONE"
man rc.sendmailãã
sendmail_enable ï¼ä¸ç¥ï¼ The ``NONE'' option is deprecated and should not be used. It will be removed in a future release.
ããã«kwsk
FreeBSDã«ãããsendmailèµ·åã®è¨å®ã¯ã以ä¸ã®å¤æ°ã«YES/NOã代å
¥ãããã¨ã§è¡ãã
使ãæ¹ã¯rc.sendmail(8)ã«è¨è¼ããã¦ããã
sendmail_enable= sendmail_submit_enable= sendmail_outbound_enable= sendmail_msp_queue_enable=
ãããã¯æåã®3ã¤ã¨1ã¤ã«åãããã
æåã®3ã¤ã¯ã»ããã«ãªã£ã¦ãããä¸ã¤ç®ãYESã®å ´åã¯æ®ãäºã¤ãåç
§ãããªãã
ä¸ã¤ç®ãNOã§ãäºã¤ç®ãYESã®å ´åã¯æå¾ã®ä¸ã¤ãåç
§ãããªãã
ãããã£ã¦ã3ãã¿ã¼ã³ã®è¨å®ãã§ãããã¨ã«ãªããåãã¿ã¼ã³ã«ã¤ãã¦èª¿ã¹ãçµæã¯ä»¥ä¸ã®éãã
ã»ãã¿ã¼ã³1: ããã©ã«ã
å¤é¨ããã®smtpæ¥ç¶ãåãä»ããªãã
å
é¨ããã®smtpæ¥ç¶ã¯åãä»ããå¤é¨ã¸ã®éä¿¡ã¯å¯è½ã
sendmail_enable="NO" sendmail_submit_enable="YES" sendmail_outbound_enable="YES"
ã»ãã¿ã¼ã³2:
å¤é¨ãå
é¨ã¨ãã«smtpæ¥ç¶ãåãä»ããªãã
ã¤ã¾ãrootçã«éãããreportãå±ããªããªãã
ãã ã¡ãã£ã¨åãããªãã®ã¯ãã"local mail queue management"ãæä¾ãããã¨manã«ã¯è¨è¼ããã¦ããã®ã ããå¤é¨ãå
é¨ã¨ãã«smtpæ¥ç¶ãåãä»ããªãç¶æ
ã§ã®local mail queueã¨ã¯ãã£ãããªãã ããããä¸å¿ããã®ç¶æ
ã§ã¯root権éã§sendmailããQueue runnerãã¨ãã¦èµ·åããã
sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="YES"
ãã¿ã¼ã³3:
ãã®ç¶æ
ã§ã¯root権éã®sendmailã¯ä¸åèµ·åããªãã
sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO"
ä¸è¨ãå¥ã®å½¢ã§è¡¨ç¾ããã°ä»¥ä¸ã®éããï¼rc.sendmail(8)ããå¼ç¨ï¼
# MTA if (${sendmail_enable} == NONE) # Do nothing else if (${sendmail_enable} == YES) start sendmail with ${sendmail_flags} else if (${sendmail_submit_enable} == YES) start sendmail with ${sendmail_submit_flags} else if (${sendmail_outbound_enable} == YES) start sendmail with ${sendmail_outbound_flags} endif # MSP Queue Runner if (${sendmail_enable} != NONE && [ -r /etc/mail/submit.cf] && ${sendmail_msp_queue_enable} == YES) start sendmail with ${sendmail_msp_queue_flags} endif
ãªããsendmail_msp_queue_enableã¯ãsmmsp権éã§åãQueue runnerã®åä½ã¹ã¤ããã
NOãæå®ããã°èµ·åããªãã