º¥ý¡A½T»{¤@¤U sendmail ¤w³Q¦w¸Ë¤F¡C Sendmail ·|±Æ¦C¤º³¡¤Î¥~³¡ªº¶l¥ó ¡A¦Ó¥B·|±N¥~³¡¶l¥óµLªk³Q±H¥X¥h®É°µ½w½Ä¡Aµ¥«Ý¨ì¥¦¥i¥H³Q¶Ç°e¥X¥h¬°¤î¡C
Sendmail ¬O¥H /etc/sendmail.cfªº³]©w¨Ó¿ì¨Æ¡C ¦³¥÷¾A¦X ISP ¨Ï¥ÎªÌªº¨Ò¤l¥i¥Ñ¤U³B§ä¨ì¡G
ftp://ftp.sol.no/user/egilk/sendmail.cf
³o¬O¥H
procmail ¬°°ò·Ç¨Ó·í°µ¤@Ӷǻ¼¥N²z¤H delivery agent
¡A·íµM¤]¯à¥H
deliver¨Ó¨ú¥N¥¦¡C
¦pªG¦b»Ýn¤@Ó ¥¿¦¡ªººô°ìdomain address ¤~¯à±H¥~³¡¶l¥óªº¸Ü¡A¨º¶·¦b sendmail.cfÀÉùØ°µ«ü©w¡G
# who I masquerade as (null for no masquerading)
DMacme.xz
³o°²³]§Aªº¥»¦aºÝªº¨Ï¥ÎªÌ¦WºÙ»P§A¦b ISP ¤Wªº¨Ï¥ÎªÌ¦WºÙ¬O¬Û¦Pªº¡C
¦pªG¤£¦Pªº¸Ü¡A¥u»Ý¥t¥~±N¥þ¦W«ü©w¦p¤U¡G
DMdick@acme.xz
Sendmail ²{¦b¤w³Q«Øºc¦¨ ª½±µ¦a ±H°e«H¥óµ¹¦¬¥ó¤H¤F¡C·QÁקK
³s±µ¨ì¨º¨Ç¦¬«HºÝ«ÜºC¤S¤£«Ü³W«ß¦Óªá¤Ó¦h®É¶¡©Î¬O«ÂЪº³s±µªº¸Ü¡A¨Ï¥Î
¤@Ó ISP °µ¬°½w½Ä´N¤ñ¸û¦n¨Ç¡C§ÚÌ¥i¥H¨Ï¥Î DS ¨Ó«ü©w¡G
# "Smart" relay host (may be null)
DSmail.acme.xz
ª`·N¡A sendmail ·|¹ï
¤ºªº¸õ®æ¦r¤¸ tab
«Ü±Ó·P¡C
sendmail.cf¡C§A¥i¥H¨Ï¥Î
vi¤å¦r½s¿è¾¹
¨Ó½T»{³o¨Ç tab ¦r¤¸¨S³Q§ó°Ê¡C
Email ªº±µ¦¬±`¥i¥H¸g¥Ñ¨Ï¥Î POP3 ¨ó©w¨Ó¹F¦¨¡A¦Ó¥¦¥i¥H¦b¨C¦¸ªº³s±µ±Ò°Ê®É §Yªì©l¤Æ¡C¤U±¬O¤@Ó´ú¸Õ¥Î©R¥O¤â½Z¡G
sendmail -q
popclient -3 -v mail.acme.xz -u dirk -p "PrettySecret" \
-k -o /usr/spool/mail/dirk
³oÓ©R¥O¤â½Z¥i¥H¦b PPP ³s±µ«á¶}©l°õ¦æ¡Cª`·N¡A³oÓ©R¥O¤â½Z
¥u¬O¥Î¨Ó°µ´ú¸Õ¥Î¡A©Ò¥H½Ð½T»{¥»¦aºÝªº¶lµ©¦b¥¦°õ¦æ®É¨S¦³³Q°Ê¨ì¡C -k
¿ï¶µ¬O
¶l¥ó³Q«O¯d¦b ISP ªº¶lµ©¤º¡A§A¥u¬O²³æ¦a¨ú±o¤@¥÷¶l¥óªº«þ¨©¦Ó¤w¡C·íµM§A
¦p¦³¦Û«H§Aªº³]©w³£¹ï¤F¡A¨º¤]¥i±N³oӿﶵ²¾°£¡C
ª`·N¡A§Aªº±K½X·|³QÅã¥Ü¦b©R¥O¦C¤W¡AÁÙ¦³¡A popclient ¤w·U¨Ó·U°h¬y¦æ¤F¡A§A¥i¥H¦Ò¼{¨Ï¥Î fetchmail¡C
§A¥i¥H¦b¤U±©Ò¦Cªº¦a¤è§ä¨ì§ó¦w¥þ§ó¦nªº©R¥O¤â½Zª©¥»¡C
ftp://ftp.sol.no/user/egilk/pop-script.tar.gz
³o¥÷©R¥O¤â½Z»Ýn procmail ³Q¦w¸ËµÛ¡A¦ý§Aµ´¤£·|«á®¬ªº¡C ¤j³¡¥÷ªº¨ÑÀ³°Óª©³£¦³¥¦¡A§A¤]¥i¥H¸Õ¸Õ¡G
ftp://sunsite.unc.edu/pub/Linux/system/Mail/mailhandlers/procmail-3.10-2.tar.gz
Procmail ¬O¤@Ó²³æ¤S´I¼u©Êªº¤u¨ã¡A¥¦¥i¥H¨Ì¦UºØ¤£¦P±¡ªp¨Ó±Æ§Ç¦¬¶i¨Óªº¹q¤l¶l¥ó¡C ¤£¶È¦p¦¹¡AÁÙ¥i¦Û°Ê¤Æ³B²z¹³¦³Ãö vacation µ¥µ¥ªº°T®§¡C
µù¡A·í§Ú̹³³oÓ¨Ò¤l¤@¼Ëª½±µ¨Ï¥Î procmail ®É¡A³oÓ±¡§Î©M procmail ªº¤å¥óùØ©Ò»¡ªº¬O¤£¤@¼Ëªº¡C §Ų́䣻Ýn.forward ¡A¤]¤£»Ýn .procmailrc¡C«áªÌ¬O·í§Ú Ì»Ýn±Æ§Ç¶l¥ó®É¤~»Ýn¥Î¨ì¡C
Ū¨ú»P±H°e¹q¤l¶l¥óªº¨Ï¥ÎªÌ¤¶±¥i¥H³Q§ä¨ì¹³ pine ©Î elm¡C
ALT: Fetchmail ¥Ø«e¤w¸gÅܦ¨¤@Ó popclient ªº§ï¨}«áªº´À¥N«~¤F¡C³Ì·sªºª©¥»¥i ±q¤U¦C¦aÂI¨ú±o¡G
ftp://ftp.ccil.org/pub/esr/fetchmail/fetchmail-3.3.tar.gz
ALT:±`¨Ï¥Î¼·±µ¤è¦¡¤Wºôªº ISP¨Ï¥ÎªÌ¨Ã¤£¬O¯uªº»ÝnÅý sendmail ºëÆFdaemon ±Ò°Ê¡C¬°¤F´î¤Ö¸ê·½ªº¨Ï¥Î©Î¬O¿ù»~µo¥Í¡A§A¤]¥i¥H±N¥ô¦óªº sendmail ªº±Ò°Ê³£µù¸Ñ¨ú®ø¡A¹³±`¨£©ó /etc/rc.d/rc.M Àɤºªº(³oÂInºÝµø¨ÑÀ³°Óª©ªº¦Ó©w)¡C
ALT: ¬°¨ú¥N sendmail ªº¸Ü¡A§A¤]¥i¥H¨Ï¥Î§ó²³æªº smail¡C §A¥i¥H¦b Linux Network Administrator's Guide ùاä¨ì¤@¥÷¥¦ªº«Ü¦n´yz(ÁÙ¦³³o¨à´£¨ìªº¨ä¥L¨Æ¶µ)¡C
ALT: ÁÙ¦³¤@Ó m4 ¥¨¶°®M¥ó¡A¥¦¥i¥H°µÓ«Ü·sªº /etc/sendmail.cf¡C¥un²³æ¦a¦w¸Ë¡A´N¦n¹³¬Oקï¤@Ó¤w¦s¦bªº«Øºc¤@¼Ë¡C
ALT: ÁÙ¦³³\¦h§ó²³æ¦ý¯Ê¥F¼u©Êªº´À¥Nµ{¦¡¥i¥H¥Î¨Ó³B²z¹q¤l¶l¥ó¡C Pine ¥un³Q¾A·í¦a«Øºc ´N¥i¥H¿W¥ß°õ¦æ¡A¨Ò¦p¡G¥¦ÁÙ¥i¥H¨Ï¥Î¨ä¥Lºô¶Âsø°¾¹ªº³Ì·sª©¥»¡C
ALT: Many are very enthusiastic regarding the Emacs companion Gnus as an email and news handler. ¸Ô²Óªº¸ê°T¥i¦b¤U±§ä¨ì¡G
ALT: An alternative to popclient is pop-perl5. It is available from:
ftp://sunsite.unc.edu/pub/Linux/System/Mail/pop-perl5-1.1.tar.gz