cd /etc/opendkim/keys/ mkdir example.com cd example.com opendkim-genkey -d example.com -s selector chown opendkim:opendkim * chmod 440 *.private
cd /etc/opendkim/keys/ mkdir example.com cd example.com opendkim-genkey -d example.com -s selector chown opendkim:opendkim * chmod 440 *.private
Postfix Advent Calendar 2014 ã® 3æ¥ç®ã®è¨äºã§ãã IPv6 ã¯æ¥å¹´ã§ 20æ³ãããã§ãã (RFC 1752)ã ä»å㯠IPv6 20å¨å¹´ãè¨å¿µãã¦ãPostfix 㧠IPv6 ãç¡å¹åããæ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¾ãããã ç¾ä»£ã® Postfix ã¯ãããã©ã«ã㧠IPv6 ãæå¹ã§ãã ãã¹ã OS ã IPv6 æå¹ã§ DNS ã®åå解決ã®çµæ IPv6 ã¢ãã¬ã¹ãå¾ãããã° IPv6 ãå©ç¨ãã¾ãããIPv4 ã¨ä¸ç·ã«å¾ãããå ´åã§ãããã©ã«ã㯠IPv6 ãåªå ããã¾ãã ãããæ²ããããªãIPv6 ã®æ®åã¯ãã¾ã å åã§ã¯ããã¾ããããIPv4 ã¨äºææ§ãããã¾ããã IPv6 ã«ãã£ã¦åé¡ãçºçãããã¨ãããã¾ãã ãã¨ãã°ãIPv4 ã¯åé¡ãªãã¦ããIPv6 ã§åé¡ãæ±ãã¦ããç°å¢ãããã¾ãã IPv6 ãããã¯ã¼ã¯ãã¤ã³ã¿ã¼ãããã«ç¹ã£ã¦ããªã
è¿·æã¡ã¼ã«å¯¾çã«postgreyãå°å ¥ãã¦ã¿ã¾ãã。 CentOS 7ã§ã¯epel repositoryãã¤ã³ã¹ãã¼ã«ããã°yumã§ç°¡åã«ã¤ã³ã¹ãã¼ã«ã§ãã¾ã。 Postgrey â Postfix Greylisting Policy Server https://postgrey.schweikert.ch/ Postfix + postgrey ã使ã£ãã°ã¬ã¤ãªã¹ãã£ã³ã°ã§ã¹ãã 対çããã¦ã¿ã http://server-setting.info/centos/postfix-postgrey-spam-setting.html åä½ã¨ãã¦ã¯åãã¦ã®ã¡ã¼ã«ãµã¼ãããã®è¦æ±ã¯ã°ã¬ã¤ãªã¹ãã«ç»é²ãã¦ï½¤åä¿¡æå¦(code=450)ãã¾ã。é常ã¯ãã®å¾åéãã¦ããã®ã§ï½¤ãã®æã«åä¿¡å¦çãè¡ããã¾ã。 ã¹ãã ã¡ã¼ã«ã®éä¿¡è ã¯æ®ã©åéããªãã®ã§ãããã¯ã§ããã¨ã®ãã¨ã§ãã、ç¸æãåéããã¾ã§åä¿¡
æè¿ãNinja650ã«ä¹ãæããSREãã¼ã ã®è åã§ããä»ã¾ã§ãã«ãã°ããä¹ã£ã¦ãããã§ããããã¤ã³ããªããªãé¢ç½ãã§ãããã·ããããã«ãã¬ãã£ã³ã³ããããªããæ¹ã ã«åºãããæ¯æ¥ã§ãã ãã®è¨äºã§ã¯ããµã¼ãã¹ãé ä¿¡ãããã¨ãã¦ä½ããã®çç±ã§å·®ãæ»ãããã¡ã¼ã«âãã¦ã³ã¹ã¡ã¼ã«ã®ç®¡çãã©ã®ããã«è¡ã£ã¦ãããã¨ãã話ããæ¸ãã¾ãã ãã¦ã³ã¹ã¡ã¼ã« ãµã¼ãã¹ãã¦ã¼ã¶ã«åãã¦ã¡ã¼ã«ãé ä¿¡ãããã¨ããã¨ãå¤ããå°ãªãããã¦ã³ã¹ã¡ã¼ã«ã¯çºçãã¾ããã¡ã¼ã«ã¢ãã¬ã¹ãééã£ã¦ããã»æºå¸¯é»è©±ã®è¨å®ã§åä¿¡ãæå¦ãã¦ããã»ã¡ã¼ã«ããã¯ã¹ãä¸æ¯ã«ã«ãªã£ã¦ããã»IPã¢ãã¬ã¹ããã©ãã¯ãªã¹ãã«è¼ã£ã¦ãã¾ã£ããããµã¼ãã«ã¡ã¼ã«ã®åä¿¡ãæå¦ããã¦ããâ¦etcãå®å ¨ã«ãªãããã¨ã¯é£ããã§ããããã¦ã³ã¹ã¡ã¼ã«ãæ¾ç½®ããã¨ã¡ã¼ã«ã®å°éçãä¸ããããéä¿¡å ããä¸æçã«ã¡ã¼ã«ã®åä¿¡ãæå¦ãããããããã¨ããããããå·®ãæ»ããã¦ãã¾
DKIMï¼ãã£ã¼ãã ï¼ã¯ããã®ã¡ã¼ã«ãæ£è¦ã®ã¡ã¼ã«ãµã¼ãããéä¿¡ããããå¦ããèå¥ããããã®æè¡ã§ããä»çµã¿ã¨ãã¦ã¯ãéä¿¡å´ã§ã¡ã¼ã«ã«é»åç½²åãè¡ããåä¿¡å´ã§ãã®ã¡ã¼ã«ã®é»åç½²åãæ¤è¨¼ãããã¨ã«ãã£ã¦ã¡ã¼ã«ãµã¼ãã®æ£å½æ§ããã§ãã¯ãã¾ããããã§ä»åã¯ãOpenDKIM ãå©ç¨ãã¦ãPostfix ã DKIM ã«å¯¾å¿ããããã®è¨å®æ¹æ³ãã¾ã¨ãã¦ã¿ã¾ããã DKIM è¨å®ã®æ¦è¦ éä¿¡å´ã®ã¡ã¼ã«ãµã¼ãã§é»åç½²åï¼ä»¥ä¸ãç½²åãã¨è¡¨è¨ãã¾ãï¼ã«å¿ è¦ãªç§å¯éµã¨å ¬ééµãä½æãããã®ç§å¯éµã使ã£ã¦ã¡ã¼ã«ãµã¼ãã§ç½²åãè¡ãããã«è¨å®ãã¾ããä¸æ¹ããã¢ã®å ¬ééµã¯ã¡ã¼ã«ãã¡ã¤ã³ã管çãã¦ããDNSãµã¼ãã®TXTã¬ã³ã¼ãã«ç»é²ãã¦ããã¾ããããã¦ãåä¿¡å´ã®ã¡ã¼ã«ãµã¼ãã¯ãã®å ¬ééµã使ã£ã¦ç½²åã®æ¤è¨¼ãè¡ãã¾ãã ãã®ããã«è¨å®ãã¦ããã°ãä¸å³ã®è¿·æã¡ã¼ã«éä¿¡è ã®ã¡ã¼ã«ãµã¼ããããéä¿¡å ã®ã¡ã¼ã«ã¢ãã¬ã¹ãå½ã£ãã¡ã¼
Postfixã使ã£ã¦ã¡ã¼ã«éä¿¡ã§ããããã«è¨å®ãããæé ã§ãã ç´ ã®Postfixã§ãã¡ã¼ã«éä¿¡ã¯ã§ãã¾ãããSPFãDKIMã¨ãã£ãã¡ã¼ã«ã®ä¿¡é ¼æ§ãé«ããèªè¨¼æè¡ãå©ç¨ãã¦ã¡ã¼ã«ãéä¿¡ã§ããããã«ãã¾ãã å®ã¯ãAmazon SESã«SPF + DKIMãè¨å®ãã¦ã¡ã¼ã«éä¿¡ããããã¨ãã¦ããã®ã§ãããYahooã¡ã¼ã«ã«ãã¹ãã¡ã¼ã«ãéä¿¡ããã¨ãããè¿·æã¡ã¼ã«ã«æ¯ãåãããã¦ããããã¦Amazon SESã®ä½¿ç¨ãæ念ããçµç·¯ãããã¾ãããã¡ã¼ã«ããããè¦ãã¨ä¸é¨ã®Amazon SESã¡ã¼ã«ãµã¼ãã®IPã¢ãã¬ã¹ãYahooã®ãã£ã«ã¿ã§ãããã¯ããã¦ããè¨è¿°ãããã¾ãããããã§ã¯ã使ããã®ã«ãªããªãã®ã§ãEC2ä¸ã«MTAãæ§ç¯ãã¦ã¡ã¼ã«éä¿¡ããããã¨ã«ãã¾ããã[AWSã¤ã¹ã¿ã¼ã·ãªã¼ãº] Amazon Simple Email Service ã®é¸æè¢ 1 ã§ãã [AWSãã¤ã¹ã¿ã¼ã·ãªã¼ãº
ãã®ãµã¤ãã¯ããã¨ãã¨ä½è ã®èªåç¨ã¡ã¢ã¨ãã¦æ¸ãå§ãããã®ã§ããæ¸ãã¦ãããã¨ãå ¨ã¦æ£ããã¨ã¯éãã¾ãããä»ã®æç®ããªãã£ã·ã£ã«ãªãµã¤ãã確èªãã¦ãèªå·±è²¬ä»»ã«ã¦å©ç¨ãã¦ãã ããã LDAPé£æºã¨ã¯é¢ä¿ãªãã®ã ãããã£ããæ¤è¨¼ããã®ã§ TLS (Transport Layer Security) ã§ã¡ã¼ã«éä¿¡ãä¿è·ããæ¹æ³ã«ã¤ãã¦ãã¾ã¨ãã¦ãããSSL 㨠TLS ã¨ã®éãã TLS ã®æ¦è¦ã«ã¤ãã¦ç¥ããããã°ãDovecot ã®ä¸è¨ã®ããã¥ã¡ã³ããç°¡æ½ã«ã¾ã¨ã¾ã£ã¦ããã SSL - Dovecot Wiki Dovecot ã®TLSè¨å® ãªãã¹ããªã¢ã«ãªæ¤è¨¼ã¨ãããããèªåã® CA (èªè¨¼å±) ãä½ãããµã¼ã証ææ¸ã¯ãã® CA ã«ãã£ã¦ç½²åãããã¨ã«ããã証ææ¸é¢ä¿ã®ä½æ¥ã§ã¯ãä¸é¨ OpenSSL ã使ãããå¤å°ãªãã¨ãä½æ¥ã楽ã«ãããã主ã¨ã㦠GnuTLS ã¦ã¼ãã£ãªã㣠(â») ã使
ã¯ããã« AWSã§ã¡ã¼ã«ã·ã¹ãã ã®é«å¯ç¨æ§ç¢ºä¿ãèããã¨ããã©ã®ãããªæ§æãæãæµ®ãã¹ãã§ãããããç§ãè³å ã«æãæµ®ãã¹ãã®ã¯ãã®ãããªæ§æã§ãã å¤é¨ããå é¨ã¸ã®ã¡ã¼ã«é éã¯ä»¥ä¸ã®æµãã«ãªãã¾ãã Route 53ã«ã¦MXã¬ã³ã¼ãã2è¡(MailGateway1ã¨MailGateway2)è¨å®ãã¾ãã MailGatewayããMailBoxã¸ã¯Postfixã®transportã¨recipient_bcc_mapsã§åé·çã«é éããããè¨å®ãã¾ãã å é¨ããå¤é¨ã¸ã®ã¡ã¼ã«é éã¯ä»¥ä¸ã®æµãã«ãªãã¾ãã Clientã®ã¡ã¼ã«ã¯ã©ã¤ã¢ã³ãã½ããã¦ã§ã¢ã§SMTPãµã¼ãã¨ãã¦InternalELBãæå®ããELBãMailBox1ã¨MailBox2ã«æ¯ãåãã¾ãã MailBoxã®postfixã§ã¯relayhostã«èªAZã®MailGatewayãfallback_relayã«å¥AZã®Mail
ã¯ããã« ããã«ã¡ã¯æ¤æ¨å樹ã§ããå æ¥Developers.IO AWSé¢é£ããã°500æ¬ç®è¨å¿µã¨ãã¦ãå¼ç¤¾ ææãè±èªããã°ãæ稿ãã¾ããã How to send Email from PHP application via Amazon SES ï½ Developers.IO ããã°ã§ã¯EC2ããSESããªã¬ã¼ãã¦ã¡ã¼ã«éä¿¡ããããã®Postfixè¨å®æ¹æ³ãç´¹ä»ãã¦ãã¾ãã/etc/postfixã«ããã¤ããã¡ã¤ã«ãç¨æããã ãã§ãæå¤ã¨ç°¡åã«SESãå©ç¨ã§ããããã§ããã æ¢åã·ã¹ãã ãAWSã¸ç§»è¡ããã«ããã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ã®æ¹ä¿®ãè¡ããããµã¼ãã¼ããã¡ã¼ã«ãæ軽ã«éãããã¨ããéè¦ã¯å¤ãã®ã§ã¯ãªãã§ãããããã¨ãããã¨ã§ã誰ã§ãç°¡åã«SESãå©ç¨ã§ããããChefã§Postfixãè¨å®ãã¦ã¿ã¾ããã äºåæºå 次ã®ãã®ãäºåã«æºåãã¦ããã¾ããä»åã¯SESãSandboxç°
# ãªãã·ã§ã³: user@hostname ã§ãªã user@domainname ã§ã¡ã¼ã«ãéä¿¡ãã #myorigin = $mydomain # ãªãã·ã§ã³: NAT/proxy ã®å¤é¨ã¢ãã¬ã¹ãæå®ãã #proxy_interfaces = 1.2.3.4 # é¸æè¢ 1: ä»ã®ãã¹ãããã®ã¡ã¼ã«ãä¸ç¶ããªã mynetworks_style = host relay_domains = # é¸æè¢ 2: ãã¼ã«ã«ã®ã¯ã©ã¤ã¢ã³ãããã®ã¡ã¼ã«ã ããä¸ç¶ãã # mynetworks = 192.168.1.0/28 # relay_domains = ãããåã®è¨å®ã«å½ã¦ã¯ã¾ãå ´åã¯ã"æ¬å½ã®ã¤ã³ã¿ã¼ãããã»ãã¹ãåãæããªããã¹ãä¸ã® Postfix" ã®ç« ãèªãã§æ¬²ããã æ¬å½ã®ã¤ã³ã¿ã¼ãããã»ãã¹ãåãæããªããã¹ãä¸ã® Postfix ãã®ç« ã§ã¯ãèªåèªèº«ã®ã¤ã³ã¿ã¼ããã
ã¡ã¼ã«ãµã¼ã(Postfix)ãSPF(Sender Policy Framework)ã®æ¤æ»ã«å¯¾å¿ãã¦ã¿ããç¸æã«ãã§ãã¯ãããã ãã§ããã°DNSã«ã¬ã³ã¼ããããã ãã§ããã®ã§ãDKIM,DomainKeysã¨æ¯ã¹ã¦å®è£ ã¯ãããããèªèº«ã«å±ãã¡ã¼ã«ã®ãã§ãã¯ãããã«ã¯Posftfixã®ãcheck_policy_serviceãã§ãã§ãã¯ããããã«ããã DKIM(Domainkeys)対å¿ã¯ãã¡ã å¿ è¦ãªããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« yum install perl-Mail-SPF perl-Sys-Hostname-Long SPFã®ãã§ãã¯ç¨ã®ã¢ã¸ã¥ã¼ã«ã¯ããã±ã¼ã¸ã§ã¯ãªãã®ã§ã½ã¼ã¹ããã¦ã³ãã¼ããã¦ãã(perlã¹ã¯ãªãã) http://www.openspf.org/Softwareã®ããããããpostfix-policyd-spf-perl-2.010.tar.gzããã¦ã³
ç£æ°åè·¯ã®è¨ç®ã§å¹³åé·ããæ±ããã¨ãå¾®å¦ã«ééããããã ããèãã¦ãããã¨ããããªã⦠ã¡ãã£ã¨åã®ãã¨ã«ãªãã®ã§ãããæãããäºãèµ·ãã¾ããã èªåã®æºå¸¯é»è©±å®ã«ã¡ã¼ã«ãéãã¾ãããOutlookã§ã¡ã¢æ¸ãã¦ãåæãããã®ããã©ãããã£ãããã ãã©å±ããªãã£ããã¾ãçµè«ããè¨ãã°å¿ è¦ãªãã£ãã¡ã¢ã ããããã£ããã ãã©â¦ ã©ããããã®ãã¨æã£ãã®ã ãããã®æ¥ã®Logwatchãè¦ã¦ããã£ããåéä¿¡ãç¹°ãè¿ãã¦ããããã ã¡ã¼ã«ã¢ãã¬ã¹ã®ãk.vodafone.ne.jpãk.vodafone.co.jpã¨ãã¦ãã¾ã£ãã®ãåå ã æè¿ãããã¯ã¼ã¯ãããã¤ãã¼ã§ãco.jpã®ã¨ããã¯ãããããªæ°ããããããã¯ã©ãã§ããããã©ã ããããå¾ãåçã¯ãé©å½ã«Returned Mailãéã£ã¦ãã¦æ¬²ããã ãããªããã§èª¿ã¹ãããPostfixã®æ¨æºã®è¨å®ã§ã¯5æ¥éç¹°ãè¿ããããã ãªãã¨ãæ ¹æ°å¼·
Starpitãªã©ãé 延ã使ã£ã¦ã¹ãã 対çãªã©ãè¡ã£ã¦ããå ´åãããã«å¦çãçµäºããªããããsmtpdããã»ã¹ãå¢å ãã¾ãã Starpitã§ã¯çµé¨çã«ãæ®æ®µèµ·åãã¦ããããã»ã¹æ°ã®2åã3åç¨åº¦ã«ãªãããã§ãã è² è·ã®å°ãªãã¡ã¼ã«ãµã¼ãã§ã¯ã»ã¨ãã©åé¡ã¨ãªãã¾ããããåä¿¡ããã¡ã¼ã«ãé常ã«å¤ããµã¼ãã®å ´åãããã»ã¹ã®å¢å ãã¡ã¢ãªæ¶è²»ãªã©ã®ç¹ã§(å¢å ããããã»ã¹ã¯sleepãã¦ããã ããªã®ã§CPUè² è·çã«ã¯åé¡ã«ãªããªã)åé¡ã«ãªããã¨ãããã¾ãã ããã§ãé 延ãã¦ããéã«ç¸æãæ¥ç¶ãåã£ããããã¡ãã®smtpdãããã«çµäºããããã«ãªãããããä½æãã¾ããã Postfix-2.3.x (ææ° stable)ã«å¯¾ãã¦ã®ãããã§ãã http://k2net.hakuba.jp/pub/postfix-sleep.patch (追è¨) Postfix-2.2.1 対ãã¦ã¯Lukeãããä¸è¨
2010å¹´11æ14æ¥(æ¥) â MacBook Air ã« Xcode ãå ¥ããã _ åãã使ã£ã¦ã MacBook Pro ãã TimeMachine çµç±ã§ãªã¹ãã¢ãã¦ä½¿ã£ã¦ãã®ã§ãã¨ãã«ä½ãããªãã¦ããã§ã« /Developer/ 以ä¸ã«éçºãã¼ã«ã¯å ¥ã£ã¦ãããããã/Developer/ 以ä¸ãããªãã¦ããã¼ããã« /usr/bin/cc ã¨ã /usr/bin/make ã¨ãããªãä¸éå端ãªç¶æ ã _ ã¡ããã¨ã§ãè³¼å ¥æã«ã¤ãã¦ãããã® USB ã¡ã¢ãªããã¤ã³ã¹ãã¼ã«â¦â¦ã£ã¦ãããï¼ ãªããï¼ ã©ããã¦ï¼ ä»ã¾ã§ã® Mac ã£ã¦ã¿ããªã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ã«ãã£ãããããªãã§ãªãã®ï¼ _ ã¾ãããªãã¦ãç¡æã§ãã¦ã³ãã¼ãã§ããããå°ãããã©ããããããã¦ä»å¾ãã£ã¨ããããæ¹éã§ããã®ãããã _ ã§ãã¦ã¼ã¶ç»é²ãã¦ãã¦ã³ãã¼ãããã®ãããã©ãããã£ãã®ã§ããã£ãã諦ãããã¤ã³
Postfix ã§ãç¹å®ã® IP ã¢ãã¬ã¹ããã®æ¥ç¶ãæå¦ããæ¹æ³ã§ãã/etc/postfix/main.cf ãç·¨éããsmtpd_client_restrictions ã« check_client_access ã追å ãã¾ãã smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/client_access, permit 次㫠/etc/postfix/client_access ãä½æããIP ã¢ãã¬ã¹ã®æå¦è¨å®ãåè¨ãã¾ãã 123.124.21.70 REJECT 221.120.126.252 REJECT 95.154.210.20 REJECT ãããã«ã¯ãã¡ã¤ã³ãè¨è¿°ã§ãã¾ããä½æããããpostmap ã³ãã³ã㧠ããã·ã¥DBã«å¤æãã¾ãã # po
Postfix㧠- po 06/01/24-20:07 No.5558 ãããã®è§£ã¯ã¢ãã¬ã¹å¤æ´ãå§ããã§ããã»ã»ã»ã - ããã 06/01/25-19:49 No.5561 ã©ãããããã¨ããããã¾ãã - po 06/01/25-21:03 No.5563 No.5558ãæ稿æéï¼2006å¹´01æ24æ¥(Tue) 20:07ãæ稿è åï¼poãï¼µï¼²ï¼¬ï¼ ã¿ã¤ãã«ï¼Postfix㧠FMLã§ã¡ã¼ãªã³ã°ãªã¹ããå©ç¨ãã¦ããã®ã§ãããã¡ã³ãã¼ã®ã¢ãã¬ã¹ã§ã.ãã2ã¤é£ç¶ãã¦ããã¢ãã¬ã¹ãPostfixã§æ£ããå¦çãããã¡ã³ãã¼ã«å ãããã¨ãã§ãã¾ãããa..b@hotmail.comã ã¨"a..b"@hotmail.comã¨ãããµãã«å¦çããã¦ãã¾ãã¾ããPostfixã®ãã¼ã¸ã§ã³ã¯2.3ã§ããã©ãããã°è§£æ±ºã§ããã®ã§ããããï¼ No.5561ãæ稿æéï¼2006å¹´01æ25æ¥(Wed)
sendmailããpostfixã®ç§»è¡ã§ãæå¾ã«ããããä»ãã¦ã¼ã¶åã®ã¢ã«ã¦ã³ããããã¾ãã¡ã¼ã«ãåä¿¡ã§ããªããªããã¨ãããã¨ãèµ·ãã¾ããã postfixã§ã¯ãã[email protected]ããã[email protected]ãã¨ãããããªãéä¸ã«ãããã2ã¤ä»¥ä¸ç¶ããããªã¢ãã¬ã¹ããæå¾ã«ããããä»ããããªã¢ãã¬ã¹ã¯ãRFC822ã«éåããããã«ãã"foo..bar"@sample.jpããã"foo."@sample.jpãã¨ããå½¢ã«å¤æããã¾ãã ãã®ããããã®æ¡ä»¶ã«è©²å½ãã該å½ããã¦ã¼ã¶åãããã¨ããã¾ãã¡ã¼ã«ãåä¿¡ã§ããªããªãã¾ãã ããããããããã¨æ å ±æ¼ã£ãã®ã§ããè¦ã¤ããããã§ãUããã解決æ³ãçºè¦ã virtualã§ä½¿ã£ã¦ããã¢ã«ã¦ã³ãåã ã£ãã®ã§ãvirtualã®è¨å®ãã¡ã¤ã«å ã«ã [email protected] "foo."@sample.jp ã¨ãquot
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}