°­ÁÂ

HOME > °­ÁÂ >
°­ÁÂ| ¸®´ª½º ¹× ¿ÀǼҽº¿¡ °ü·ÃµÈ °­Á¸¦ º¸½Ç ¼ö ÀÖ½À´Ï´Ù.
 
Majordomo (¸ÞÀϸµ¸®½ºÆ® )
Á¶È¸ : 7,914  





Majordomo ? À̸§ÀÌ Âü ÀÌ»óÇÏÁ®? 
¼¾µå¸ÞÀÏ¿¡¼­ aliases ÆÄÀÏÀ» ÀÌ¿ëÇØ °£´ÜÇÑ ¸ÞÀϸµ ¸®½ºÆ®¸¦ ±¸Çö ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÇÏÁö¸¸ »ç¿ëÀÚ°¡ ¸¹¾Æ Áö°í, ±Ô¸ð°¡ Ä¿Áü¿¡ µû¶ó ü°èÀûÀ¸·Î ¸ÞÀϸµ ¸®½ºÆ®(1ȸ¿¡ º¸³»´Â µ¿ÀÏ ¿ìÆí¹°)¸¦ 
°ü¸® ¿î¿µÇÒ ¼ö ÀÖ´Â ÇÁ·Î±×·¥ÀÌ ÇÊ¿äÇÏ°Ô µË´Ï´Ù. 
¸ÞÀÌÀúµµ¸ð´Â ¹Ù·Î ÀÌ·¯ÇÑ ¸ÞÀϸµ¸®½ºÆ® °ü¸®ÇÁ·Î±×·¥ÀÔ´Ï´Ù.

ÀÌ»óÇϰԵµ ¸ÞÀÌÀúµµ°¡ ÀαⰡ ¾ø´Â°ÍÀÎÁö? °³¹ßÀÚ°¡ °ÔÀ»·¯¼­ÀÎÁö 2³âµ¿¾È ¹öÀü¾÷ÀÌ Çѹøµµ µÇÁö ¾Ê¾Ò´õ±º¿ä.
±×·³ ¼³Ä¡¿Í °£´ÜÇÑ Å×½ºÆ®¸¦ ÇØº¸µµ·Ï ÇϰڽÀ´Ï´Ù.


+ System Enviroment : 

- OS : TurboLinux7 Server(2.4.9), TurboLinux6.1k(2.2.x) ,RedHat7.3(2.4.18-5)
- Install : majordomo-1.94.5.tar.gz

+ Install Ready....(´Ù¿î·Îµå »çÀÌÆ®)

http://www.greatcircle.com/majordomo/

À§ÀÇ »çÀÌÆ®¿¡¼­ ÃֽŹöÀüÀ» ´Ù¿î·Îµå ÇÑ´Ù.

+ Majordomo ¼³Ä¡Çϱâ : 

sueni@bbung ...]# tar xvfz majordomo-1.94.5.tar.gz

sueni@bbung ...]# cd majordomo-1.94.5/

sueni@bbung ...]# vi Makefile

#------------- Configure these items ----------------#
#

# Put the location of your Perl binary here:
PERL = /usr/bin/perl (perl ÀÌ ¼³Ä¡µÈ°æ·Î which perl·Î È®ÀÎ.)

# What do you call your C compiler?
CC = gcc (C ÄÄÆÄÀÏ·¯ ÁöÁ¤)

# Where do you want Majordomo to be installed? This CANNOT be the
# current directory (where you unpacked the distribution)
W_HOME = /usr/local/majordomo (¼³Ä¡µÉ °æ·Î)

# Where do you want man pages to be installed?
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 = 500 (UID ¼³Á¤, ¼ýÀÚ·Î ½á¾ßÇÑ´Ù.)
W_GROUP = 500 (GID ¼³Á¤) (uid¿Í gid´Â id account ¸í·ÉÀ¸·Î È®ÀÎÇÑ´Ù.)

À§ÀÇ °Í¸¸ ¼öÁ¤ÇØ ÁÖ¸é µÈ´Ù.


- sendmail.cf ÆÄÀÏ ¼öÁ¤Çϱâ.
W_GROUP =  À̺κп¡ Á¤ÀÇµÈ ±×·ìÀº sendmail.cf ÆÄÀÏÀÇ Trusted users ¿¡ ¹ÝµíÀÌ Ãß°¡ µÇ¾î ÀÖ´Â ±×·ìÀ̾î¾ß ÇÑ´Ù.
±âº»ÀûÀ¸·Î daemon, root, uucp °¡ Ãß°¡ µÇ¾î ÀÖ´Ù. 
Ãß°¡ÇÒ ¶§´Â ¾Õ¿¡ T¸¦ ºÙ¿© ÁÖ¾î¾ß ÇÑ´Ù.

sueni@bbung ...]# vi /etc/mail/sendmail.cf

#####################
# Trusted users #
#####################

# this is equivalent to setting class "t"
#Ft/etc/mail/trusted-users
Troot
Tdaemon
Tuucp
Tsyoh (ÇöÀç ¼³Á¤µÈ GROUP_ID)
sueni@bbung ...]# /etc/rc.d/init.d/sendmail restart ¼¾µå¸ÞÀÏȯ°æ¼³Á¤ ÆÄÀÏÀº ÄÄÆÄÀÏ Àü¿¡ ¹ÝµíÀÌ ¼öÁ¤ÇØ¾ß ÇÑ´Ù. ´ÙÀ½Àº ÄÄÆÄÀϽà majordomo.cf Configuration File ÀÌ »ý¼ºµÇÁö ¾ÊÀ¸¹Ç·Î »ùÇÃÀ» Copy ÇØ¼­ »ç¿ëÇϵµ·Ï ÇÑ´Ù. sueni@bbung ...]# cp sample.cf majordomo.cf sueni@bbung ...]# vi majordomo.cf

# $whereami -- What machine am I running on?
#
$whereami = "mail.sueni.osy"; (¸ÞÀϸµ ¸®½ºÆ®¸¦ ¿î¿µÇÒ ¼­¹öÀÇ µµ¸ÞÀÎÀ̸§ ÀÔ·Â.)

# $whoami -- Who do users send requests to me as?
#
$whoami = "Majordomo@$whereami";
(¸ÞÀϸµ ¸®½ºÆ®¿¡¼­ °¡ÀÔÀÚÀÇ ¿äûÀ» ó¸®ÇÏ´Â ¸ÞÀÏÁÖ¼Ò ±âº»¼³Á¤ ±×´ë·Î »ç¿ë.)

# $whoami_owner -- Who is the owner of the above, in case of problems?
#
$whoami_owner = "syoh@$whereami"; (¸ÞÀϸµ¸®½ºÆ®°ü¸®ÀÚÀÔ·Â)

# $homedir -- Where can I find my extra .pl files, like majordomo.pl?
# the environment variable HOME is set by the wrapper
#
if ( defined $ENV{"HOME"}) {
$homedir = $ENV{"HOME"};
} else {
$homedir = "/usr/local/majordomo"; (¸ÞÀÌÀúµµ¸ð¼³Ä¡°æ·ÎÀÔ·Â)
}

# $listdir -- Where are the mailing lists?
#
$listdir = "$homedir/lists";

# $digest_work_dir -- the parent directory for digest's queue area
# Each list must have a subdirectory under this directory in order for
# digest to work. E.G. The bblisa list would use:
# /usr/local/mail/digest/bblisa
# as its directory.
#
$digest_work_dir = "/usr/local/mail/digest";

# $log -- Where do I write my log?
#
$log = "$homedir/Log";

# $sendmail_command -- Pathname to the sendmail program
# usually /usr/lib/sendmail, but some newer BSD systems
# seem to prefer /usr/sbin/sendmail
#
#$sendmail_command = "/usr/lib/sendmail";
$sendmail_command = "/usr/sbin/sendmail"; (¼¾µå¸ÞÀÏ °æ·Î ¼³Á¤)


³ª¸ÓÁö´Â Ưº°È÷ ¼³Á¤ÇÏÁö ¾Ê¾Æµµ »ó°ü¾ø´Ù.

- ÄÄÆÄÀÏÇϱâ.

sueni@bbung ...]# make wrapper

sueni@bbung ...]# make install

sueni@bbung ...]# make install-wrapper

sueni@bbung ...]# cd /usr/local/majordomo

sueni@bbung ...]$ ./wrapper config-test
               (¸ÞÀϸµ¸®½ºÆ® °ü¸®ÀÚ °èÁ¤À¸·Î ½ÇÇà ÇØµµ µÈ´Ù.)

------------------------------------------------------------
---------------- Config-test for Majordomo ----------------
------------------------------------------------------------


--------------------- Obvious things: ---------------------
------------------ environment variables ------------------
HOME=/usr/local/majordomo
LOGNAME=syoh
MAJORDOMO_CF=/usr/local/majordomo/majordomo.cf
PATH=/bin:/usr/bin:/usr/ucb
SHELL=/bin/sh
USER=syoh
--------------------- euid/egid checks ---------------------
effective user = syoh (uid 500)
effective group = syoh syoh (gid 500 500 )
---------------------- uid/gid checks ----------------------
real user = syoh (uid 500)
real group = syoh syoh (gid 500 500 )
------------------------------------------------------------

Non obvious things that cause headaches:

------------------------------------------------------------
Good: 'require'd /usr/local/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.5.
..........

Áß°£»ý·«...

...........
Good: yup!
----------------------- end of tests -----------------------


Nothing bad found! Majordomo _should_ work correctly.

If it doesn't, check your configuration file
(/usr/local/majordomo/majordomo.cf)
closely, and if it still looks okay, consider asking the majordomo-users
mailing list at "
majordomo-users at greatcircle.com" for assistance. Be sure
and fully specify what your problems are, and what type of machine (and
operating system) you are using.

Enjoy!

I see you haven't registered this version of Majordomo.
By registering, you will be notified of patches and further releases
of Majordomo. Shall I send email to
majordomo-registration at greatcircle.com
to register this version? (I'll cc syoh at mail.sueni.osy)
[yes]


À§¿Í °°ÀÌ Á¤»óÀûÀ¸·Î ÄÄÆÄÀÏ µÇ¾úÀ½À» ¾Ë·ÁÁØ´Ù.

ÀÌÁ¦ sendmailÀÇ  ¸ÞÀÏ ¿¤¸®¾î½º¸¦ ¸ÞÀÌÀúµµ¸ðÀÇ ¿¤¸®¾î½º·Î ÇÔ²² »ç¿ëÇÒ ¼ö ÀÖµµ·Ï 
sendmail.cfÀÇ ´ÙÀ½ ºÎºÐÀ» Ãß°¡ÇØ ÁÖµµ·Ï ÇÑ´Ù.

sueni@bbung ...]# vi /etc/mail/sendmail.cf

# location of alias file
O AliasFile=/etc/mail/aliases
O AliasFile=/etc/mail/majordomo.aliases

ÀÌÁ¦ ¸ÞÀÌÀúµµ¸ðÀÇ aliases ÆÄÀÏÀ» ¼Ò½ºÆÄÀÏ¿¡¼­ °¡Á®´Ù°¡ ¼öÁ¤ÇØ ÁÖ¾î¾ß ÇÑ´Ù.

sueni@bbung ...]# cp /(TarBall)/(SOURCE)/majordomo-
1.94.5/majordomo.aliases /etc/mail/majordomo.aliases
majordomo.aliasesÆÄÀÏÀº º¸Åë ¸ÞÀÌÀúµµ¸ð°¡ ¼³Ä¡µÈ °÷¿¡¼­ »ç¿ëÀ» ÇÏÁö¸¸, °ü¸®»ó ÆíÀÇ
¸¦ À§ÇØ /etc/mail¿¡ ÆÄÀÏÀ» µÎ´Â °ÍÀÌ´Ù.

sueni@bbung ...]# chown syoh:syoh /etc/mail/majordomo.aliases

sueni@bbung ...]$ vi /etc/mail/majordomo.aliases

# The aliases file for majordomo. This works best if you tell sendmail about it
# in your sendmail.cf file (either /usr/lib/sendmail.cf or /etc/sendmail.cf).
#
# You need to be running a recent (8.6, at least) version of sendmail; one that
# groks multiple alias files.
#
# Look for a line that says "OA/usr/lib/aliases" or somesuch, and add a line below
# it, w/o the leading # sign, that looks like this:
#
# OA/usr/test/majordomo/majordomo.aliases
#
# After doing this, you should refreeze the sendmail cf via '/usr/lib/sendmail -bz' and
# restart sendmail.
#

majordomo: "|/usr/local/majordomo/wrapper majordomo" (¼³Ä¡°æ·Î·Î ¼öÁ¤ÇÑ´Ù.)
majordomo-owner: syoh
owner-majordomo: syoh

test: "|/usr/local/majordomo/wrapper resend -l test test-list"
test-list: :include:/usr/local/majordomo/lists/test
owner-test: syoh
test-owner: syoh
test-request: syoh

À§ÀÇ ÆÄÀÏ¿¡¼­ ¸ÞÀÌÀúµµ¸ð°¡ ¼³Ä¡µÈ °æ·Î·Î ¼öÁ¤Çϰųª ¸ÞÀÌÀúµµ¸ð »ç¿ëÀÚ¸¦ ¼öÁ¤ÇØ ÁÖ¸é µÈ´Ù.
À̰ÍÀº Å×½ºÆ®¸¦ À§ÇѰÍÀÌ¸ç ³ªÁß¿¡ ´Ù½Ã ¼öÁ¤ÇØ ÁÖ¾î¾ß ÇÑ´Ù.

sueni@bbung ...]# newaliases

/etc/mail/aliases: 38 aliases, longest 10 bytes, 377 bytes total
/etc/mail/majordomo.aliases: 8 aliases, longest 56 bytes, 241 bytes total
¿¤¸®¾î½º ¼³Á¤À» ÇÑ ÈÄ, Å×½ºÆ®¸¦ À§ÇØ ¸ÞÀÌÀúµµ¸ð°¡ ¼³Ä¡µÈ °÷ÀÇ lists µð·ºÅ丮¿¡ test¶ó´Â ÆÄÀÏÀ» ¸¸µç´Ù. (ÀÌÇÏÀÇ ÀÛ¾÷Àº ÀϹݰèÁ¤À¸·Î ÇØµµ µÈ´Ù) sueni@bbung ...]$
touch /usr/local/majordomo/lists/test sueni@bbung ...]$ echo 'This mail is test' | /usr/sbin/sendmail - v majordomo majordomo... aliased to "|/usr/local/majordomo/wrapper majordomo" "|/usr/local/majordomo/wrapper majordomo"... Connecting to prog... "|/usr/local/majordomo/wrapper majordomo"... Sent À§¿Í °°ÀÌ ³ª¿À¸é Á¤»óÀÛµ¿ ÇÏ´Â °ÍÀ̸ç, ¸ÞÀϸµ ¸®½ºÆ® °ü¸®ÀÚ¿¡°Ô ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö°¡ ¿Â´Ù.

From syoh at mail.sueni.osy Thu Jul 18 04:49:55 2002
Date: Thu, 18 Jul 2002 04:49:53 +0900
To:
syoh at mail.sueni.osy
From: Majordomo at mail.sueni.osy
Subject: Majordomo results
Reply-To:
Majordomo at mail.sueni.osy

--
>>>> lists
Majordomo at mail.sueni.osy serves the following lists:

test

Use the 'info ' command to get more information
about a specific list.
´ÙÀ½°ú °°Àº ¸Þ½ÃÁö°¡ ³ª¿Â´Ù¸é...
majordomo... aliased to "|/usr/local/majordomo/wrapper majordomo"
  "|/usr/local/majordomo/wrapper majordomo"... Connecting to prog...
  "|/usr/local/majordomo/wrapper majordomo"... Service unavailable
  syoh... Connecting to local...
  syoh... Sent

sueni@bbung ...]# cd /etc/smrsh

sueni@bbung ...]# ln -sf /usr/local/majordomo/wrapper

Å×½ºÆ®°¡ ³¡³µÀ¸¸é test ÆÄÀÏÀ» »èÁ¦ÇÑ ÈÄ ´Ù¸¥ À̸§À¸·Î ÆÄÀÏÀ» ¸¸µçÈÄ 
aliasesÆÄÀÏÀÇ ¼³Á¤À» º¯°æÇÏ¿© ½ÇÁ¦·Î Å×½ºÆ® ÇØº¸µµ·Ï ÇÑ´Ù.

sueni@bbung ...]# vi /etc/mail/majordom.aliases

certwiz: "|/usr/local/majordomo/wrapper resend -l certwiz certwiz-list"
certwiz-list: :include:/usr/local/majordomo/lists/certwiz
owner-certwiz: syoh
certwiz-owner: syoh
certwiz-request: "|/usr/local/majordomo/wrapper majordomo -l certwiz"

ÆÄÀÏ »ý¼º ÈÄ À̸ÞÀÏ ÁÖ¼Ò¸¦ ±âÀÔÇÑ´Ù.
sueni@bbung ...]# touch /usr/local/majordomo/lists/certwiz

sueni@bbung ...]# vi /usr/local/majordomo/lists/certwiz

syoh at sueni.osy
sueni at sueni.osy
wowpcs at sueni.osy
manpage at sueni.osy
certwiz at sueni.osy

sueni@bbung ...]# newaliases

sueni@bbung ...]# /etc/rc.d/init.d/sendmail restart

Ȥ½Ã ÆÛ¹Ì¼Ç ¿¡·¯°¡ ³­´Ù¸é ´ÙÀ½°ú °°ÀÌ ÇØÁÝ´Ï´Ù.

sueni@bbung ...]# chmod 751 /usr/local/majordomo/lists

sueni@bbung ...]# chmod 644 /usr/local/majordomo/certwiz(»ý¼ºÆÄÀÏ)

sueni@bbung ...]# echo 'hi This mail is testing' | /usr/sbin/sendmail -v certwiz

certwiz... aliased to "|/usr/local/majordomo/wrapper resend -l certwiz certwiz-list"
"|/usr/local/majordomo/wrapper resend -l certwiz certwiz-list"... Connecting to prog...

"|/usr/local/majordomo/wrapper resend -l certwiz certwiz-list"... Sent
Á¤»óÀûÀ¸·Î ÀÛµ¿ ÇÑ´Ù¸é certwiz ÆÄÀÏ¿¡ Ãß°¡µÈ ¸ðµç »ç¿ëÀÚ¿¡°Ô 'hi This mail is testing' ³»¿ëÀÇ ¸ÞÀÏÀÌ
Àü´Þ µÇ¾úÀ» °ÍÀÌ´Ù.
Ȥ½Ã ¸®ÅϵǾîÁö´Â ¸ÞÀÏÀÌ ÀÖ´ÂÁö Àß È®ÀÎÇØ º¸±â ¹Ù¶õ´Ù.

¸ÞÀÌÀúµµ¸ð¸¦ À¥»ó¿¡¼­ ±¸ÇöÇϰíÀÚ ÇÑ´Ù¸é ´ÙÀ½°ú °°Àº »çÀÌÆ®¸¦ Âü°í Çϱ⠹ٶõ´Ù.

http://www.netspace.org/~dwb/lwgate/


Âü°í»çÀÌÆ® : 
http://kldp.org/KoreanDoc/html/Majordomo-KLDP/Majordomo-KLDP.html#toc13

+GNU GPL. www.manpage.biz ¿À¼ö¿µ:)

[¿ø±Û¸µÅ©] : https://www.linux.co.kr/home2/board/subbs/board.php?bo_table=lecture&wr_id=861


ÀÌ ±ÛÀ» Æ®À§ÅÍ·Î º¸³»±â ÀÌ ±ÛÀ» ÆäÀ̽ººÏÀ¸·Î º¸³»±â ÀÌ ±ÛÀ» ¹ÌÅõµ¥ÀÌ·Î º¸³»±â

 
(ÁÖ) ¼öÆÛÀ¯Àú