Subject : Setting up a Mail host and a Relay

Description :


1. sendmail.cf configuration file

* sendmail.cf : sendmail ¿¡ÀÇÇØ »ç¿ëµÇ´Â configuraion parameter °¡ ÀÖ´Ù.
* main.cf : mail host, relay host, gateway ¿¡ ÀÇÇØ »ç¿ëµÇ´Â Àӽà ȭÀÏ.
* subsidiary.cf : mail host, relay host, gateway °¡ ¾Æ´Ñ½Ã½ºÅÛÀ» À§ÇÑ
                 ÀÓ½ÃÈ­ÀϷνá ÀνºÅç½Ã¿¡ sendmail.cf ÀÇ default °ªÀÌ´Ù.

2.  Postmaster setup.

posmaster ´Â mail error message  ¸¦ ¹ÞÀ¸¸ç mail system ÀÇ Àå¾ÖºÐ¼®À»Çϴ»ç¶÷.

¸ðµç½Ã½ºÅÛÀº Posmaster mailbox ¿¡ mail À» º¸³¾¼ö°¡ ÀÖ¾î¾ßÇÏ°í ´ç½ÅÀº
NIS,¶Ç´Â NIS+ alias ¸¦ Posmaster ¸¦ À§ÇØ ¸¸µé¼öÀÖ°í ¶ÇÇÑ local ÀÇ 
/etc/mail/aliases file À» ¸¸µé¼ö°¡ ÀÖ´Ù.

/etc/mail/aliases file ¿¡¼­ÀÇ ±âº»  Posmaster ´Â root ·Î reditect ÇÑ´Ù.

3. Setting Up the Mail Host.

1) Choose the mail host
2) Add mailhost in /etc/hosts 
   ex) 129.240.50.10 hermes mailhost
3) on mail host, become superuser
4) cp /etc/mail/main.cf /etc/mail/sendmail.cf

   Without NIS+: a. Lmmaildomain À» comment ( #Lmmaildomain)
                 b. Dmsvc.hei.co.kr À» µî·Ï. (domainname µî·Ï)
                 c. Cmsvc.hei.co.kr svc.hei.co svc.hei svc  À» µî·Ï.
                    (µé¾î¿À´Â mail À» domainname À¸·Î ÀνÄ)

   With NIS+: a. Type
      hyundai3#nistbladm -a key=maildomain value=svc.hei.co.kr   \
               sendmailvars.org_dir
       (ÀÌ°ÍÀº sendmail.cf ¿¡ Lmmaildomain ¿¡ macro m À» setting)

5) sendmail À» À籸µ¿.


4. Setting Up the Relay Host.

À§ÀÇ ±¸¼º¿¡¼­ mail host   ¿Í relay host ´Â ´Ù¸£Áö¸¸ ÀÌ°æ¿ì°¡ Ç×»ó
¸£·¸´Ù´Â°ÍÀº ¾Æ´Ï´Ù, Áï, mail host ¿Í relay host °¡ °°À»¼öµµ ÀÖ´Ù.

message °¡ ´Ù¸¥ domain À¸·Î Àü´ÞµÉ¶§¿¡ ¸ÕÀú mail host ·Î ÀüÇØÁö°í ¿©±â¼­
address ¸¦ ºÐ¼®ÈÄ¿¡  mail host ´Â  ÀÌ ¸Þ¼¼Áö°¡ local ÀÌ ¾Æ´Ï°ÍÀ» È®ÀÎÇÏ°í
mail host  ´Â ±× ¸Þ¼¼Áö¸¦ relay ·Î route Çؾ߸¸ÇÑ´Ù.

4-1) mail host ·ÎºÎÅÍ Relay host ·Î Routing.

a. mail host system ¿¡¼­
b. relay mailer ¸¦ setup
  /etc/mail/sendmail.cf ÀÇ DMsmartuucp ¸¦ DMether ·Î ¹Ù²Û´Ù.
c. DRddn-gateway ¿¡¼­ ddn-gateway ¸¦ relay host ·Î º¯°æ
    ami3000:DRami3000

d. CRddn-gateway ¿¡¼­ ddn-gateway ¸¦ relay host ·Î º¯°æ
    ami3000:CRami3000

e. sendmail restart.


4-2) Relay host ·ÎºÎÅÍ ´Ù¸¥ Relay host ·Î Routing.

a. relay host system ¿¡¼­
b. mail domain À» setup. (Without NIS+ ÀÎ °æ¿ì)
       
   Without NIS+: a. Lmmaildomain À» comment ( #Lmmaildomain)
                 b. Dmsvc.hei.co.kr À» µî·Ï. (domainname µî·Ï)
                 c. Cmsvc.hei.co.kr svc.hei.co svc.hei svc  À» µî·Ï.
                    (µé¾î¿À´Â mail À» domainname À¸·Î ÀνÄ)

c. DMsmartuucp ¶óÀο¡¼­ smartuucp ¸¦ ÀûÀýÇÑ mailer ·Î º¯°æ.
   À§ÀÇ °æ¿ì¶ó¸é uucp line À̹ǷΠº¯°æÀÌ ÇÊ¿ä¾øÀ½.

c. DR ddn-gateway ¿¡¼­ ddn-gateway ¸¦ »ó´ëÆí relay host ·Î º¯°æ
    hwarang:DRhwarangami3000

d. CRddn-gateway ¿¡¼­ ddn-gateway ¸¦ »ó´ëÆí relay host ·Î º¯°æ
    hwarang:CRhwarang

e. sendmail restart.



Revision History

ÀÛ¼ºÀÏÀÚ : 96.09.05
ÀÛ¼ºÀÚ : À̽ÂÈÆ

¼öÁ¤ÀÏÀÚ :
¼öÁ¤ÀÚ :