ÀÌ ¹æ¹ýÀº Á÷Á¢ ¼Ò½º¸¦ ¹Þ¾Æ ÄÄÆÄÀÏÇÏ°í ¼³Ä¡ÇÏ´Â ¹æ¹ýÀÌ´Ù. ¸ðµç ¸®´ª½º À¯Àú¿¡°Ô À¯¿ëÇÏ°í ƯÈ÷ ½½·º¿þ¾î »ç¿ëÀÚ¿¡°Ô ´õ¿í ±×·¸´Ù. ³»°¡ ¼±È£ÇÏ´Â ¹æ¹ýÀ̱⵵ ÇÏ´Ù. ^^; (¸ÞÀÌÀúµµ¸ð´Â Ư¼º»ó ÆÐÅ°Áö ¹æ½ÄÀÇ ÀνºÅç º¸´Ù´Â ¼öµ¿À¸·Î Á÷Á¢ ¼³Ä¡ÇÏ´Â °ÍÀÌ ¾îÂÀ ´õ ÆíÇÒ Áöµµ ¸ð¸£°Ú´Ù.
À§ÀÇ ftp»çÀÌÆ®·ÎºÎÅÍ ´Ù¿î·ÎµùÇÑ majordomo-1.94.4.tgz¸¦ Ǭ´Ù. tar.Z³ª tarÆÄÀϵµ ã¾Æº¼ ¼ö ÀÖ´Ù. Àû´çÇÑ µð·ºÅ丮 ¹Ø¿¡ ¸ÞÀÌÀúµµ¸ð¸¦ Ǭ´Ù.
[root@kuls /root]# tar xvfz majordomo-1.94.4.tgz
´Ù¿î·Îµù¿¡ ½ÇÆÐÇÏÁö ¾Ê¾Ò°Å³ª ¹ÏÀ» ¼ö ÀÖ´Â »çÀÌÆ®¿¡¼ ¹Þ¾Ò´Ù¸é ¾Æ¹«·± ¿¡·¯¾øÀÌ Ç®¸± °ÍÀÌ´Ù. ¸ÞÀÌÀúµµ¸ð¸¦ ÄÄÆÄÀÏÇÏ°í ¼³Ä¡ÇÏ´Â °ÍÀº ¹«Ã´À̳ª °£´ÜÇÏ´Ù. ÀÌÁ¦
[root@kuls /root]# cd majordomo-1.94.4
¸¦ ÅëÇØ ¸ÞÀÌÀúµµ¸ð µð·ºÅ丮·Î µé¾î°¡ ´ÙÀ½ÀÇ °úÁ¤À» µû¸£µµ·Ï ÇÑ´Ù.^^;;
Áö±ÝºÎÅÍ´Â ·çÆ® ±ÇÇÑÀ¸·Î ÇÁ·Î±×·¥À» ¼³Ä¡ÇÏ°í, ¼³Á¤ÇÑ´Ù. °³ÀÎÀÇ µð·ºÅ丮¿¡ ¼³Ä¡ÇÒ ¼öµµ ÀÖÀ¸³ª ¸î¸î °úÁ¤Àº ·çÆ®°¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù.
±× ù°·Î MakefileÀ» ¹Ù²Ù¾îÁÖ¾î¾ß ÇÑ´Ù. Àڽſ¡°Ô Àͼ÷ÇÑ ¿¡µðÅ͸¦ ÀÌ¿ëÇÏ¿© MakefileÀ» ¿¬´Ù. ¿ì¼±Àº Perl°ú C ÄÄÆÄÀÏ·¯¿¡ ´ëÇÑ ¼³Á¤À» ¸ÂÃß¾îÁÖ¾î¾ß ÇÑ´Ù. C ÄÄÆÄÀÏ·¯ÀÇ °æ¿ì ÀϹÝÀûÀÎ ¸®´ª½º ¹èÆ÷º»À̶ó¸é Ưº°È÷ ¼Õ´ëÁö ¾Ê¾Æµµ µÉ °ÍÀÌ´Ù. ÆÞÀÇ °æ¿ì¿¡´Â Á» ´õ ½Å°æÀ» ¾²°í Á¤È®ÇÑ µð·ºÅ丮¸¦ ¸ÂÃß¾îÁֱ⠹ٶõ´Ù. ÆÞÀÇ À§Ä¡¸¦ ã´Â ¹æ¹ýÀº À§¿¡¼ Çѹø ¾ð±ÞÇß´Ù.
ÀÌÁ¦ ¸ÞÀÌÀúµµ¸ðÀÇ ¼³Ä¡ µð·ºÅ丮¸¦ Á¤ÇØÁÖ¾î¾ß ÇÑ´Ù. Ưº°È÷ ¼Õ´ëÁö ¾ÊÀ»
°æ¿ì µðÆúÆ®·Î /usr/test/majordomo-1.94.4/
¿¡ ¼³Ä¡µÇ¹Ç·Î Á»´õ
À¯¿ëÇÑ µð·ºÅ丮·Î ¹Ù²Ù¾îÁÖ´Â °ÍÀÌ ÁÁÀ» °Í
°°´Ù. ¿©±â¼´Â/usr/lib/majordomo/
·Î ¼³Á¤ÇÏ°í ¼³¸íÀ»
°è¼ÓÇÏ°Ú´Ù. ¸¶Áö¸·À¸·Î ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚÀÇ UID¿Í GID¸¦
Àû¾îÁØ´Ù. À¯Àú ¾ÆÀ̵ð¿Í ±×·ì¸íÀÌ ¾Æ´Ï¶ó´Â °ÍÀ» ¸í½ÉÇϱ⠹ٶõ´Ù. UID¿Í
GID´Â id
¸í·ÉÀ¸·Î ¾Ë¾Æº¼ ¼ö ÀÖ´Ù. ³ª¸ÓÁö ¿É¼ÇÀÇ °æ¿ì´Â ¸®´ª½º¿¡
¸ÂÃß¾îÁ®¼ ¼³Á¤ÀÌ µÇ¾î ÀÖÀ¸¹Ç·Î Ưº°È÷ ¼Õ´î °÷ÀÌ ¾ø´Ù. ´ÙÀ½Àº Áö±Ý±îÁö
º¯°æÇÑ MakefileÀÌ´Ù.
# Put the location of your Perl binary here: PERL = /usr/bin/perl ^^^^^^^^^^^^^^^^^^^^ # What do you call your C compiler? CC = cc # Where do you want Majordomo to be installed? This CANNOT be the # current directory (where you unpacked the distribution) W_HOME = /usr/lib/majordomo ^^^^^^^^^^^^^^^^^^^^^^^^^^^ # Where do you want man pages to be installed? MAN = $(W_HOME)/man #MAN = /usr/man #ÀÌ·± ½ÄÀ¸·Î ¸Å´º¾ó µð·ºÅ丮¿¡ ¸ðÀ¸´Â °Íµµ ÁÁÀº »ý°¢ÀÌ´Ù. ^^^^^^^^^^^^^^^ # You need to have or create a user and group which majordomo will run as. # Enter the numeric UID and GID (not their names!) here: W_USER = 503 W_GROUP = 2
¹°·Ð ±×·¸°ÚÁö¸¸, À§ÀÇ ³»¿ëÀº ³ªÀÇ ½Ã½ºÅÛ¿¡ ¸ÂÃß¾îÁ® ÀÖ´Ù! ±×³É ¹è²¸¼´Â ¾ÈµÈ´Ù.
¼Ò½º¿Í ÇÔ²² Á¦°øµÇ´Â sample.cf¸¦ majordomo.cf·Î º¹»çÇÑ´Ù.
[root@kuls /root/majordomo-1.94.4]# cp sample.cf majordomo.cf
majordomo.cf¿¡¼´Â ´ÙÀ½ÀÇ ³»¿ëÀ» °íÃÄ¾ß ÇÑ´Ù.
$whereami : ¸ÞÀϸµ ¸®½ºÆ®¸¦ ¿î¿µÇÒ ¼¹öÀÇ µµ¸ÞÀÎ ³×ÀÓÀ» ½áÁØ´Ù.
$whoami : ¸ÞÀϸµ ¸®½ºÆ®¿¡¼ °¡ÀÔÀÚÀÇ ¿äûÀ» ó¸®ÇÏ´Â ¸ÞÀÏ ¿¤¸®¾î½º, ¿¡ÀÌÀüÆ®, µðÆúÆ® °ªÀÎ majordomo¸¦ ¾²µµ·Ï ÇÏÀÚ. ¹Ýµå½Ã "»ç¿ëÀÚ@µµ¸ÞÀÎÀ̸§"ÀÇ Çü½ÄÀ¸·Î ½áÁÖ¾î¾ß ÇÑ´Ù. ¹Ø¿¡ ¿¹Á¦¿Í °°ÀÌ º¯¼ö ÇüÅ·Π½áÁ־ µÈ´Ù.
$whoami_owner : owner¶ó´Â ´Ü¾î°¡ ¸¹ÀÌ ³ª¿À´Âµ¥ ÀÌ¿¡ ´ëÇؼ´Â µÚ¿¡ ¼³¸íÇϵµ·Ï ÇÑ´Ù. ¿©±â¿¡´Â ¿ì¸®°¡ ¸¸µç ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ kulslist¸¦ ½áÁÖµµ·Ï ÇÑ´Ù.
$homedir : ´ç¿¬È÷, Makefile¿¡¼¿Í ¶È°°Àº °÷À̾î¾ß ÇÑ´Ù.
$listdir, $log : Ưº°È÷ º¯°æÇÏÁö ¾Ê¾Æµµ µÈ´Ù. ¼³Ä¡ ÈÄ ÀÚµ¿À¸·Î ¸¸µé¾îÁø´Ù.
$sendmail_command : ÆÞÀÇ À§Ä¡ ´ÙÀ½À¸·Î Áß¿äÇÏ´Ù. ÆÞÀÇ À§Ä¡¸¦ È®ÀÎÇÏ´Â ¹æ¹ý°ú ºñ½ÁÇÑ ¹æ¹ýÀ» ½á¼ Á¤È®È÷ Àûµµ·Ï ÇÑ´Ù.
$whereami "kuls.korea.ac.kr"; #¼¹öÀ̸§ $whoami "Majordomo\@$whereami"; #¸ÞÀϸµ ¸®½ºÆ® ¿¡ÀÌÀüÆ® #ÀÌ ¿¡ÀÌÀüÆ®´Â Ưº°È÷ ¹Ù²ÙÁö ¾Ê´Â °ÍÀÌ °¡ÀÔÀڵ鿡°Ô Æí¸®ÇÏ´Ù. $whoami_owner "kulslist\@$whereami"; #¸ÞÀϸµ ¸®½ºÆ® ¿¡ÀÌÀüÆ® ¼ÒÀ¯ÀÚ(?) $homedir "/usr/lib/majordomo"; #Makefile¿¡¼¿Í °°ÀÌ $listdir "$homedir/lists"; #¸®½ºÆ® µð·ºÅ丮 $log "$homedir/Log"; #·Î±× ÆÄÀÏ µð·ºÅ丮 $sendmail_command "/usr/lib/sendmail"; #sendmailÀÌ ÀÖ´Â À§Ä¡
³ª¸ÓÁö´Â ¾ÆÁ÷±îÁö Ưº°È÷ º¯°æÇÒ ÇÊ¿ä°¡ ¾ø´Ù. ÃßÈÄ ÇÊ¿äÇÑ °æ¿ì ¼³Á¤Çϵµ·Ï ÇÑ´Ù. ¼³Ä¡ °úÁ¤¿¡¼´Â À§ÀÇ ³»¿ëÁ¤µµ¸¸ Á¤È®È÷ ½á ÁÖ¸é µÉ °ÍÀÌ´Ù. ÆÞ Çü½Ä¿¡ ¸Â°Ô ;¸¦ ºÙÀÌ´Â °ÍÀ» ÀØÁö ¸»ÀÚ.
ÀÌÁ¦ ´ÙÀ½ ¸í·ÉÀ» ÅëÇØ ¼³Ä¡À» ÇØ¾ß ÇÑ´Ù. °¢ °úÁ¤¿¡¼ ¿¡·¯°¡ ¹ß»ýÇÏÁö ¾Ê´Â´Ù¸é ´ÙÀ½ °úÁ¤À¸·Î ³Ñ¾î°£´Ù. ¿¡·¯°¡ ³´Ù¸é gccÀÇ ¹öÀüÀÌ ³Ê¹« ³·°Å³ª, ÆÞÀÇ À§Ä¡°¡ À߸øµÇ¾ú°Å³ª, MakefileÀÌ À߸øµÇ¾ú°Å³ªµîÀÇ ¿øÀÎÀ» ã¾Æº¼ ¼ö ÀÖ´Ù.
[root@kuls /root/majordomo-1.94.4]# make wrapper [root@kuls /root/majordomo-1.94.4]# make install [root@kuls /root/majordomo-1.94.4]# make install-wrapper
Áß¿äÇÑ °ÍÀº make wrappper;make install
±îÁö´Â ¸ÞÀϸµ¸®½ºÆ® °ü¸®ÀÚ
¾ÆÀ̵ð·Î Çصµ µÇÁö¸¸ make install-wrapper
´Â ·çÆ®¾ÆÀ̵ð·Î Çؾß
ÇÑ´Ù´Â °ÍÀÌ´Ù. °³ÀÎÀÇ µð·ºÅ丮¿¡ ¼³Á¤ÇÏ´õ·¡µµ ÀÌ °úÁ¤Àº ·çÆ®°¡ Çؾß
ÇÑ´Ù. ¾î·°Ç Áö±ÝÀº ¼³Ä¡ÇÏ·Á°í ÇÏ´Â »ç¶÷Àº ½±°Ô ·çÆ®±ÇÇÑÀ» ¾òÀ» ¼ö
ÀÖ´Â »ç¶÷À¸·Î °¡Á¤ÇÑ´Ù. °³ÀÎÀÇ µð·ºÅ丮¿¡ ¼³Ä¡ÇÏ°í, ·çÆ®ÀÇ µµ¿òÀ» ¹Þ±â
Èûµç °æ¿ì¿¡ ´ëÇؼ´Â ¹®¼ Áß°£ Áß°£¿¡ ª°Ô ¼Ò°³Çϵµ·Ï ÇÏ°Ú´Ù.
¸ÞÀÌÀúµµ¸ð¿Í wrapperÀÇ ¼³Ä¡°¡ ¿Ã¹Ù¸£°Ô µÇ¾ú´ÂÁö È®ÀÎÇϱâ À§Çؼ ¸ÞÀÌÀúµµ¸ð µð·ºÅ丮·Î À̵¿ÇÑ ÈÄ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ³ª ·çÆ®°¡ ¾Æ´Ñ ÀϹݰèÁ¤À¸·Î ´ÙÀ½ ¸í·ÉÀ» ¼öÇàÇÑ´Ù. wrapper´Â ÀÏÁ¾ÀÇ "±ÇÇѾò±â" ÇÁ·Î±×·¥Àε¥ ÀÌ ÇÁ·Î±×·¥ÀÌ ¿Ã¹Ù·Î ¼öÇàµÇ±â À§Çؼ´Â ÀÏ¹Ý °èÁ¤À¸·Î µ¿ÀÛÇÏ´ÂÁö ¾Ë¾ÆºÁ¾ß Çϱ⠶§¹®ÀÌ´Ù.
[kuls /usr/lib/majordomo]$ cd /usr/lib/majordomo [kuls /usr/lib/majordomo]$ ./wrapper config-test
À§ÀÇ ¸í·ÉÀº ¼³Ä¡ È®ÀÎ °úÁ¤ÀÎ µ¿½Ã¿¡ ¼³Ä¡ÀÇ ¸¶Áö¸· °úÁ¤À»
¼öÇàÇÑ´Ù. ¸ÞÀϸµ ¸®½ºÆ®°¡ µé¾î°¥ lists
µð·ºÅ丮 ·Î±× ÆÄÀÏ, ÀÓ½Ã
µð·ºÅ丮 µîÀ» ¸¸µé°í /usr/lib/majordomo/majordomo.cf ÆÄÀÏÀ» Àоî
¼³Á¤À» ¸¶¹«¸® Áþ´Â´Ù. Å×½ºÆ® µÇ´Â ³»¿ëÀº ´ÙÀ½°ú °°ÀÌ È¸éÀ¸·Î Ãâ·ÂÀÌ
µÈ´Ù.
--------------------- Obvious things: --------------------- ------------------ environment variables ------------------ HOME=/usr/lib/majordomo LOGNAME=kulslist MAJORDOMO_CF=/usr/lib/majordomo/majordomo.cf PATH=/bin:/usr/bin:/usr/ucb SHELL=/bin/sh USER=kulslist --------------------- euid/egid checks --------------------- effective user = kulslist (uid 503) effective group = daemon daemon (gid 2 2 ) ---------------------- uid/gid checks ---------------------- real user = kulslist (uid 503) real group = daemon daemon (gid 2 2 ) ------------------------------------------------------------ Good: 'require'd /usr/lib/majordomo/majordomo.cf okay. Good: found ctime.pl okay. Good: found majordomo_version.pl okay. Good: found majordomo.pl okay. Good: found shlock.pl okay. Good: found config_parse.pl okay. You're running Majordomo Version 1.94.4. --==> Majordomo home directory is /usr/lib/majordomo. ------------------- Include directories ------------------- /usr/lib/majordomo /usr/lib/perl5/5.00502/i386-linux-thread /usr/lib/perl5/5.00502 /usr/lib/perl5/site_perl/5.005/i386-linux-thread /usr/lib/perl5/site_perl/5.005 . --------------------------- Home --------------------------- Good: changedir to /usr/lib/majordomo succeeded. Good: Created a mock lock file. ---------------------- temp directory ---------------------- Good: Created a temp file in $TMPDIR (/usr/tmp). ---------------------- list directory ---------------------- Good: list directory /usr/lib/majordomo/lists has good permissions. --------------------------- log --------------------------- Good: logfile /usr/lib/majordomo/Log exists and is writeable. ------------------------- Mailers ------------------------- You have defined a mailer for delivery. Attempting to verify that this is a valid mailer...looks okay. You have defined a mailer for delivering administrative messages. Attempting to verify that this is a valid mailer...looks okay. ------------------ Checking majordomo.cf ------------------ Checking to see if there are new variables that should be in your majordomo.cf file...Nope, none that I see. Have you configured where Majordomo is? $whereami is kuls.korea.ac.kr Good: yup! ----------------------- end of tests ----------------------- Nothing bad found! Majordomo _should_ work correctly. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
¹ØÀ¸·Î´Â Á¦ÀÛÀÚÀÇ ÇÁ·Î±×·¥ Á¦ÀÛ¿¡ »ç¿ëÇϱâ À§ÇÑ ·¹Áö½ºÅÍ ¿äûÀÌ ³ª¿Ã°ÍÀÌ´Ù. Ưº°È÷ ¼û¾î»ì°í ½ÍÀº »ç¶÷ÀÌ ¾Æ´Ï¶ó¸é µî·ÏÀ» Çϱ⠹ٶõ´Ù. ¸¸ÀÏ 'no'¶ó°í ´ë´äÇϸé '¾î¶ó? Á×°í Àâ³Ä? À×?(Ooooh, like to live dangerously, eh?!)' À̶õ ¸Þ¼¼Áö°¡ ³ª¿Â´Ù.:)
¿¡·¯°¡ ³ª¿Í¼ ¸ØÃá´Ù¸é ¿¡·¯ ¸Þ¼¼Áö¸¦ È®ÀÎÇÏ°í À§ÀÇ °úÁ¤À» µÇÇ®ÀÌÇϱâ
¹Ù¶õ´Ù. ¸ðµç °ÍÀÌ ¿Ã¹Ù¸£°Ô µÈ °Í °°Àºµ¥¿¡µµ Àß µÇÁö ¾Ê´Â´Ù¸é Makefile,
majordomo.cf ±×¸®°í wrapper config-test
¸¦ ÇÏ°í ³ª¿Â ¸Þ¼¼Áö¸¦
ĸÃçÇÑ ÆÄÀÏ ¼¼°¡Áö¸¦ º¸³»Áֱ⠹ٶõ´Ù. ÃÖ´ëÇÑ µµ¿ÍÁÖµµ·Ï ÇÏ°Ú´Ù.
¸¸ÀÏ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚÀÇ ±×·ìÀÌ daemonÀÌ ¾Æ´Ï¶ó¸é À§¿¡ ¾ð±ÞÇÏ°í Áö³ª°¬´ø sendmail.cf¿¡ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ¸¦ 'Trusted user'·Î µî·ÏÇÏ´Â °ÍÀ» ÀØÁö ¸»ÀÚ. Áö±Ý ÇÏ´Â ¸»ÀÌ ¹«½¼ ¸»ÀÎÁö ¸ð¸£°Ú´Â µ¶ÀÚ´Â '¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ ¸¸µé±â' ÀýÀ» ´Ù½Ã Àо±â ¹Ù¶õ´Ù.
ÀÌÁ¦´Â ¸ÞÀÌÀúµµ¸ð¿¡ °ü°èµÈ ¿¤¸®¾î½º¸¦ sendmailÀÇ ¿¤¸®¾î½º ÆÄÀÏ¿¡
Ãß°¡ÇØ ÁÖ´Â °ÍÀÌ´Ù. ÀϹÝÀûÀ¸·Î /etc/aliases
ÆÄÀÏ¿¡ Àû¾îµµ
µÇÁö¸¸, 8.6ÀÌ»óÀÇ sendmailÀ» »ç¿ëÁßÀ̶ó¸é ´ÙÀ½°ú °°Àº ¹æ¹ýÀ¸·Î
¸ÞÀÌÀúµµ¸ð µð·ºÅ丮¿¡ ÀÖ´Â ¿¤¸®¾î½º¸¦ ´Ù¸¥ ÆÄÀÏ·Î Ãß°¡ÇØ ÁÖ´Â °ÍÀ¸·Î
°ü¸®¸¦ Á» ´õ ±ò²ûÇÏ°Ô ÇÒ ¼ö ÀÖ´Ù. sendmail.cf¿¡ "OA"¶óÀÎÀ»
Ãß°¡ÇÑ´Ù. ÄÚµå´Â ´ÙÀ½°ú °°´Ù. ÃÖ±ÙÀÇ ¹öÀü¿¡¼´Â "O AliasFile="À̶ó´Â
½ºÅ¸ÀÏÀÇ ¿É¼ÇÀ» ¾´´Ù. sendmailÀÇ ¸Þ´º¾óÀ» Âü°íÇ϶ó.
OA/usr/lib/majordomo/majordomo.aliases
ȤÀº
O AliasFile=/usr/lib/majordomo/majordomo.aliases
¸¦ Ãß°¡ÇÑ´Ù. ¾Æ¸¶ ÀÚ½ÅÀÇ sendmail.cf °¡ ¾î¶² ½ºÅ¸ÀÏÀÇ ¹®¹ýÀ» ¾²´ÂÁö ±Ý»õ ¾Ë ¼ö ÀÖÀ» °ÍÀÌ´Ù.
ÀÌÁ¦´Â majordomo.aliases ÆÄÀÏÀ» ÀÛ¼ºÇØ¾ß ÇÑ´Ù. ÇÁ·Î±×·¥À» ¼³Ä¡ÇÏ¸é ¼³Ä¡µÈ µð·ºÅ丮¿¡ majordomo.aliases°¡ ¾øÀ» °ÍÀÌ´Ù. ¸Ç¼ÕÀ¸·Î ½ÃÀÛÇصµ µÇÁö¸¸ Á» ´õ ½±°Ô Çϱâ À§ÇØ ¾ÐÃàÀ» Ǭ µð·ºÅ丮¿¡ ÀÖ´Â majordomo.aliases¸¦ ¸ÞÀÌÀúµµ¸ð µð·ºÅ丮·Î Ä«ÇÇÇؼ ¾²µµ·Ï ÇÏÀÚ.
[root@kuls /root/majordomo-1.94.4]# cp majordomo.aliases /usr/lib/majordomo/majordomo.aliases
¸¸ÀÏ ¼ÒÀ¯ÀÚ°¡ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ°¡ ¾Æ´Ï¶ó¸é ¼ÒÀ¯ÀÚ¸¦ ¹Ù²ãÁÖµµ·Ï ÇÑ´Ù.
[kulslist@kuls majordomo]$ chown kulslist.daemon /usr/lib/majordomo/majordomo.aliases
ÀÌÁ¦ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ·Î majordomo.aliasesÆÄÀÏÀ» ÆíÁýÇϵµ·Ï ÇÑ´Ù..
majordomo: "|/usr/lib/majordomo/wrapper majordomo" majordomo-owner: kulslist owner-majordomo: kulslist test: "|/usr/lib/majordomo/wrapper resend -l test test-list" test-list: :include:/usr/lib/majordomo/lists/test owner-test: kulslist test-owner: kulslist test-request: kulslist
À§ÀÇ ÆÄÀÏÀº ¼Ò½º¿Í ÇÔ²² Á¦°øµÇ´Â ¿¹Á¦ÆÄÀÏ¿¡¼ 'you' ¸¸ 'kulslist'·Î
¹Ù²Ù°í µð·ºÅ丮 ¼³Á¤À» À§¿¡¼ ¼³Ä¡ÇÑ µð·ºÅ丮·Î ¹Ù²Ù¾î ÁØ °Í
»ÓÀÌ´Ù. majordomo.aliases¸¦ ¼³Á¤ÇÏ´Â °Í¿¡ ´ëÇؼ´Â µÚÂÊ¿¡ ÇÑ Ã©ÅÍ·Î
ºÐ¸®Çؼ ´Ù·ê °ÍÀÌ´Ù. Áö±ÝÀº ¼³Ä¡¿Í
¼³Ä¡È®ÀΰúÁ¤ÀÌ´Ù. test:
¶ó°í ¾²ÀÎ ¼½¼ÇÀº Á¤¸» Å×½ºÆ® ¿ëÀÌ´Ù. ¹ØÀÇ
°úÁ¤À» °ÅÄ¡°í ³ª¸é ´õ ÀÌ»ó ¾µ ÀÏÀÌ ¾øÀ» °ÍÀÌÁö¸¸ Áö±ÝÀº ÇԺηΠ»èÁ¦ÇÏ´Â
ÀÏÀÌ ¾øµµ·Ï ÇÏÀÚ. ±×·¯³ª ¸ðµç ¼³Ä¡°¡ ³¡³ª°í »õ·Î¿î ¸®½ºÆ®¸¦ ¸¸µé¾î
º»°ÝÀûÀÎ ¼ºñ½º¸¦ ÇÏ°Ô µÉ ¶§¿¡´Â test¸¦ Áö¿ìµµ·Ï ÇÏÀÚ. ¹«½ÉÄÚ ³²°Ü³õÀº
test¸¦ ÀÌ¿ëÇÏ¿© ´©±º°¡°¡ ½ºÆÔ ¸ÞÀÏÀ» º¸³»´Â Åë·Î·Î »ç¿ëÇÒ ¼öµµ ÀÖ´Ù.
À§ÀÇ -owner ¿Í µî¿¡ majordomo¸¦ ¾²´Â °ÍÀº Ä¡¸íÀûÀÎ °á°ú¸¦ ³ºÀ» ¼ö ÀÖ´Ù. Áï À§ÀÇ -owner µîÀÇ ¾Ù¸®¾î½º´Â ¹®Á¦°¡ »ý±â°Å³ª °á°úµîÀ» º¸³»ÁÖ´Â ¸ÞÀÏ ¿¤¸®¾î½ºÀε¥ ¸¸ÀÏ ±×°÷¿¡´Ù°¡ majordomo¸¦ ½á ³õ´Â´Ù¸é ¸®½ºÆ®ÀÇ °¡ÀÔ Å»Åðµî ¸®½ºÆ®¿¡ »ç¿ëÇÏ´Â ¸í·ÉµéÀ» ¹Þ´Â ÀÌ majordomo¶ó´Â ¾ÆÀ̵ð·Î ¸ÞÀÏÀ» º¸³»°Ô µÈ´Ù. ÀÌ °æ¿ì ¸¸ÀÏ ¹®Á¦°¡ »ý°Ü¼ ¸ÞÀÏÀÌ -owner¿¡°Ô·Î Æ÷¿öµù µÇ´Â °æ¿ì majordomo´Â ¸í·ÉÀÌ ¾Æ´Ñ ¸ÞÀÏÀ» ¹Þ°Ô µÇ°í ÀÌ ¸ÞÀÏÀº Àß ¸ø µÈ Çü½ÄÀ̶ó°í -owner ¿¡°Ô º¸³»°Ô µÇ°í ÀÌ°ÍÀº ´Ù½Ã majordomo¿¡°Ô °¡´Â Ä¡¸íÀûÀÎ °á°ú¸¦ ³º°Ô µÈ´Ù. ¹°·Ð ¿©±â¼´Â majordomo¶ó°í µü Àß¶ó ¸»ÇßÁö¸¸ À§ÀÇ majordomo.cf¼³Á¤¿¡¼ $whoami¸¦ ´Ù¸£°Ô ¼³Á¤ÇÑ »ç¶÷Àº ´Ù¸¥ ¾ÆÀ̵𰡠µÉ °ÍÀÌ´Ù. ÇÏ¿©°£ ÁÖÀÇÇϱ⠹ٶõ´Ù.
sendmail¿¡¼´Â ÀÌ aliasesµéÀ» ¹ÙÀ̳ʸ®ÀÇ µ¥ÀÌÅÍ º£À̽º·Î
°ü¸®ÇÑ´Ù. À§¿Í °°ÀÌ ÅؽºÆ®·Î Á¦ÀÛµÈ aliases¸¦ newaliases
¸í·ÉÀ»
ÅëÇØ ¹ÙÀ̳ʸ®·Î ¹Ù²Û´Ù. ÀÌ ¸í·ÉÀº ·çÆ®·Î ÇØ¾ß ÇÑ´Ù.(¸ÞÀÌÀúµµ¸ð¸¦
»ç¿ëÇϴµ¥ ÀÖ¾î¼ ·çÆ®ÀÇ ±ÇÇÑÀÌ ÇÊ¿äÇÑ °æ¿ì´Â
ÀÌ´Ù. ¸¸ÀÏ ·çÆ®°¡ ÇÑ ¹ø¸¸ µµ¿ÍÁشٰí ÇÑ´Ù¸é sendmail.cf ³»¿¡ O
AutoRebuildAliase
¿É¼ÇÀ» »ç¿ë°¡´ÉÇÏ°Ô ¼³Á¤ÇØ ³õ¾Æ ÀÚµ¿À¸·Î ¿¤¸®¾î½º¸¦
°»½ÅÇÏ´Â °Íµµ ÁÁÀº ¹æ¹ý Áß ÇϳªÀÌ´Ù.)
¾î·µç ·çÆ®·Î aliases¸¦ °»½ÅÇÑ´Ù.
[root@kuls /root]# newaliases
À̶§ majordomo.aliases¸¦ À§ ¿¹Á¦¿Í °°ÀÌ /usr/lib/majordomo/ ¿¡ À§Ä¡½ÃÄ×´Ù¸é µ¥ÀÌÅÍ º£À̽º¸¦ »ý¼ºÇÒ ¼ö ¾ø´Ù¸é¼ ¿¡·¯¸¦ ³½´Ù. Áï newaliases¸¦ ÇØÁÖ±â Àü¿¡ ´ÙÀ½°ú °°ÀÌ µ¥ÀÌÅͺ£À̽º ÆÄÀÏÀ» ¸¸µé¾î ÁÖ¾î¾ß ÇÒ °ÍÀÌ´Ù. À̶§´Â ¹Ýµå½Ã root°¡ ÇØÁÖ¾î¾ß ÇÑ´Ù. ÀÏ¹Ý °èÁ¤À¸·Î ÇÏ°Ô µÇ¸é »ý¼ºÀÌ ¾ÈµÈ´Ù´Â ¿¡·¯¸Þ¼¼Áö¸¦ ¸¸³ª°Ô µÉ °ÍÀÌ´Ù. ¾Æ·¡ majordomo.aliases.db ÆÄÀÏÀº root.root¼ÒÀ¯¿¡ 644·Î »ý±â°Ô µÈ´Ù.
[kulslist@kuls majordomo]$ su - [root@kuls /root]# touch /usr/lib/majordomo/majordomo.aliases.db [root@kuls /root]# newaliases
¶ÇÇÑ º¸¾È¹®Á¦·Î majordomo.aliases.db°¡ À§Ä¡ÇÏ´Â µð·ºÅ丮ÀÇ ÆÛ¹Ì¼Ç ¿ª½Ã ÁÖÀÇÇÏ¿©¾ß ÇÑ´Ù. ¹°·Ð µð·ºÅ丮 Æ۹̼ÇÀ» 777°°Àº ½ÄÀ¸·Î ¸¸µéÁö´Â ¾ÊÀ¸¸®¶ó ¹Ï´Â´Ù. ¾Æ·¡¿Í °°ÀÌ majordomo.aliases.db ÆÄÀÏÀÌ ¿Ã¹Ù¸£°Ô °»½ÅµÇ¾ú´Ù¸é ¼³Ä¡´Â ³¡³ °ÍÀÌ´Ù.
/etc/aliases: 16 aliases, longest 17 bytes, 190 bytes total /usr/lib/majordomo/majordomo.aliases: 15 aliases, longest 141 bytes, 782 bytes total
À§¿¡¼ »ìÆ캻 ³»¿ëÀº ´ëºÎºÐ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚÀÇ °üÁ¡¿¡¼ »ý°¢ÇÑ °ÍÀÌ´Ù. ÇÊÀÚ¿¡°Ô ¿Â ¸ÞÀÏÁß¿¡ °èÁ¤ ¼ºñ½º¸¦ ÇÏ´Â ½Ã½ºÅÛÀ̳ª ÀÚ½ÅÀÌ °ü¸®ÇÏ´Â ¼¹ö¿¡ »ç¿ëÀÚ°¡ ¸ÞÀϸµ ¸®½ºÆ®¸¦ ¿î¿µÇÏ°íÀÚ Çϴµ¥ ¾î¶»°Ô ÇØ¾ß ÇÏ´À³Ä´Â Áú¹®ÀÌ ¸î¸î ¿Ô´Ù. ¸¸ÀÏ À§¿¡¼¿Í °°ÀÌ ÀÚµ¿ ¿¤¸®¾î½º °»½Å ¿É¼ÇÀ» ÄÑ ³õ°í, °¢ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ·Î ÇÏ¿©±Ý °¢ÀÚÀÇ ¸ÞÀϸµ ¸®½ºÆ® ¿¤¸®¾î½º ÆÄÀÏ(majordomo.aliases)¸¦ ¼öÁ¤ÇÏ°Ô²û ÇßÀ» °æ¿ì, ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ°¡ ¾ÇÀǸ¦ Ç°°í ¿¤¸®¾î½º¸¦ ¸¶À½´ë·Î ¼öÁ¤ÇßÀ» °æ¿ì ½É°¢ÇÑ º¸¾È¹®Á¦¸¦ ÀÏÀ¸Å³ ¼ö ÀÖ´Ù. µû¶ó¼ ¸ÞÀϸµ ¸®½ºÆ® °ü¸®´Â ½Ã½ºÅÛ °ü¸®ÀÚ¿¡ ÁØÇÏ´Â ½Å·Ú¸¦ °®Ãá »ç¶÷¿¡°Ô ¸Ã°Ü¾ß ÇÒ °ÍÀÌ´Ù.
¼³Ä¡ÀÇ ÃÖÁ¾´Ü°è·Î´Â ´ÙÀ½°ú °°ÀÌ ¸®½ºÆ® µð·ºÅ丮¿¡ test¶ó´Â °¡Â¥ ¸®½ºÆ®¸¦ ¸¸µé¾î ¸ÞÀÌÀúµµ¸ð¸¦ Å×½ºÆ® ÇÏ´Â °ÍÀÌ´Ù. ÀÌ ¸®½ºÆ®¿¡ ´ëÇÑ ¿¤¸®¾î½º´Â ÀÌ¹Ì À§¿¡¼ ¸¸µé¾î ³õ¾Ò´Ù.(ȤÀº ¸¸µé¾îÁ® ÀÖ¾ú´Ù.)
[kulslist@kuls majordomo]$ touch /usr/lib/majordomo/lists/test [kulslist@kuls majordomo]$ echo 'lists' | /usr/lib/sendmail -v majordomo ^^^^^^^^^^^^^^^^^ ÀÚ½ÅÀÇ sendmail µð·ºÅ丮
À§ÀÇ °úÁ¤Àº ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ ¾ÆÀ̵ð·Î Çϱ⠹ٶõ´Ù. ´õ ÀÌ»ó ·çÆ®´Â ÇÊ¿äÄ¡ ¾Ê´Ù! ¸ÞÀÏÀÇ ´ë»óÀÌ majordomoÀÓÀ» ¸í½ÉÇ϶ó! ÀÌ°ÍÀº ¿ì¸®°¡ ¸¸µç majordomo.aliases¿¡ ÀÖ´Â ´ë»óÁßÀÇ ÇϳªÀÌ´Ù. ´ÙÀ½°ú °°Àº ¸Þ¼¼Áö°¡ Ãâ·ÂµÉ °ÍÀÌ´Ù.
majordomo... aliased to "|/usr/lib/majordomo/wrapper majordomo" "|/usr/lib/majordomo/wrapper majordomo"... Connecting to prog... ^^^^^^^^^^^^^^^^^^^^^^^^^ "|/usr/lib/majordomo/wrapper majordomo"... Sent ^^^^^^^^
¹ØÁ٠ģ ºÎºÐÀ» ÁÖÀÇÇØ º¸µµ·Ï ÇÏÀÚ. ¿¡·¯°¡ ³´Ù¸é °ÅÀÇ ¸ðµç °æ¿ì¿¡ ¹ØÁÙÄ£ ºÎºÐ¿¡¼ ³ª°Ô µÉ °ÍÀÌ´Ù. Àá½Ã ±â´Ù¸®¸é ¸ÞÀÏÀÌ ´Ù½Ã ³¯¾Æ¿Ã °ÍÀÌ´Ù. ¹ØÁÙ ºÎºÐ¿¡ ¿¡·¯°¡ ³´Ù¸é °¡²û ¸¸³ª°Ô µÇ´Â(À߸øµÈ ÁÖ¼Ò·Î ¸ÞÀÏÀ» º¸³Â´Ù´øÁö, ³×Æ®¿öÅ©°¡ °íÀå³µ´øÁö ÇÏ´Â ÀÌÀ¯·Î) MAILER-DAEMON À̶õ ÀÛÀÚ¿¡°Ô¼ ¸ÞÀÏÀÌ µÇµ¹¾Æ ¿À°Ô µÉ °ÍÀÌ´Ù. ¾Æ¸¶ ¹ã »ø °¢¿ÀÇÏ°í À§ÀÇ °úÁ¤À» ¹Ýº¹Çϰųª ¸ðµÎ ¶§·ÁÄ¡°í ¹Û¿¡ ³ª°¡¼ ¼úÀ» ¸¶¼Å¾ß ÇÒ °ÍÀÌ´Ù. ¹«¾ð°¡ À߸øµÇ¾ú´Ù!!
±×¹Û¿¡ À߸øµÈ °ÍÀÌ ¾øÁö¸¸ ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö°¡ ³ª¿Ã ¼öµµ ÀÖ´Ù.
majordomo... aliased to "|/usr/lib/majordomo/wrapper majordomo" "|/usr/lib/majordomo/wrapper majordomo"... Connecting to prog... "|/usr/lib/majordomo/wrapper majordomo"... Service unavailable postmaster... aliased to root root... Connecting to local... root... Sent
²Ù¿¢. ±×·¯³ª Áö±Ý±îÁöÀÇ ¼³Á¤¿¡¼ À߸øµÈ °ÍÀº ¾ø´Â °Í °°´Ù. ÀÌ°ÍÀº ·¹µåÇÞ 6.0ÀÇ sendmail¼³Á¤ÀÌ ¹Ù²î¾î¼ ¼¾µå¸ÞÀÏ ¾Ù¸®¾î½º¸¦ ÅëÇØ ºÒ¸®¿ì´Â ÇÁ·Î±×·¥ÀÌ °ú¿¬ ¼öÇàÇصµ ÁÁÀº ÇÁ·Î±×·¥ÀÎÁö¸¦ È®ÀÎÇÏ´Â °úÁ¤¿¡¼ »ý±â´Â ¹®Á¦ÀÌ´Ù. ½ÇÁ¦·Î ¹®Á¦À̱⠺¸´Ù´Â ¸ÞÀÌÀúµµ¸ðÀÇ wrapper ÇÁ·Î±×·¥À» µî·ÏÇÏÁö ¾Ê¾Æ »ý±â´Â ¿¡·¯¸Þ½ÃÁöÀÌ´Ù. sendmail¿¡ wrapper¸¦ µî·ÏÇÏ´Â °úÁ¤Àº ¹«Ã´À̳ª °£´ÜÇÏ¿© /etc/smrsh (ÀÌ°ÍÀº ¾Æ¸¶ SendMailReliableSHell°ú °°ÀÌ µé¸°´Ù.)¿¡ ¾Ù¸®¾î½º¸¦ ÅëÇØ ºÒ¸± ÇÁ·Î±×·¥À» ¸µÅ©ÇÏ´Â °ÍÀ¸·Î ÇØ°áµÈ´Ù. Áï
# cd /etc/smrsh # ln -sf /usr/lib/majordomo/wrapper .
¹°·Ð etc µð·ºÅ丮 ¹ØÀ» °Çµå¸®´Â °ÍÀ̱⠶§¹®¿¡ ·çÆ®°èÁ¤À¸·Î ¼öÇàÇØ¾ß ÇÑ´Ù. À§ÀÇ µÎ ¶óÀÎÀ» ÇØ°áÇÑ´Ù¸é ·¹µåÇÞ 6¿¡¼µµ ¸ÞÀÌÀúµµ¸ð´Â ½±°Ô ¼³Ä¡µÈ´Ù. »ç½Ç ÃÖ±Ù ¸ÞÀÌÀúµµ¸ð Áú¹®ÀÇ 90%°¡ À§ÀÇ ³»¿ë¿¡ °üÇÑ °ÍÀÌ´Ù.
ÀÌÁ¦ ¾Æ·¡¿Í °°Àº ¸ÞÀÏÀÌ ¿Í¾ß Çϸç, ¸ÞÀÏÀÌ ¿Â´Ù¸é ¼º°øÇÑ °ÍÀÌ´Ù.
Date: Sun, 3 Jan 1999 16:21:54 +0900 From: majordomo@kuls.korea.ac.kr To: kulslist@kuls.korea.ac.kr Subject: Majordomo results -- >>>> lists majordomo@kuls.korea.ac.kr serves the following lists: test Use the 'info <list>' command to get more information about a specific list.
Áö±Ý ¼³Ä¡µÈ ¸ÞÀϸµ ¸®½ºÆ®¿¡´Â test¶ó´Â ¸ÞÀϸµ ¸®½ºÆ®°¡ ÀÖ´Ù´Â ÀÀ´äÀÌ´Ù. ÇÏ¿©°£ À§¿Í °°ÀÌ ¸ÞÀÌÀúµµ¸ð¿¡°Ô¼ ¸ÞÀÏÀÌ ¿Â´Ù¸é, ÀÌÁ¦ ¼º°øÇÑ °ÍÀÌ´Ù. ³ª°¡¼ ¼úÇÑÀÜ ÇÏ°í ¿ÀÀÚ. ¿©±â±îÁö ¼º°øÇßÀ¸¸é ÇÊÀÚ¿¡°Ô ¸ÞÀÏÀ» º¸³»µµ ÁÁ´Ù. artsilly@kuls.korea.ac.kr ^^;; ÀÌÁ¦ ¸®½ºÆ®¸¦ Ãß°¡Çϵµ·Ï ÇÏÀÚ!
¿À! ¾ÆÁ÷! ¸¶Áö¸· ÇÑ°¡Áö°¡ ³²¾Ò´Ù. À§¿Í °°ÀÌ ¸ÞÀϸµ ¸®½ºÆ®°¡ ´Ù µÈ´Ù°í ¾È½ÉÇÏ¸é ±×°ÍÀ¸·Î ³¡³ªÁö ¾Ê´Â´Ù. Áï ³»ºÎ »ç¿ëÀڵ鿡°Ô´Â majordomo³ª test°¡ º¸ÀÌÁö¸¸ ¿ÜºÎ¿¡¼´Â ¿©ÀüÈ÷ º¸ÀÌÁö ¾Ê´Â´Ù. À̸¦ À§ÇØ sendmailÀ» Àç½Ãµ¿ ½ÃÄÑ ÁÖ¾î¾ß ÇÑ´Ù. ·¹µåÇÞ »ç¿ëÀÚ¶ó¸é
[root@kuls /root]# /etc/rc.d/init.d/sendmail restart
¿Í °°ÀÌ ÇØ ÁÖ¸é µÉ °ÍÀÌ´Ù. ÀϹÝÀûÀ¸·Î sendmailÀÇ PID¸¦ ã¾Æ ÇÁ·Î¼¼½º¸¦ ´Ý°í
[root@kuls /root]# /usr/lib/sendmail -bd¿Í °°ÀÌ ´Ù½Ã ½ÇÇà½ÃÅ°¸é µÉ °ÍÀÌ´Ù.
/etc/passwd
ÆÄÀÏÀ» ÆíÁýÇÏ¿© ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚÀÇ È¨
µð·ºÅ丮¸¦ ¸ÞÀÌÀúµµ¸ð µð·ºÅ丮¿Í °°°Ô Çصµ ÁÁÀ» °Í
°°´Ù. /usr/lib/majordomo
µîÀ¸·Î ¹Ù²Ù¾î ÁÖ´Â °ÍÀÌ´Ù. ÀÌ·¸°Ô
µÇ¸é °ü¸®ÀÚ°¡ ÀÏÇϱⰡ ÆíÇØÁø´Ù.man/
µð·ºÅ丮¿¡ ÀÖ´Â
¸Å´º¾óÀ» ¸Å´º¾óÀ» ¸ð¾Æ³õÀº /usr/man/
¹ØÀ¸·Î ¿Å±â´Â °Íµµ
³ª»ÚÁö ¾Ê´Ù. ¾Æ¿¹ óÀ½ºÎÅÍ MakefileÀÇ ¼³Á¤À» ¹Ù²Ù¾î ¼³Ä¡ÇÏ´Â °Íµµ
ÁÁ´Ù. 'Makefile ¼³Á¤Çϱâ'¿¡ ¾ð±ÞÇÏ¿´´Ù.