ºìÁªLinuxÃÅ»§
Linux°ïÖú

LinuxÓʼþ·þÎñÆ÷Èí¼þ±È½Ï

·¢²¼Ê±¼ä:2006-03-30 00:10:13À´Ô´:ºìÁª×÷Õß:artiomgy
¼¸ÄêÒÔÇ°£¬Linux»·¾³Ï¿ÉÒÔÑ¡Ôñ µÄ¿ÉÒÔÃâ·ÑÓʼþ·þÎñÆ÷Èí¼þÖ»ÓÐSendmail£¬µ«ÊÇÓÉÓÚSendmailµÄȱÏÝ£¬Ò»Ð©¿ª·¢ ÕßÏȺ󿪷¢ÁËÈô¸ÉÖÖÆäËûµÄÓʼþ·þÎñÆ÷Èí¼þ¡£µ±Ç°£¬ÔËÐÐÔÚLinux»·¾³ÏÂÃâ·ÑµÄ Óʼþ·þÎñÆ÷£¬»òÕß³ÆΪMTA(Mail Transfer Agent)ÓÐÈô¸ÉÖÖÑ¡Ôñ£¬±È½Ï³£¼ûµÄÓÐSendmail¡¢Qmail¡¢Postfix¡¢ exim¼°ZmailerµÈµÈ¡£±¾ÎÄÏ£Íûͨ¹ý¶Ô¼¸ÖÖÓ°ÏìÏà¶ÔÀ´Ëµ±È½Ï´óµÄÖ÷Á÷Linux»·¾³ ϵÄMTAµÄÌصã½øÐвûÊö£¬²¢¶ÔÆäÓÅȱµãÒ»Ò»½ðÐÇ·ÖÎö±È½Ï£¬Ê¹Óû§ÔÚÑ¡ÔñLinux »·¾³ÏµÄÃâ·ÑMTAʱÓÐÒ»¸öÑ¡ÔñµÄÒÀ¾Ý¡£

Ò»¡¢Postfix

¡¡¡¡PostfixÊÇÒ»¸öÓÉ IBM×ÊÖúÏÂÓÉWietse Venema ¸ºÔ𿪷¢µÄ×Ô ÓÉÈí¼þ¹¤³ÌµÄÒ»¸ö²úÎÆäÄ¿µÄÊÇΪÓû§Ìṩ³ýsendmailÖ®ÍâµÄÓʼþ·þÎñÆ÷Ñ¡Ôñ ¡£PostfixÁ¦Í¼×öµ½¿ìËÙ¡¢Ò×ÓÚ¹ÜÀí¡¢Ìṩ¾¡¿ÉÄܵݲȫÐÔ £¬Í¬Ê±¾¡Á¿×öµ½ºÍsendmailÓʼþ·þÎñÆ÷±£³Ö¼æÈÝÐÔÒÔÂú×ãÓû§µÄʹÓÃÏ°¹ß¡£Æð³õ £¬PostfixÊÇÒÔVMailerÕâ¸öÃû×Ö·¢²¼µÄ£¬ºóÀ´ÓÉÓÚÉ̱êÉϵÄÔ­Òò¸ÄÃûΪPostfix ¡£

1.Ö÷ÒªÉè¼ÆÄ¿±ê

¡¡¡¡Postfix¹¤³ÌµÄÄ¿±êÊÇʵÏÖÒ»¸öÓʼþ·þÎñÆ÷£¬Ìṩ¸øÓû§³ýsendmailÒÔÍâµÄÑ¡ Ôñ¡£ÆäÉè¼ÆÄ¿±ê°üÀ¨£º

¡¡¡¡ÐÔÄÜ: PostfixÒª±ÈͬÀàµÄ·þÎñÆ÷²úÆ·ËٶȿìÈý±¶ÒÔÉÏ£¬Ò»¸ö°²×° PostfixµĄ̈ʽ»úÒ»Ìì¿ÉÒÔÊÕ·¢°ÙÍò·âÐżþ¡£PostfixÉè¼ÆÖвÉÓÃÁËweb·þÎñÆ÷µÄ µÄÉè¼Æ¼¼ÇÉÒÔ¼õÉÙ½ø³Ì´´½¨¿ªÏú£¬²¢ÇÒ²ÉÓÃÁËÆäËûµÄһЩÎļþ·ÃÎÊÓÅ»¯¼¼ÊõÒÔÌá ¸ßЧÂÊ£¬µ«Í¬Ê±±£Ö¤ÁËÈí¼þµÄ¿É¿¿ÐÔ¡£

¡¡¡¡¼æÈÝÐÔ:PostfixÉè¼Æʱ¿¼ÂÇÁ˱£³ÖSendmailµÄ¼æÈÝÐÔÎÊÌ⣬ÒÔʹÒÆÖ²±ä µÄ¸ü¼ÓÈÝÒס£PostfixÖ§³Ö/var[/spool]/mail, /etc/aliases, NIS, ¼° ~/.forwardµÈÎļþ¡£È»¶ø PostfixΪ±£Ö¤¹ÜÀíµÄ¼òµ¥ÐÔ£¬ËùÒÔûÓÐÖ§³ÖÅäÖÃÎļþ sendmail.cf¡£

¡¡¡¡°²È«ºÍ½¡×³ÐÔ:PostfixÉè¼ÆÉÏʵÏÖÁ˳ÌÐòÔÚ¹ýÁ¿¸ºÔØÇé¿öÏÂÈÔÈ»±£Ö¤³Ì ÐòµÄ¿É¿¿ÐÔ¡£µ±³öÏÖ±¾µØÎļþϵͳûÓпÉÓÿռä»òûÓпÉÓÃÄÚ´æµÄÇé¿öʱ£¬ Postfix¾Í»á×Ô¶¯·ÅÆú£¬¶ø²»ÊÇÖØÊÔʹÇé¿ö±äµÄ¸üÔã¡£

¡¡¡¡Áé»îÐÔ:Postfix½á¹¹ÉÏÓÉÊ®¶à¸öСµÄ×ÓÄ£¿é×é³É£¬Ã¿¸ö×ÓÄ£¿éÍê³ÉÌض¨ µÄÈÎÎñ£¬Èçͨ¹ýSMTPЭÒé½ÓÊÕÒ»¸öÏûÏ¢£¬·¢ËÍÒ»¸öÏûÏ¢£¬±¾µØ´«µÝÒ»¸öÏûÏ¢£¬ÖØ Ð´Ò»¸öµØÖ·µÈµÈ¡£µ±³öÏÖÌض¨µÄÐèÇóʱ£¬¿ÉÒÔÓÃа汾µÄÄ£¿éÀ´Ìæ´úÀϵÄÄ£¿é£¬ ¶ø²»ÐèÒª¸üÐÂÕû¸ö³ÌÐò¡£¶øÇÒËüÒ²ºÜÈÝÒ×ʵÏֹرÕij¸ö¹¦ÄÜ¡£

¡¡¡¡°²È«ÐÔ:PostfixʹÓöà²ã·À»¤´ëÊ©·À·¶¹¥»÷ÕßÀ´±£»¤±¾µØϵͳ£¬¼¸ºõÿ Ò»¸öPostfixÊØ»¤½ø³Ì¶¼ÄÜÔËÐÐÔڹ̶¨µÍȨÏÞµÄchroot֮ϣ¬ÔÚÍøÂçºÍ°²È«Ãô¸Ð µÄ±¾µØͶµÝ³ÌÐòÖ®¼äûÓÐÖ±½ÓµÄ·¾¶--Ò»¸ö¹¥»÷Õß±ØÐëÊ×ÏÈÍ»ÆÆÈô¸É¸öÆäËûµÄ³Ì Ðò£¬²ÅÓпÉÄÜ·ÃÎʱ¾µØϵͳ¡£PostfixÉõÖÁ²»¾ø¶ÔÐÅÈÎ×Ô¼ºµÄ¶ÓÁÐÎļþ»òIPCÏûÏ¢ ÖеÄÄÚÈÝÒÔ·ÀÖ¹±»ÆÛÆ­¡£PostfixÔÚÊä³ö·¢ËÍÕßÌṩµÄÏûϢ֮ǰ»áÊ×ÏȹýÂËÏûÏ¢ ¡£¶øÇÒPostfix³ÌÐòûÓÐset-uid¡£

2.PostfixµÄһЩÌصã

¡¡¡¡Ö§³Ö¶à´«ÊäÓò:sendmaiÖ§³ÖÔÚInternet, DECnet, X.400¼°UUCPÖ®¼äת·¢ÏûÏ¢¡£ PostfixÔòÁé»îµÄÉè¼ÆΪÎÞÐëÐéÄâÓò (vistual domai)»ò±ðÃûÀ´ÊµÏÖÕâÖÖת·¢¡£µ«ÊÇÔÚÔçÆڵķ¢²¼Àï½ö½öÖ§³ÖSTMPºÍÓÐÏÞ¶È µØÖ§³ÖUUCP,µ«¶ÔÓÚÎÒ¹úÓû§À´Ëµ£¬¶à´«ÊäÓòµÄÖ§³ÖûÓÐʲôÒâÒå¡£

¡¡¡¡ÐéÄâÓò:ÔÚ´ó¶àÊýͨÓÃÇé¿öÏ£¬Ôö¼Ó¶ÔÒ»¸öÐéÄâÓòµÄÖ§³Ö½ö½öÐèÒª¸Ä±äÒ»¸ö Postfix²éÕÒÐÅÏ¢±í¡£ÆäËûµÄÓʼþ·þÎñÆ÷Ôòͨ³£ÐèÒª¶à¸ö¼¶±ðµÄ±ðÃû»òÖض¨ÏòÀ´ »ñµÃÕâÑùµÄЧ¹û¡£

¡¡¡¡UCE¿ØÖÆ (UCE,unsolicited commercial email): PostfixÄÜÏÞÖÆÄĸöÖ÷»úÔÊÐíͨ¹ý×ÔÉíת·¢Óʼþ£¬²¢ÇÒ Ö§³ÖÏÞ¶¨Ê²Ã´ÓʼþÔÊÐí½Ó½ø¡£PostfixʵÏÖͨ³£µÄ¿ØÖƹ¦ÄÜ£ººÚÃûµ¥ÁÐ±í¡¢RBL²é ÕÒ¡¢HELO/·¢ËÍÕßDNSºËʵ¡£»ùÓÚÄÚÈݹýÂ˵±Ç°Ã»ÓÐʵÏÖ¡£

¡¡¡¡±í²é¿´: PostfixûÓÐʵÏÖµØÖ·ÖØдÓïÑÔ£¬¶øÊÇʹÓÃÁËÒ»ÖÖÀ©Õ¹µÄ±í²é¿´À´ÊµÏÖµØ Ö·ÖØд¹¦ÄÜ¡£±í¿ÉÒÔÊDZ¾µØ dbm»ò dbÎļþµÈ¸ñʽ¡£

3.PostfixÌåϵ½á¹¹¼°ÓëSendmail µÄ±È½Ï

¡¡¡¡PostfixÊÇ»ùÓÚ°ëפÁô£¬»¥²Ù×÷µÄ½ø³ÌµÄÌåϵ½á¹¹£¬Ã¿¸ö½ø³ÌÍê³ÉÌض¨µÄÈÎÎñ£¬Ã»ÓÐÈκÎÌض¨µÄ½ø³ÌÑÜÉú¹Øϵ(¸¸ ×Ó¹Øϵ)¡£¶øÇÒ£¬¶ÀÁ¢µÄ½ø³ÌÀ´Íê³É²»Í¬µÄ¹¦ÄÜÏà¶ÔÓÚ¡°µ¥¿é¡±³ÌÐò¾ßÓиüºÃµÄ ¸ôÀëÐÔ¡£´ËÍ⣬ÕâÖÖʵÏÖ·½Ê½¾ßÓÐÕâÑùµÄÓŵ㣺ÿ¸ö·þÎñÈçµØÖ·ÖØдµÈ¶¼Äܱ»ÈÎ ºÎÒ»¸öPostfix²¿¼þËùʹÓã¬ÎÞÐë½ø³Ì´´½¨µÈ¿ªÏú£¬¶ø½ö½öÐèÒªÖØдһ¸öµØÖ·£¬ µ±È»²¢²»ÊÇÖ»ÓÐpostfix²ÉÓÃÕâÖÖ·½Ê½¡£

¡¡¡¡PostfixÊÇ°´ÕÕÕâÖÖ·½Ê½ÊµÏֵģº Ò»¸öפÁôÖ÷·þÎñÆ÷¸ù¾ÝÃüÁîÔËÐÐPostfixÊØ»¤½ø³Ì£¬ÊØ»¤½ø³ÌÍê³É·¢ËÍ»ò½ÓÊÕÍø ÂçÓʼþÏûÏ¢£¬ÔÚ±¾µØµÝ½»ÓʼþµÈµÈ¹¦ÄÜ¡£ÊØ»¤½ø³ÌµÄÊýÄ¿ÓÉÅäÖòÎÊýÀ´¾ö¶¨µÄ£¬ ²¢ÇÒ¸ù¾ÝÅäÖþö¶¨ÊØ»¤½ø³ÌÔËÐеĴÎÊý(re-used times)£¬µ±¿ÕÏÐʱ¼äµ½´ïÅäÖòÎÊýÖ¸¶¨µÄÏÞ¶Èʱ£¬×Ô¶¯ÏûÍö¡£ÕâÖÖ·½·¨ Ã÷ÏԵؽµµÍÁ˽ø³Ì´´½¨¿ªÏú£¬µ«Êǵ¥¸ö½ø³ÌÖ®¼äÈÔÈ»±£³ÖÁËÁ¼ºÃµÄ¸ôÀëÐÔ¡£

¡¡¡¡PostfixµÄÉè¼ÆÄ¿±ê¾ÍÊdzÉΪ SendmailµÄÌæ´úÕß¡£ÓÉÓÚÕâ¸öÔ­Òò£¬PostfixϵͳµÄºÜ¶à²¿·Ö£¬Èç±¾µØͶµÝ³ÌÐò µÈ£¬¿ÉÒÔºÜÈÝÒ×µØͨ¹ý±à¼­ÐÞ¸ÄÀàËÆinetdµÄÅäÖÃÎļþÀ´Ìæ´ú¡£

¡¡¡¡PostfixµÄºËÐÄÊÇÓÉÊ®¶à¸ö°ëפÁô ³ÌÐòʵÏֵġ£ÎªÁ˱£Ö¤»úÃÜÐÔµÄÔ­Òò£¬ÕâЩPostfix½ø³ÌÖ®¼äͨ¹ýUnixµÄsocket »òÊܱ£»¤µÄĿ¼֮ϵÄFIFO½øÐÐͨÐÅ¡£¼´Ê¹Ê¹ÓÃÕâÖÖ·½·¨À´±£Ö¤»úÃÜÐÔ£¬ Postfix½ø³Ì²¢²»Ã¤Ä¿ÐÅÈÎÆäͨ¹ýÕâÖÖ·½Ê½½ÓÊÕµ½µÄÊý¾Ý¡£

¡¡¡¡Postfix½ø³ÌÖ®¼ä´«µÝµÄÊý¾ÝÁ¿ÊÇ ÓÐÏÞÖƵġ£ÔںܶàÇé¿öÏ£¬Postfix½ø³ÌÖ®¼ä½»»»µÄÊý¾ÝÐÅÏ¢Ö»ÓжÓÁÐÎļþÃûºÍ ½ÓÊÕÕßÁÐ±í£¬»òijЩ״̬ÐÅÏ¢¡£Ò»µ©Ò»¸öÓʼþÏûÏ¢±»±£´æ½øÈëÎļþ£¬Æ佫ÔÚÆäÖÐ ±£´æµ½±»Ò»¸öÓʼþͶµÝ³ÌÐò¶Á³ö¡£

¡¡¡¡Postfix²ÉÓÃһЩͨ³£µÄ´ëÊ©À´±Ü ÃⶪʧÐÅÏ¢£ºÔÚÊÕµ½È·ÈÏÒÔǰͨ¹ýµ÷ÓÃflushºÍfsync()±£´æËùÓеÄÊý¾Ýµ½´ÅÅÌÖÐ ¡£¼ì²éËùÓеÄϵͳµ÷Óõķµ»Ø½á¹ûÀ´±ÜÃâ´íÎó×´¿ö¡£

¡¡¡¡´ó¶àÊý¹¹½¨Óʼþ·þÎñÆ÷Õ߶¼»áÑ¡Ôñ sendmail£¬¹«Æ½µÄÀ´½²sendmailÊÇÒ»¸ö²»´íµÄMTA(Mail Transfer Agent)£¬×î³õ¿ª·¢Ê±Eric AllmanµÄÉè¼Æ¿¼ÂÇÖ÷Òª·ÅÔÚÁËÓʼþ´«µÝµÄ³É ¹¦ÐÔ¡£²»ÐÒµÄÊÇ£¬Sendmai¿ª·¢Ê±Ã»ÓÐÌ«¶àµÄ¿¼ÂÇInternet»·¾³Ï¿ÉÄÜÓöµ½µÄ°² È«ÐÔÎÊÌâ¡£SendmailÔÚ´ó¶àÊýϵͳÉÏÖ»ÄÜÒÔ¸ùÓû§Éí·ÝÔËÐУ¬Õâ¾ÍÒâζ×ÅÈκΩ ¶´¶¼¿ÉÄܵ¼Ö·dz£ÑÏÖصĺó¹û£¬³ýÁËÕâЩÎÊÌâÖ®Í⣬Ôڸ߸ºÔصÄÇé¿öSendmailÔË ÐÐÇé¿ö²»ÊǺܺá£

4.°²È«

¡¡¡¡PostfixÔò²¢Ò»¶¨ÒªÒÔroot µÄÉí·ÝÔËÐУ¬¶øÖ»ÐèÒªÒ»¸öÖ÷(master)³ÌÐòÒÔrootÉí·ÝÔËÐУ¬ÆäÉú³É½ø³ÌÀ´´¦Àí ½ÓÈë¡¢·¢³ö¼°±¾µØÓʼþͶµÝ¹¤×÷¡£Í¨¹ýʹÓÃһϵÁÐÄ£¿é²¿¼þ£¬Ã¿¸öÈÎÎñÓÉÒ»¸öµ¥ ¶ÀµÄ³ÌÐòÀ´ÔËÐÐ(ÕâÑùʹÉó¼Æ±äµÄÈÝÒ×һЩ)¡£ÀýÈç·¢³öÓʼþ±»Ð¶Ôص½Ò»¸ö¶ÓÁÐÄ¿ ¼,ÔÚÕâÀï¡°pcikup¡±³ÌÐòÈ¡µ½¸ÃÓʼþÈ»ºó½«Óʼþ´«µÝ¸ø¡°cleanup¡±³ÌÐò£¬ÆäÔÙ ½«Óʼþ´«µÝ¸ø¡°trivial-rewrite¡±£¬Æ为Ôð´¦ÀíÓʼþÍ·£¬×îºóÈôÓʼþÄ¿µÄÊDZð µÄϵͳÔò½«Óʼþ´«µÝ¸ø¡°smtp¡±³ÌÐò¡£¶øÇÒÏà¶ÔÓÚSendmailÀ´ËµPostfixÒ²¸üÈÝ Ò×ÉèÖÃchrooted»·¾³¡£Ö»Òª¼òµ¥µØͨ¹ý±à¼­master.cf(Ò»°ãλÓÚ/etc/postfix ÄÚ)Îļþ¼´¿ÉʵÏÖ£¬²¢ÇÒPostfix½«ÔËÐÐchrooted,ÒÔÏÞ¶¨ÔÚÆ䶨ÒåµÄ¶ÓÁÐĿ¼֮ ÏÂ(ͨ³£Î»ÓÚ/var/spool/postfix)£¬Í¬Ñù¿ÉÒÔÔÚmaster.cfÖжÔPostfixµÄµ¥Ò»Ä£ ¿éÉèÖýø³ÌÏÞÖÆ¡£Óû§¿ÉÒÔÏÞÖÆPostfixÒÔÄĸöÓû§µÄÉí·ÝÔËÐУ¬Ò»°ãÀ´ËµÊÇÒÔ ¡°postfix¡±Óû§(¸ÅÄîÉϸÃÓû§ºÍApacheµÄnobodyÀàËÆ)ÔËÐУ¬¸ÃÓû§¿ÉÒÔ·ÃÎÊ Ìض¨µÄ¶ÓÁÐĿ¼¡£PostfixÆäËûµÄÖ÷ÒªÓŵãÊÇÆðÅäÖÃÎļþµÄÇåÎúÒ׶®ÐÔ¡£

5.ÓëSendmailµÄ±È½Ï

¡¡¡¡ÈçsendmailÖ®ÀàµÄÓʼþϵͳ ÊÇ°´ÕÕÒ»¸ö"µ¥¿é"µÄ½á¹¹Éè¼ÆʵÏֵģ¬¸Ã¡°µ¥¿é¡±³ÌÐòʵÏÖËùÓеŦ ÄÜ¡£µ±È»ÕâÖֽṹÓÐÀûÓÚÔÚϵͳµÄ²»Í¬²¿·ÖÖ®¼ä¹²ÏíÊý¾Ý¡£µ«ÊÇÕâÖֽṹÈÝÒ׳ö ÏÖһЩÖÂÃüµÄ´íÎ󡣶øÈçqmailµÄÓʼþϵͳÉÏʹÓÃÒ»ÖÖ·Ö²ã´ÎµÄ½á¹¹£¬°´Õչ̶¨ µÃ˳ÐòÔËÐв»Í¬¹¦ÄܵÄ×ÓÄ£¿é½ø³Ì£¬Ö´ÐÐÍê±ÏÖ®ºó¾Í½«ÆäÊÍ·Å¡£ÕâÖÖ·½·¨ÓÐÁ¼ºÃ µÄ¡°¾øÔµ¡±ÐÔ£¬µ«ÊÇÔö¼ÓÁ˽ø³Ì´´½¨¿ªÏúºÍ½ø³Ì¼äͨÐÅ¿ªÏú¡£µ«ÊÇͨ¹ýºÏÀíµÄ¹æ »®×ÓÄ£¿é½ø³ÌµÄÔËÐÐ˳Ðò¿ÉÒÔ½«¿ªÏú±£³ÖÔÚ¿ÉÒÔ½ÓÊܵķ¶Î§ÄÚ¡£

¡¡¡¡Ê¹ÓÃÆäËûµÄMTAÌæ´úSendmailÊÇÒ» ¼þ·Ç³£Âé·³µÄÊÂÇ飬Óû§ÍùÍùÓÖÒª»¨´óÁ¿µÄʱ¼äÈ¥ÊìϤеÄMTAµÄÅäÖúÍʹÓᣠ¶øʹÓÃPostfix£¬Äã¿ÉÒÔÀûÓúܶàÒÔÓеÄÅäÖÃÎļþ¡£Èç(access, aliases, virtusertableµÈµÈ)£¬Ö»ÐèÒª¼òµ¥µÄÔÚmaster.cfÖж¨Òåһϼ´¿É¡£´Ë Í⣬PostfixÔÚÐÐΪÉÏÒ²ºÜÏóSendmail,Óû§¿ÉÒÔʹÓÃ"sendmail"ÃüÁî À´Æô¶¯Postfix¡£

¡¡¡¡µ±È»£¬Ê¹ÓÃÒ»¸öÈí¼þÀ´Ìæ´úÁíÍâÒ»¸öÈí¼þÐèÒª½â¾öÌض¨µÄÎÊÌâ¡£²¿·ÖÔ­ÒòÊÇÒòΪ PostfixµÄ°²È«ÌØÐÔ£¬ÔÚÅäÖÃPostfixʱ¿ÉÄÜ»áÓöµ½Ò»Ð©ÎÊÌâ¡£×îµäÐ͵ÄÎÊÌâÊÇÏò rootÓû§·¢ËÍÓʼþ¡£PostfixÒ»°ã²»Ìá¸ß×ÔÉíµÄȨÏÞ(ÏòrootÓû§·¢ËÍÓʼþËù±ØÐë µÄ)À´Í¶µÝÓʼþ¡£Óû§ÐèÒªÔÚ±ðÃûÎļþÖÐΪroot¶¨Òå±ðÃû£¬È磺"root: someuser"¡£ÕâͬÑù»á¶ÔÈô¸É¸öÓʼþÁбíÄ£¿é·¢ÉúÓ°Ï죬ÌرðÊÇSmartList ¡£Ò»°ãÀ´ËµÊµÏÖÓʼþÁбí×îºÃʹÓÃMajordomo,ËüÒ×ÓÚÅäÖá£

¡¡¡¡SendmailÒ»¸öºÜÍ»³öµÄÎÊÌâ¾ÍÊÇ¿É À©Õ¹ÐÔºÍÐÔÄÜÎÊÌâ¡£ÀýÈçÓû§ÈôÏ£ÍûÿÌìÖØÐÂÆô¶¯SendmailÀ´ÊµÏÖ×Ô¶¯¸üÐÂÅäÖà Îļþ(ÈçΪÐéÄâÖ÷»úÖض¨ÏòÓʼþ)¾Í»á³öÏÖÎÊÌâ¡£SendmailÉú³ÉеĽø³ÌÀ´´¦Àí·¢ ËͺͽÓÊÕÓʼþ£¬ÕâЩ½ø³Ì»áÒ»Ö±´æÔÚÖ±µ½´«Êä½áÊø£¬Ö®ºóSendmail²ÅÄÜÍ˳ö£¬Õâ ÑùÄãµÄ½Å±¾³ÌÐò½«²»ÄÜÕýÈ·µÄÖØÆðSendmail¡£¶ø¶ÔÓÚPostfix£¬Óû§ÔòÖ»ÐèÒª·¢ ³öÃüÁî"postfix reload"¼´¿É£¬Postfix½«»áÖØмÓÔØÆäÅäÖÃÎļþ¡£

¡¡¡¡ÁíÍ⣬¶ÔÓÚÓÐÊýÒÔÍò¼ÆµÄÓû§µÄÓʼþ·þÎñÆ÷À´Ëµ£¬Ê¹ÓÃÎļþÀ´´æ´¢ÈçÆ¥ÅäÓû§·¢ ³öÓʼþµØÖ·(ÀýÈçbob·¢³öµÄÐŵķ¢ÐÅÈËÐÞ¸ÄΪsales@example.org)¡£¶ÔÓÚ´óÁ¿Óà »§À´½²£¬¸ÃÎļþ¾Í»á±äµÄºÜ¾Þ´ó£¬´Ó¶øÓ°ÏìϵͳµÄÔËÐÐЧÂÊ¡£¶øPostfixÔò¿ÉÒÔ ºÍÒ»¸öÊý¾Ý¿âºǫ́¼¯³ÉÆðÀ´(µ±Ç°Ö»Ö§³ÖMySQL)À´´æ·ÅÆäÅäÖÃÐÅÏ¢£¬Êý¾Ý¿â·½Ê½ Òª±ÈÎļþ·½Ê½ÔÚ¿ÉÀ©Õ¹ÐÔ·½ÃæÇ¿´óºÜ¶à¡£

¡¡¡¡×ñ´ÓIBMµÄ¿ª·ÅÔ´´úÂë°æȨÐí¿ÉÖ¤ £¬Óû§¿ÉÒÔ×ÔÓɵطַ¢¸ÃÈí¼þ£¬½øÐжþ´Î¿ª·¢¡£ÆäΨһµÄÏÞÖƾÍÊDZØÐ뽫¶Ô Postfix×öµÄÐ޸ķµ»Ø¸øIBM¹«Ë¾¡£ÒòΪIBM×ÊÖúÁËWietseµÄ¿ª·¢¡£

6.ÓëQmailµÄ±È½Ï

¡¡¡¡QmailµÄȱµã¾ÍÊÇÅäÖ÷½Ê½ºÍ Sendmail²»Ò»Ö£¬²»ÈÝÒ×ά»¤¡£¶øÇÒQmailµÄ°æȨÐí¿ÉÖ¤º¬Òå·Ç³£Ä£ºý£¬ÉõÖÁû ÓкÍÈí¼þÒ»Æð·¢²¼¡£Ó¦ÓÃ×÷ÕߵĻ°£ºÈôÄãÏ£Íû·Ö·¢×Ô¼ºÐ޸İ汾µÄQmail£¬Äã±Ø ÐëµÃµ½ÎÒµÄÐí¿É¡£

¶þ¡¢Qmail

¡¡¡¡qmailÊÇÓÐDan Bernstein¿ª·¢µÄ¿ÉÒÔ×ÔÓÉ ÏÂÔصÄMTA£¬ÆäµÚÒ»¸öbeta°æ±¾0.70.7·¢²¼ÓÚ1996Äê1ÔÂ24ÈÕ£¬1997Äê2Ô·¢²¼ÁË 1.0°æ£¬µ±Ç°°æ±¾ÊÇ1.03¡£

1.QmailµÄÌصã

¡¡¡¡°²È«ÐÔ:ΪÁËÑéÖ¤QmailµÄ°²È«ÐÔ£¬QmailµÄÖ§³ÖÕßÉõÖÁ³ö×Ê$1000ÐüÉÍÑ°ÕÒ QmailµÄ°²È«Â©¶´£¬Ò»ÄêÒԺ󣬸ý±½ðûÓб»ÁìÈ¡£¬¶ø±»¾èÏ׸ø×ÔÓÉÈí¼þ»ù½ð»á ¡£Ä¿Ç°£¬QmailµÄ×÷ÕßÒ²³ö×Ê$500À´Ñ°ÇóQmailµÄ°²È«Â©¶´¡£

¡¡¡¡ËٶȣºQmailÔÚÒ»¸öÖеȹæÄ£µÄϵͳ¿ÉÒÔͶµÝ´óÔ¼°ÙÍò·âÓʼþ£¬ÉõÖÁÔÚÒ» ̨486Ò»ÌìÉÏÄÜ´¦Àí³¬¹ý10Íò·âÓʼþ£¬ÆðÖ§³Ö²¢ÐÐͶµÝ¡£QmailÖ§³ÖÓʼþµÄ²¢ÐÐͶ µÝ£¬Í¬Ê±¿ÉÒÔͶµÝ´óÔ¼20·âÓʼþ¡£Ä¿Ç°ÓʼþͶµÝµÄÆ¿¾±ÔÚÓÚSMTPЭÒ飬ͨ¹ýSTMP ÏòÁíÍâһ̨»¥ÁªÍøÖ÷»úͶµÝÒ»·âµç×ÓÓʼþ´óÔ¼ÐèÒª»¨·Ñ10¶àÃëÖÓ¡£QmailµÄ×÷Õß Ìá³öÁËQMTP(Quick Mail Transfer Protocol)À´¼ÓËÙÓʼþµÄͶµÝ£¬²¢ÇÒÔÚQmailÖеõ½Ö§³Ö¡£ QmailµÄÉè¼ÆÄ¿±êÊÇÔÚһ̨16MµÄ»úÆ÷ÉÏ×îÖմﵽÿÌì¿ÉÒÔͶµÝ´óÔ¼°ÙÍò¼¶ÊýÄ¿µÄ Óʼþ¡£

¡¡¡¡¿É¿¿ÐÔ£ºÎªÁ˱£Ö¤¿É¿¿ÐÔ£¬QmailÖ»ÓÐÔÚÓʼþ±»ÕýÈ·µØдÈëµ½´ÅÅ̲ŷµ»Ø ´¦Àí³É¹¦µÄ½á¹û£¬ÕâÑù¼´Ê¹ÔÚ´ÅÅÌдÈëÖз¢Éúϵͳ±ÀÀ£»ò¶ÏµçµÈÇé¿ö£¬Ò²¿ÉÒÔ±£ Ö¤Óʼþ²»±»¶ªÊ§£¬¶øÊÇÖØÐÂͶµÝ¡£

¡¡¡¡Ìرð¼òµ¥µÄÐéÄâÓò¹ÜÀí:ÉõÖÁÓÐÒ»¸öµÚÈý·½¿ª·¢µÄ³ÆΪvchkpwµÄadd-onÀ´Ö§³ÖÐé ÄâPOPÓò¡£Ê¹ÓÃÕâ¸öÈí¼þ°ü£¬POP3Óû§²»ÐèÒª¾ßÓÐϵͳµÄÕýʽÕÊ»§¡£

¡¡¡¡Ê¹ÓÃezmlmÖ§³ÖÓû§×Ô¿ØÖƵÄÓʼþÁÐ±í¹¦ÄÜ¡£

¡¡¡¡ÓʼþÓû§ºÍϵͳÕÊ»§¸ôÀ룬ΪÓû§ÌṩÓʼþÕÊ»§²»ÐèҪΪÆäÉèÖÃϵͳÕÊ»§ £¬´Ó¶øÔö¼ÓÁË°²È«ÐÔ¡£

2.Sendmail vs Qmail

¡¡¡¡Ê×ÏÈ£ºsendmailÊÇ ·¢Õ¹ÀúÊ·ÓƾõÄMTA£¬µ±Ç°µÄ°æ±¾ÊÇ8.10.2¡£µ±È»£¬SendmailÔÚ¿ÉÒÆÖ²ÐÔ¡¢Îȶ¨ ÐÔ¼°È·±£Ã»ÓÐbug·½ÃæÓÐÒ»¶¨µÄ±£Ö¤¡£µ«ÊÇInternetÉÏÓкܶàÌû×Ó¶¼ÊǹØÓÚÈç¹û ¹¥»÷Sendmail£¬Õâ¶ÔÓÚ¹ÜÀíÔ±À´ËµÊÇÒ»¸öجÃΡ£SendmailÔÚ·¢Õ¹¹ý³ÌÖвúÉúÁËÒ»Åú¾­Ñé·á¸»µÄSendmail¹ÜÀíÔ±£¬²¢ÇÒ SendmailÓдóÁ¿ÍêÕûµÄÎĵµ×ÊÁÏ£¬³ýÁË SendmailµÄ±¦µä: OReillys sendmail book written by Bryan Costales with Eric AllmanÒÔÍ⣬ÍøÂçÉÏÓдóÁ¿µÄtutorial¡¢FAQºÍÆäËûµÄ×ÊÔ´¡£ÕâЩ´óÁ¿µÄÎĵµ¶ÔÓںܺõÄÀûÓà SendmailµÄ¸÷ÖÖÌØÉ«¹¦ÄÜÊǷdz£ÖØ ÒªµÄ¡£µ«ÊÇSendmaiµ±Ç°À´ËµÊÇÒ»¸ö³ÉÊìµÄMTA¡£

¡¡¡¡µ±È»£¬Sendmail¾ßÓÐһЩȱµã£¬ÆäÌØÉ«¹¦ Äܹý¶à¶øµ¼ÖÂÅäÖÃÎļþµÄ¸´ÔÓÐÔ¡£µ±È»£¬Í¨¹ýʹÓÃm4ºêʹÅäÖÃÎļþµÄÉú³É±äµÄÈÝ Ò׺ܶࡣµ«ÊÇ£¬ÒªÕÆÎÕËùÓеÄÅäÖÃÑ¡ÏîÊÇÒ»¸öºÜ²»ÈÝÒ×µÄÊÂÇé¡£SendmailÔÚ¹ýÈ¥ µÄ°æ±¾ÖгöÏÖ¹ýºÜ¶à°²È«Â©¶´£¬ËùÒÔʹ¹ÜÀíÔ±²»µÃ²»¸Ï¿ìÉý¼¶°æ±¾¡£¶øÇÒ SendmailµÄÁ÷ÐÐÐÔҲʹÆä³ÉΪ¹¥»÷µÄÄ¿±ê£¬ÕâÓкô¦Ò²Óлµ´¦£ºÕâÒâζ×Å°²È«Â© ¶´¿ÉÒԺܿìµØ±»·¢ÏÖ£¬µ«ÊÇͬÑùʹSendmail¸ü¼ÓÎȶ¨ºÍ°²È«¡£ÁíÍâÒ»¸öÎÊÌâÊÇ SendmailÒ»°ãȱʡÅäÖö¼ÊǾßÓÐ×îСµÄ°²È«ÌØÐÔ£¬´Ó¶øʹSendmailÍùÍùÈÝÒ×±»¹¥ »÷¡£Èç¹ûʹÓÃSendmail£¬Ó¦¸ÃÈ·±£Ã÷°×ÿ¸ö´ò¿ªµÄÑ¡ÏîµÄº¬ÒåºÍÓ°Ïì¡£Ò»µ©ÄãÀí ½âÁËSendmailµÄ¹¤×÷Ô­Àí£¬¾ÍSendmailµÄ°²×°ºÍά»¤¾Í±äµÄ·Ç³£ÈÝÒ×ÁË¡£Í¨¹ý SendmailµÄÅäÖÃÎļþ£¬Óû§ÊµÏÖÍê³ÉÒ»ÇпÉÒÔÏëÏóµÃµ½µÄÐèÇó¡£

¡¡¡¡QmailÊÇÒ»¸öÑ¡Ôñ£¬ ÆäÔÚÉè¼ÆʵÏÖÖÐÌرð¿¼ÂÇÁË°²È«ÎÊÌâ¡£Èç¹ûÄãÐèÒªÒ»¸ö¿ìËٵĽâ¾ö·½°¸È磬һ¸ö °²È«µÄÓʼþÍø¹Ø£¬ÔòQmailÊÇÒ»¸öºÜºÃµÄÑ¡Ôñ¡£QmailºÍSendmailµÄÅäÖÃÎļþÍêÈ« ²»Í¬¡£¶ø¶ÔÓÚQmail£¬ÆäÓÐ×Ô¼ºµÄÅäÖÃÎļþ£¬ÅäÖÃĿ¼Öаüº¬ÁË5-30¸ö²»Í¬µÄÎÄ ¼þ£¬¸÷¸öÎļþʵÏÖ¶Ô²»Í¬²¿·ÖµÄÅäÖÃ(ÈçÐéÄâÓò»òÐéÄâÖ÷»úµÈ)¡£ÕâЩÅäÖÃ˵Ã÷¶¼ ÔÚmanÖÐÓкܺõÄÎĵµ£¬µ«ÊÇQmailµÄ´úÂë½á¹¹²»ÊǺܺá£

¡¡¡¡QmailÒª±ÈSendmailСºÜ¶à£¬Æäȱ ·¦Ò»Ð©ÏÖ½ñÓʼþ·þÎñÆ÷Ëù¾ßÓеÄÌØÉ«¹¦ÄÜ¡£Èç²»ÏóSendmail£¬qmail²»¶ÔÓʼþÐÅ ·âµÄ·¢ËÍÕßµÄÓòÃû½øÐÐÑéÖ¤£¬ÒÔÈ·±£ÓòÃûµÄÕýÈ·ÐÔ¡£×ÔÉí²»Ìṩ¶ÔRBLµÄÖ§³Ö£¬ ¶øÐèÒªadd-onÀ´ÊµÏÖ¡££¬¶øSendmailÖ§³ÖRBL¡£Í¬ÑùQmail²»Äܾܾø½ÓÊÕÄ¿µÄ½ÓÊÕ È˲»´æÔÚÐżþ£¬¶øÊÇÏȽ«Óʼþ½ÓÊÕÏÂÀ´£¬È»ºó·µ»Ø²éÎÞ´ËÓû§µÄµÄÓʼþ¡£Qmail ×î´óµÄÎÊÌâ¾Í³öÔÚ·¢ËÍÓʼþ¸ø¶à¸ö½ÓÊÕÕߵĴ¦ÀíÉÏ¡£Èô·¢ËÍÒ»¸öºÜ´óµÄÓʼþ¸øͬ Ò»¸öÓòÖеĶà¸öÓû§£¬Sendmail½«Ö»ÏòÄ¿µÄÓʼþ·þÎñÆ÷·¢ËÍÒ»¸öÓʼþ¿½±´¡£¶ø Qmail½«²¢ÐеØÁ¬½Ó¶à´Î£¬Ã¿´Î¶¼·¢ËÍÒ»¸ö¿½±´¸øÒ»¸öÓû§¡£ÈôÓû§ÈÕ³£Òª·¢ËÍ ´óÓʼþ¸ø¶à¸öÓû§£¬Ê¹ÓÃQmail½«À˷Ѻܶà´ø¿í¡£¿ÉÒÔÕâôÈÏΪ£ºSendmailÓÅ»¯ ½ÚÊ¡´ø¿í×ÊÔ´£¬QmailÓÅ»¯½Úʡʱ¼ä¡£ÈôÓû§ÏµÍ³ÓкܺõĴø¿í£¬Qmail½«¾ßÓиü ºÃµÄÐÔÄÜ£¬¶øÈç¹ûÓû§ÏµÍ³µÄ´ø¿í×ÊÔ´ÓÐÏÞ£¬²¢ÇÒÒª·¢ËͺܶàÓʼþÁбíÐÅÏ¢£¬Ôò SendmailЧÂʸü¸ßһЩ¡£Qmail²»Ö§³Ö.forward(.forwardÔںܶàÇé¿ö϶ÔÓû§ºÜ ÓÐÓô¦)£»²»Ê¹ÓÃ/var/spool/mail£¬¶øÊǽ«Óʼþ´æ·ÅÔÚÓû§homeĿ¼¡£ÏÂÃæÊÇÒ» ЩʹÓÃQmail²»ÈÝÒ×Íê³ÉµÄ¹¤×÷£¬ÒªÊ¹ÓÃQmailÍê³ÉÕâЩ¹¤×÷£¬¿ÉÄÜÐèÒªÓû§×Ô¼º ¶¯ÊÖʵÏÖ»òÕßʹÓõÚÈý·½ÌṩµÄ²»¹»¿É¿¿µÄÄ£¿é¡£

¡¡¡¡QmailµÄÔ´´úÂëÏà¶ÔÓÚSendmailÀ´ËµÒª¸ü¼ÓÈÝÒ×Àí½â£¬Õâ¶ÔÓÚÏ£ÍûÉîÈëµ½ÄÚ ²¿Á˽âMTA»úÖƵÄÈËÔ±À´ËµÊÇÒ»¸öÓŵ㡣QmailÔÚ°²È«ÐÔ·½ÃæÒ²ÒªÎȶ¨Ò»Ð©¡£ Qmail Óкܺõļ¼ÊõÖ§³Ö£¬µ«ÊÇûÓÐÏóSendmailÄÇÑù±»¹ã·ºµØÓ¦ÓúʹóÁ¿ µÄ¹ÜÀíÔ±Óû§Èº¡£QmailµÄ°²×°²»ÏóSendmailÄÇÑù×Ô¶¯»¯£¬ÐèÒªÊÖ¹¤²½Öè¡£¶øÇÒ QmailµÄÎĵµ²»ÈçSendmailÄÇÑùÍêÕûºÍ·á¸»¡£

¡¡¡¡QmailµÄadd-ons±È SendmailÒªÉÙһЩ¡£Ò»°ãÀ´Ëµ¶ÔÓÚ ¾­ÑéÉÔ΢ÉÙһЩµÄ¹ÜÀíÔ±£¬Ñ¡ÔñQmailÏà¶ÔÒªºÃһЩ¡£ Qmail Òª¼òµ¥Ò»Ð©£¬¶øÇÒÆäÌØÉ«¹¦ÄÜÄÜÂú×ãÒ»°ãÓû§µÄÐèÇó¡£SendmailÀàËÆÓÚofficeÌ× ¼þ£¬80%µÄ¹¦ÄÜÍùÍù¶¼²»±»Ê¹Óá£Õâ¾ÍʹQmailÔÚһЩ³¡ºÏ¿ÉÄܱ»¸üÊÜ»¶Ó­Ò»Ð©£¬ Æä¾ßÓÐһЩSendmailËùûÓеĸüÁ÷ÐкÍʵÓõÄÌØÉ«¹¦ÄÜ£¬È磺Qmail¾ßÓÐÄÚÖÃµÄ pop3Ö§³Ö¡£QmailͬÑùÖ§³ÖÈçÖ÷»ú»òÓû§µÄαװ¡¢ÐéÄâÓòµÈµÈ¡£QmailµÄ¼òµ¥ÐÔÒ² ʹÅäÖÃÏà¶ÔÈÝÒ×һЩ¡£

¡¡¡¡Qmail±»ÈÏΪÏà¶ÔÓÚSendmail¸ü¼Ó°²È«ºÍ¸ßЧ£¬ÔËÐÐ QmailµÄһ̨pentium»úÆ÷Ò»Ìì¿ÉÒÔ´¦Àí´óÔ¼ 200,0000ÌõÏûÏ¢¡£

¡¡¡¡qmailÏà¶ÔÓÚÆäËûµÄMTAÒª¼òµ¥ºÜ¶à£¬Ö÷ÒªÌåÏÖÔÚ£º

¡¡¡¡(1)Æä ËûµÄMTAµÄ Óʼþת·¢¡¢Óʼþ±ðÃûºÍÓʼþÁÐ±í¶¼ÊDzÉÓÃÏ໥¶ÀÁ¢µÄ»úÖÆ£¬¶øqmail ²ÉÓÃÒ»ÖÖ¼òµ¥µÄת·¢(forwarding)»úÖÆÀ´ÔÊÐíÓû§´¦Àí×Ô¼ºµÄÓʼþÁбí

¡¡¡¡(2)ÆäËûµÄMTA¶¼ Ìṩ¿ìËÙ¶ø²»°²È«µÄ·½Ê½¼°ÂýµÄ¶ÓÁз½Ê½µÄÓʼþͶµÝ»úÖÆ£»¶øqmail ·¢ËÍÊÇÓÉÐÂÓʼþµÄ³öÏÖ¶ø´¥·¢µÄ£¬ËùÒÔÆäͶµÝÖ»ÓÐÒ»ÖÖģʽ£º¿ìËٵĶÓÁз½Ê½

¡¡¡¡(3)ÆäËûµÄMTAʵ ¼ÊÉÏ°üÀ¨Ò»¸öÌض¨°æ±¾µÄinetd À´¼à¿ØMTAµÄ ƽ¾ù¸ºÔØ£¬¶øqmail Éè¼ÆÁËÄÚ²¿»úÖÆÀ´ÏÞÖÆϵͳ¸ºÔØ£¬ËùÒÔqmail-smtpd ÄÜ°²È«µØ´ÓϵͳµÄinetÀ´ ÔËÐÐsendmailÓÐºÜ¶à µÄÉÌÒµÖ§³Ö£¬¶øÇÒÓÉÓÚ´óÁ¿µÄÓû§Èº£¬ÔÚ»¥ÁªÍøÉÏÓдóÁ¿µÄDZÔÚ¼¼ÊõÖ§³Ö¡£¶ø QmailÖ»ÓкÜÓÐÏ޵ļ¼ÊõÖ§³Ö¡£Óмҹ«Ë¾inter7.comÌṩ¶ÔQmailµÄÖ§ ³Ö£¬¸Ã¹«Ë¾Í¬ÑùÌṩÁËÃâ·ÑµÄadd-ons£¬°üÀ¨Ò»¸ö»ùÓÚwebµÄ¹ÜÀí¹¤¾ß-QmailAdmin¼°Ò»¸öͨ¹ývpopmailµÄ¶ÔÐéÄâÓòµÄÖ§³Ö£¬ÉõÖÁ¾ßÓÐÒ»¸ö»ùÓÚwebµÄ¿Í»§½è½Ó¿Ú-- SqWebMail¡£

¡¡¡¡Qmail»¹¾ßÓÐһЩÆäËûµÄȱº¶¡£Èç Ëü²»ÊÇÍêÈ«×ñ´Ó±ê×¼£¬Ëü²»Ö§³ÖDSN£¬×÷ÕßÈÏΪDSNÊÇÒ»¸ö¼´½«ÏûÍöµÄ¼¼Êõ£¬¶ø QmailµÄVERP¿ÉÒÔÍê³ÉͬÑùµÄ¹¤×÷£¬¶øÓÖ²»ÏóDSNÒÀÀµÓÚÆäËûÖ÷»úµÄÖ§³Ö¡£Qmail ÁíÍâÒ»¸öÎÊÌâÊÇÆä²»×ñ´ÓÖ§³Ö7bitϵͳ±ê×¼£¬¶øÿ´Î¶¼·¢ËÍ8bit¡£ÈôÓʼþ½ÓÊÕÒ» ·½²»ÄÜ´¦ÀíÕâÖÖÇé¿ö£¬¾Í»á³öÏÖÓʼþÂÒÂëµÄÇé¿ö¡£

¡¡¡¡´Ó°²È«ÐÔÀ´½²£¬SendmailÒª±È Qmail²îһЩ£¬SendmailÔÚ·¢Õ¹ÖгöÏÖ¹ýºÜ¶àºÜÖøÃûµÄ°²È«Â©¶´£»¶øQmailÏà¶ÔÒª ¶ÌС¾«º·£¬µ«ÊÇÈÔÈ»ÌṩÁË»ù±¾µÄSTMP¹¦ÄÜ¡£¶øQmailµÄ´úÂë×¢ÊÍÒªÉÙһЩ¡£ QmailµÄÒ»¸öºÜºÃµÄÌØÉ«ÊÇÆäÖ§³ÖÒ»ÖÖ¿ÉÑ¡µÄ»ùÓÚĿ¼µÄÓʼþ´æ´¢¸ñʽ£¬¶ø²»ÊÇ Ê¹ÓÃÒ»¸öºÜ´óµÄÎļþÀ´´æ´¢Óû§ËùÓеÄÓʼþ¡£ÈôÓû§µÄÓʼþ·þÎñÆ÷½øÐкܶàµÄ POP3·þÎñ£¬ÔòÕâÖÖÓʼþ´æ´¢¸ñʽ¿ÉÒÔÌá¸ßЧÂÊ¡£µ«ÊÇÒź¶µÄÊÇPine×ÔÉí²¢²»Ö§³Ö ÕâÖÖ´æ´¢¸ñʽ£¬Èç¹ûÐèÒª¿ÉÒÔʹÓÃһЩ²¹¶¡À´´ïµ½Õâ¸öÄ¿µÄ¡£

¡¡¡¡QmailµÄÓŵãÊÇ£ºÃ¿¸öÓû§¶¼¿ÉÒÔ ´´½¨ÓʼþÁбí¶øÎÞÐë¾ßÓиùÓû§µÄȨÏÞ£¬ÈçÓû§"foo"¿ÉÒÔ´´½¨ÃûΪ foo-slashdot, foo-linux,foo-chickens µÄÓʼþÁÐ±í£¬ÎªÁËÌṩ¸üºÃµÄ¹¦ÄÜ£¬ÓÐÒ»¸ö½Ð ezmlm(EZ Mailing List Maker)µÄ¹¤¾ß¿ÉÒÔÖ§³Ö×Ô¶¯×¢²áºÍ×¢Ïú¡¢Ë÷ÒýµÈMajordomoËù¾ßÓÐ µÄ¸÷ÖÖ¹¦ÄÜ£¬µ«ÊǶ¼ÊÇCLIÇý¶¯µÄ£¬Ö»ÐèÒª±à¼­ºÜÉÙµÄÎļþ¡£Qmail·Ç³£ÊʺÏÔÚС ÐÍϵͳϹ¤×÷£¬Ò»°ãÖ»Ö§³Ö½ÏÉÙµÄÓû§»òÓÃÀ´¹ÜÀíÓʼþÁÐ±í¡£QmailËٶȿ첢ÇÒ ¼òµ¥£ºQmailÊǵ±ÄãÏ£Íû°²È«ÇÐÈÝÒ×ÅäÖõÄ×î¼ÑµÄÑ¡Ôñ£»Qmail¿ÉÒÔÔÚ2¸öСʱÄÚ ¸ã¶¨ÅäÖ㬶øSendmail¿ÉÄÜÔÚÁ½ÌìÄÚ¶¼¸ã²»¶¨¡£

¡¡¡¡rocketmail internic µÈ¶¼Ê¹Óà qmailÀ´¹¹½¨

Èý¡¢ZMailer

¡¡¡¡ZMailerÊÇÒ»¸ö¸ßÐÔÄÜ¡¢¶à ½ø³ÌµÄUnixϵͳÓʼþ³ÌÐò¡£ [ a.k.a. MTA per X.400 parlance ]£¬Æä¿ÉÒÔ´ÓÏÂÃæµÄ·þÎñÆ÷ftp://ftp.funet.fi/pu b/unix/mail/zmailer/ ×ÔÓÉÏÂÔØ¡£ÆäÒ²ÊÇ°´ÕÕµ¥¿éģʽÉè¼ÆµÄ¡£ÈçHotmailµÈÓʼþϵͳ¾ÍÊÇÓÃZmailer¹¹ ½¨µÄ¡£

ËÄ¡¢Exim

¡¡¡¡EximÊÇÓÉCambridge ´óѧ¿ª·¢µÄ×ñ´ÓGPLµÄMTA£¬Æä·ç¸ñÉÏÀàËÆÓëSmail 3 £¬µ«ÊDZÈSmail 3¸ü¼ÓÍêÉÆ¡£µ±Ç°×îа汾ÊÇ3.15¡£ÆäÖ÷Õ¾µãΪhttp://www.exim.org/¡£Æä×î´óµÄÌصã¾ÍÊÇ ÅäÖüòµ¥ÐÔ£¬µ«ÊÇÆ䰲ȫÐÔ²»ÈçQmail¼°Postfix¡£

¡¡¡¡ÏÂÃæÊǶԼ¸ÖÖMTAµÄÌصãµÄ±È½Ï£¬×ۺϵÄÀ´½²£¬QmailºÍ Postfix¶¼ÊǺܲ»´íµÄMTA,Ñ¡ÔñµÄ±ê×¼ÍùÍùÊǸöÈ˵ÄϲºÃÎÊÌ⣬Postfix·¢Õ¹ÀúÊ· Òª±ÈQmail³ÙһЩ¡£


MTA ³ÉÊìÐÔ °²È«ÐÔ ÌØÉ« ÐÔÄÜ Sendmail¼æÈÝÐÔ Ä£¿é»¯Éè¼Æ
qmail medium high high high addons yes
Sendmail high low high low x no
Postfix low high high high yes yes
exim medium low high medium yes no



¡¡¡¡µ±È»³ýÁËÕâÀï½éÉܵļ¸ÖÖMTAÒÔÍ⣬»¹ÓÐ Smail, Post.Office, the Sun Internet Mail Server (SIMS), MMDF, CommuniGate, PMDF, Netscape Messaging Server,Obtuse smtpd/smtpfwdd,Intermail,MD SwitchµÈÆäËûÉÌÒµ»òÕßÃâ·ÑµÄMTA¿ÉÒÔÑ¡Ôñ¡£

Îå¡¢Ïà¹ØÁ´½Ó×ÊÔ´

¡¡¡¡Postfix: http://www.postfix.org/

¡¡¡¡Zmailer:http://www.zmailer.org/ (GPL)

¡¡¡¡Qmail :http://www.qmail.org/ (license is unclear)

¡¡¡¡Sendmail :http://www.sendmail.org/ (GPL)
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. sunspotlv ÓÚ 2013-06-24 17:21:32·¢±í:

    ¿´ Ò»ÏÂ

  2. 657129880@qq.co ÓÚ 2013-04-21 19:11:08·¢±í:

    лл·ÖÏí£¡£¡£¡

  3. xiangping ÓÚ 2006-04-14 00:09:25·¢±í:

    ºÃ