´ç½ÅÀÌ BSD½ºÅ¸ÀÏÀ̳ª SysV½ºÅ¸ÀÏ(¿¹:·¹µåÇÞ)ÀÇ initÀ» ¾²´ø ´ç½ÅÀº /etc/rc.d/rc.local¿¡ ±×°ÍÀ» Æ÷ÇÔÇÒ ¼ö ÀÖ´Ù. ¾Æ·¡¿¡´Â ³»°¡ ¾²´Â SysV init ÀÌ´Ù.(·¹µåÇÞ 3.0.3 or 4.0)
³ªÀÇ /etc/rc.d/rc.local (edited to show the relevant portions)
#setting up IP alias interfaces
echo "Setting 172.16.3.1, 172.16.3.10, 172.16.3.100 IP Aliases ..."
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 up
/sbin/ifconfig eth0 172.16.3.1
/sbin/fconfig eth0:0 172.16.3.10
/sbin/ifconigfeth0:1 172.16.3.100
#setting up the routes
echo "Setting IP routes ..."
/sbin/route add -net 127.0.0.0
/sbin/route add -net 172.16.3.0 dev eth0
/sbin/route add -host 172.16.3.1 eth0
/sbin/route add -host 172.16.3.10 eth0:0
/sbin/route add -host 172.16.3.100 eth0:1
/sbin/route add default gw 172.16.3.200
Áú¹®: ¾î¶»°Ô °¢¾ç°¢»öÀ¸·Î aliasµÈ ¾ÆÀÌÇÇ ³Ñ¹ö¿¡¼ IP aliasedµÈ ¼¹ö¸¦ e-mailÀ» ¹Þ°Ô ¼Â¾÷ÇÒ¼ö ÀÖ½À´Ï±î?(sendmailÀ» ¾²´Â ¼¹ö¿¡¼)
/etc/mynames.cwÀÇ ¿¹¿¡¼ º¸¿©Áö´Â°Í°ú °°Àº ÆÄÀÏÀ» ¸¸µé¶ó(±×°ÍÀÌ Á¸ÀçÇÏÁö ¾Ê´Â´Ù¸é) ±×°ÍÀº ÀÌ°Í°ú °°Àº À̸§ÀÌ ¾Æ´Ï°Å³ª /etcµð·ºÅ丮¿¡ ¾øÀ»¼öµµ ÀÖ´Ù. (¿ªÀÚÁÖ: ·¹µåÇò¿¡¼´Â sendmail.cf ¿¡¼ cw ¸¦ »ç¿ëÇÑ´Ù°í Á¤ÀÇµÇ ÀÖ´Ù./etc/sendmail.cw ¸¦ »ç¿ëÇÑ´Ù.) ÀÌ ÆÄÀÏ¿¡¼ aliasµÈ ¾ÆÀÌÇdzѹöÀÇ µµ¸ÞÀÎ ³×ÀÓÀ» Àû´Â´Ù. ¸¸¾à ¾Ë¸®¾Æ½ºµÈ ¾ÆÀÌÇÇ°¡ µµ¸ÞÀγ×ÀÓÀ» ¾È°¡Áö°í ÀÖÀ»°æ¿ì¿¡´Â ¾ÆÀÌÇdzѹö ÀÚü¸¸À» ½áÁÙ¼öµµ ÀÖ´Ù.
/etc/mynames.cw: ---------------- # /etc/mynames.cw - ´ç½ÅÀÇ ¼¹ö¿¡´ëÇÑ ¸ðµç ¾Ë¸®¾Æ½º À̸§À» ¿©±â´Ù Àû´Â´Ù. # Àº ÁÖ¼®ÀÌ´Ù. domain.one.net domain.two.com domain.three.org 4.5.6.7
´ç½ÅÀÇ sendmial.cf ÈÀÏ¿¡¼ ÆÄÀÏ Å¬·¡½º ¸ÅÅ©·Î Fw¸¦ Á¤ÀÇÇÏ´Â ºÎºÐ¿¡¼ ´ÙÀ½À» Ãß°¡ÇÑ´Ù.
################## # local info # ################## . . # ¿ì¸®°¡ ÀÌ-¸ÞÀÏÀ» ¹Þ±âÀ§ÇÑ È£½ºÆ® À̸§À» °¡Áö°íÀÖ´Â ÆÄÀÏ Fw/etc/mynames.cw . . .
ÀÌ°ÍÀº ²À ÇغÁ¾ß ÇÑ´Ù. »õ·Î¿î ¼³Á¤À» Å×½ºÆ®Çϱâ À§Çؼ Å×½ºÆ®¸ðµå·Î ¼¾µå¸ÞÀÏÀ» ½ÇÇàÀ» ÇÑ´Ù. (¿ªÀÚÁÖ: ¸» ±×µ¥·Î ²À Çغ¸±â ¹Ù¶õ´Ù. sendmail Àº ¸ÞÀÏÀ» ¹Þ°í º¸³»±â À§ÇÑ ¾ÆÁÖ Áß¿äÇÑ µ¥¸óÀÌ´Ù. ¾à°£ÀÇ ½Ç¼ö·Î ¸ÞÀÏÀ» ¸ø ¹Þ°Ô µÈ´Ù¸é?)
ganymede$ /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter < ruleset> < address>
> 0 me@4.5.6.7
rewrite: ruleset 0 input: me @ 4 . 5 . 6 . 7
rewrite: ruleset 98 input: me @ 4 . 5 . 6 . 7
rewrite: ruleset 98 returns: me @ 4 . 5 . 6 . 7
rewrite: ruleset 97 input: me @ 4 . 5 . 6 . 7
rewrite: ruleset 3 input: me @ 4 . 5 . 6 . 7
rewrite: ruleset 96 input: me < @ 4 . 5 . 6 . 7 >
rewrite: ruleset 96 returns: me < @ 4 . 5 . 6 . 7 . >
rewrite: ruleset 3 returns: me < @ 4 . 5 . 6 . 7 . >
rewrite: ruleset 0 input: me < @ 4 . 5 . 6 . 7 . >
rewrite: ruleset 98 input: me < @ 4 . 5 . 6 . 7 . >
rewrite: ruleset 98 returns: me < @ 4 . 5 . 6 . 7 . >
rewrite: ruleset 0 returns: $# local $: me
rewrite: ruleset 97 returns: $# local $: me
rewrite: ruleset 0 returns: $# local $: me
> 0 me@4.5.6.8
rewrite: ruleset 0 input: me @ 4 . 5 . 6 . 8
rewrite: ruleset 98 input: me @ 4 . 5 . 6 . 8
rewrite: ruleset 98 returns: me @ 4 . 5 . 6 . 8
rewrite: ruleset 97 input: me @ 4 . 5 . 6 . 8
rewrite: ruleset 3 input: me @ 4 . 5 . 6 . 8
rewrite: ruleset 96 input: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 96 returns: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 3 returns: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 0 input: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 98 input: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 98 returns: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 95 input: < > me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 95 returns: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 0 returns: $# smtp $@ 4 . 5 . 6 . 8 $: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 97 returns: $# smtp $@ 4 . 5 . 6 . 8 $: me < @ 4 . 5 . 6 . 8 >
rewrite: ruleset 0 returns: $# smtp $@ 4 . 5 . 6 . 8 $: me < @ 4 . 5 . 6 . 8 >
>
³»°¡ me@4.5.6.7À» Å×½ºÆ®ÇßÀ»¶§¸¦ ÁÖÀÇÇؼº¸ÀÚ. ±×°ÍÀº me@4.5.6.8ÀÌ smtp mailer¿¡ ÀÇÇؼ ÅëÁ¦°¡ ³¡³ª´Â µ¿¾È ·ÎÄ® ¸Ó½®¿¡ ¸ÞÀÏÀ» º¸³Â´Ù.